Browse Source

Start playing with `prettify-symbols-mode'

master
Peter J. Jones 1 month ago
parent
commit
bf713dbb21
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
2 changed files with 5 additions and 0 deletions
  1. 1
    0
      lisp/modes.el
  2. 4
    0
      modes/org-conf.el

+ 1
- 0
lisp/modes.el View File

@@ -45,6 +45,7 @@
45 45
   (which-key-mode)                        ; Remind me what keys do.
46 46
   (minions-mode)                          ; Hide some minor modes.
47 47
   (direnv-mode)                           ; Respect .envrc files.
48
+  (global-prettify-symbols-mode)          ; Replace buffer symbols.
48 49
 
49 50
   ;; Other modes that need to be activated:
50 51
   (pdf-tools-install)                     ; Internal PDF viewer

+ 4
- 0
modes/org-conf.el View File

@@ -192,6 +192,10 @@
192 192
   (evil-define-key 'normal evil-org-mode-map "gk" #'outline-up-heading)
193 193
   (evil-define-key 'motion evil-org-mode-map "gk" #'outline-up-heading)
194 194
 
195
+  ;; Makes things prettier:
196
+  (push '("[ ]" . "☐") prettify-symbols-alist)
197
+  (push '("[X]" . "☑") prettify-symbols-alist)
198
+  (push '("[-]" . "❍") prettify-symbols-alist)
195 199
 
196 200
   ;; Extra Bindings
197 201
   (org-defkey org-mode-map "\C-\M-f"   'org-metaright)

Loading…
Cancel
Save