[Emacs] These prettified symbols are actually quite annoying
This commit is contained in:
parent
7f2cae36af
commit
f81518ddd2
@ -7259,16 +7259,8 @@ will be used everywhere.
|
|||||||
|
|
||||||
(defun prog-mode-set-symbols-alist ()
|
(defun prog-mode-set-symbols-alist ()
|
||||||
(setq prettify-symbols-alist '(("lambda" . ?λ)
|
(setq prettify-symbols-alist '(("lambda" . ?λ)
|
||||||
("return" . ?⮐)
|
|
||||||
("null" . ?∅)
|
("null" . ?∅)
|
||||||
("NULL" . ?∅)
|
("NULL" . ?∅)))
|
||||||
("for" . ?∀)
|
|
||||||
("in" . ?∈)
|
|
||||||
("and" . ?∧)
|
|
||||||
("&&" . ?∧)
|
|
||||||
("or" . ?∨)
|
|
||||||
("||" . ?∨)
|
|
||||||
("xor" . ?⊻)))
|
|
||||||
(prettify-symbols-mode 1))
|
(prettify-symbols-mode 1))
|
||||||
|
|
||||||
(add-hook 'prog-mode-hook #'prog-mode-set-symbols-alist)
|
(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, let’s
|
|||||||
declare some symbols for the Lisp languages.
|
declare some symbols for the Lisp languages.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq-default lisp-prettify-symbols-alist '(("lambda" . ?λ)
|
(setq-default lisp-prettify-symbols-alist '(("lambda" . ?λ)
|
||||||
("mapc" . ?↦)
|
|
||||||
("defun" . ?𝑓)
|
("defun" . ?𝑓)
|
||||||
("defvar" . ?𝑣)
|
("defvar" . ?𝑣)
|
||||||
("defcustom" . ?𝑐)
|
("defcustom" . ?𝑐)
|
||||||
("defconst" . ?𝐶)
|
("defconst" . ?𝐶)))
|
||||||
("not" . ?!)
|
|
||||||
("pi" . ?π)))
|
|
||||||
|
|
||||||
(defun lisp-mode-prettify ()
|
(defun lisp-mode-prettify ()
|
||||||
(setq prettify-symbols-alist lisp-prettify-symbols-alist)
|
(setq prettify-symbols-alist lisp-prettify-symbols-alist)
|
||||||
|
Loading…
Reference in New Issue
Block a user