Browse Source

Don't load ligatures on TTY

main
parent
commit
8ba2aa97f4
  1. 6
      README.org
  2. 5
      modules/interface.el

6
README.org

@ -1,4 +1,5 @@
#+TITLE: Dotfiles #+TITLE: Dotfiles
#+SUBTITLE: I showed you my source code, pls respond
#+AUTHOR: Christopher James Hayward #+AUTHOR: Christopher James Hayward
#+EMAIL: chris@chrishayward.xyz #+EMAIL: chris@chrishayward.xyz
@ -1221,8 +1222,9 @@ Load a theme with =SPC t t=.
Enable font ligatures via [[https://github.com/jming422/fira-code-mode][fira-code-mode]], perform this action *only* when ~Fira Code~ is set as the current font. Enable font ligatures via [[https://github.com/jming422/fira-code-mode][fira-code-mode]], perform this action *only* when ~Fira Code~ is set as the current font.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package fira-code-mode
:hook (prog-mode org-mode))
(when (display-graphic-p)
(use-package fira-code-mode
:hook (prog-mode org-mode)))
#+end_src #+end_src
Toggle global ligature mode with =SPC t g=. Toggle global ligature mode with =SPC t g=.

5
modules/interface.el

@ -34,8 +34,9 @@
(dotfiles/leader (dotfiles/leader
"tt" '(load-theme t t :which-key "Theme")) "tt" '(load-theme t t :which-key "Theme"))
(use-package fira-code-mode
:hook (prog-mode org-mode))
(when (display-graphic-p)
(use-package fira-code-mode
:hook (prog-mode org-mode)))
(dotfiles/leader (dotfiles/leader
"tg" '(global-fira-code-mode :which-key "Ligatures")) "tg" '(global-fira-code-mode :which-key "Ligatures"))

Loading…
Cancel
Save