[Emacs] These prettified symbols are actually quite annoying
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2022-03-30 20:32:33 +02:00
parent 7f2cae36af
commit f81518ddd2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -7259,16 +7259,8 @@ will be used everywhere.
(defun prog-mode-set-symbols-alist ()
(setq prettify-symbols-alist '(("lambda" . ?λ)
("return" . ?⮐)
("null" . ?∅)
("NULL" . ?∅)
("for" . ?∀)
("in" . ?∈)
("and" . ?∧)
("&&" . ?∧)
("or" . ?)
("||" . ?)
("xor" . ?⊻)))
("NULL" . ?∅)))
(prettify-symbols-mode 1))
(add-hook 'prog-mode-hook #'prog-mode-set-symbols-alist)
@ -7278,13 +7270,10 @@ We can now take care of the language-specific symbols. First, lets
declare some symbols for the Lisp languages.
#+begin_src emacs-lisp
(setq-default lisp-prettify-symbols-alist '(("lambda" . ?λ)
("mapc" . ?↦)
("defun" . ?𝑓)
("defvar" . ?𝑣)
("defcustom" . ?𝑐)
("defconst" . ?𝐶)
("not" . ?!)
("pi" . ?π)))
("defconst" . ?𝐶)))
(defun lisp-mode-prettify ()
(setq prettify-symbols-alist lisp-prettify-symbols-alist)