How to use emacs prettify-symbols-mode?

I have emacs version 25.0, I turn it on prettify-symbols-modeand type (lambda () t), but it does not downplay. How to use this mode? Also what characters are available and how can I customize it? Any links are welcome.

Edit: Nothing happened in the buffer scratchand Markdown, but when I tried in mode Emacs-lisp, it did prettify, but now I got a question mark and not a lambda character, how can I fix it?

Edit: I asked a related question here .

Edit: This SO question solved the unicode problem.

+4
source share
1 answer

prettify-symbols-mode -. , global-prettify-symbols-mode.

, , , , Emacs , . Unicode, , DejaVu Sans Mono.

, Lambda emacs-lisp-mode. prettify-symbols-alist prettify-symbols .

, - , C-h f prettify-symbols-mode RET:

(add-hook 'emacs-lisp-mode-hook
          (lambda ()
            (push '("<=" . ?≤) prettify-symbols-alist)))
+4

All Articles