index all rss mastodon twitter github linkedin email
Álvaro Ramírez

Álvaro Ramírez

08 January 2023 Emacs: insert and render SF symbols

About a week ago, I added an Emacs function to insert SF symbol names. This is specially useful for SwiftUI. I didn't bother too much with inserting symbols themselves since I hadn't figured out a way to render them for all buffers. That's now changed.

Christian Tietze and Alan Third both have useful posts in this space:

I'm currently using the following to render SF symbols in all buffers (macOS only):

;; Enable rendering SF symbols on macOS.
(when (memq system-type '(darwin))
  (set-fontset-font t nil "SF Pro Display" nil 'append))

Now that I can render SF symbols everywhere, I may be more included to use them to spif things up.

I've added sf-symbol-insert to sf.el, let's see if usage sticks.