diff options
author | Ashley Duckworth | 2021-01-22 14:58:34 -0600 |
---|---|---|
committer | Ashley Duckworth | 2021-01-22 14:58:34 -0600 |
commit | 69c27c113d5754d82914e294803bce8b02d52ffc (patch) | |
tree | a9039c60aaa5846beb12c9bc3b5b32f820bc8b32 | |
parent | Add anzu (diff) | |
download | emacs-69c27c113d5754d82914e294803bce8b02d52ffc.tar.gz emacs-69c27c113d5754d82914e294803bce8b02d52ffc.zip |
Setup prettify-mode
-rw-r--r-- | config.org | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config.org b/config.org index 5b7ebf9..1c3e2e9 100644 --- a/config.org +++ b/config.org | |||
@@ -1124,6 +1124,25 @@ to auto-fill in programming modes, but /only/ the comments. | |||
1124 | (blackout 'aggressive-indent-mode) | 1124 | (blackout 'aggressive-indent-mode) |
1125 | #+end_src | 1125 | #+end_src |
1126 | 1126 | ||
1127 | ** Typesetting | ||
1128 | |||
1129 | *** Prettify-mode | ||
1130 | |||
1131 | I like my pretty =lambda='s -- and maybe one day, I'll add more symbols, | ||
1132 | but only in prog-mode. I want to see what I'm actually typing in | ||
1133 | text. | ||
1134 | |||
1135 | #+begin_src emacs-lisp :noweb-ref hooks | ||
1136 | (add-hook 'prog-mode-hook #'prettify-symbols-mode) | ||
1137 | #+end_src | ||
1138 | |||
1139 | Of course, I want to be able to /see/ the actual text in the buffer if | ||
1140 | I'm /in/ the symbols. | ||
1141 | |||
1142 | #+begin_src emacs-lisp :noweb-ref settings | ||
1143 | (setq-default prettify-symbols-unprettify-at-point 'right-edge) | ||
1144 | #+end_src | ||
1145 | |||
1127 | ** Executable scripts | 1146 | ** Executable scripts |
1128 | 1147 | ||
1129 | This poorly-named function will make a file executable if it looks | 1148 | This poorly-named function will make a file executable if it looks |