diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-01-12 03:25:53 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-01-13 02:27:42 +0100 |
commit | 1fd09dc4f64cbd188d622d087ece4e6350bd4b8f (patch) | |
tree | 078d581427b55a3bb86b977794147ebc54d7db12 | |
parent | cfc0e4b5cd738b0f8b64061381ea55d3e935a6dd (diff) | |
download | dotfiles-1fd09dc4f64cbd188d622d087ece4e6350bd4b8f.tar.gz dotfiles-1fd09dc4f64cbd188d622d087ece4e6350bd4b8f.tar.bz2 dotfiles-1fd09dc4f64cbd188d622d087ece4e6350bd4b8f.zip |
prettify-symbols
-rw-r--r-- | config/doom/config.org | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org index 2117188..dcbd2cf 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -11,6 +11,22 @@ #+begin_src emacs-lisp (setq doom-font (font-spec :family "DejaVu Sans Mono" :size 18 :weight 'semi-light)) (setq doom-theme 'doom-gruvbox) +(add-hook 'prog-mode-hook 'prettify-symbols-mode) + +(defun on/prettify-symbols () + "Common added symbols." + (mapc (lambda (p) + (cl-pushnew p prettify-symbols-alist :test #'equal)) + '(("<=" . ?≤) + (">=" . ?≥) + ("->" . ?→) + ("->>" . ?↠) + ("=>" . ?⇒) + ("/=" . ?≠) ("!=" . ?≠) + ("::" . ?∷) + ("lambda" . ?λ)))) + +(add-hook 'prog-mode-hook 'on/prettify-symbols) #+end_src This determines the style of line numbers in effect. If set to `nil', line numbers are disabled. For relative line numbers, set this to `relative'. |