Still can't get ligatures working with a Mac, so this'll have to do.

This commit is contained in:
Howard Abrams 2022-04-18 21:55:55 -07:00
parent ed0a86acb7
commit 85a1446ca4

View file

@ -286,10 +286,18 @@ Typical keybindings for all programming modes:
"e p" '("print s-exp" . eval-print-last-sexp)) "e p" '("print s-exp" . eval-print-last-sexp))
#+END_SRC #+END_SRC
** Ligatures ** Ligatures
The idea of using math symbols for a programming languages keywords is /cute/, but confusing when working with other people, and they are looking at my screen: The idea of using math symbols for a programming languages keywords is /cute/, but can be confusing, so I use it sparingly:
#+BEGIN_SRC emacs-lisp
(add-hook
'prog-mode-hook
(lambda ()
(mapc (lambda (pair) (push pair prettify-symbols-alist))
'(("lambda" . "𝝀")
(">=" . "≥")
("<=" . "≤")
("!=" . "≠")))))
#+BEGIN_SRC emacs-lisp :tangle no
(set-ligatures! 'python-mode nil)
#+END_SRC #+END_SRC
The rest of the ligature system in Doom is nice. The rest of the ligature system in Doom is nice.