From 1fd09dc4f64cbd188d622d087ece4e6350bd4b8f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 12 Jan 2024 03:25:53 +0100 Subject: prettify-symbols --- config/doom/config.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'config') 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'. -- cgit v1.2.3