jming422 / fira-code-mode

Emacs minor mode for Fira Code ligatures using prettify-symbols
GNU General Public License v3.0
103 stars 11 forks source link

fira-code-mode only on for org-mode files i've previously activated #5

Closed elliottw closed 4 years ago

elliottw commented 4 years ago

on macos spacemacs pretty clean .spacemacs i am using (require 'fira-code-mode) in my .spacemacs and installed fira-code-mode also set default spacemacs font to Fira Code

   dotspacemacs-default-font '("Fira Code"
                               :size 10.0
                               :weight normal
                               :width normal)

when navigating to a new org-mode file, there are no ligatures. when calling fira-code-mode ligatures appear.

jming422 commented 4 years ago

That’s correct - that’s the way minor modes like fira-code-mode often work. To use fira-code-mode automatically in org-mode, you need to add it to org-mode-hook:

(add-hook 'org-mode-hook 'fira-code-mode)
elliottw commented 4 years ago

awesome thanks!! I guess i need to learn more about this stuff.