From 8b2e5d8659c1d864c437c2cf1260742e3da386b6 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 5 Nov 2020 08:23:46 +0100 Subject: [PATCH] Make the prettify-symbols-mode section easier to read --- configuration.org | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/configuration.org b/configuration.org index 5098513..133856c 100644 --- a/configuration.org +++ b/configuration.org @@ -1185,18 +1185,22 @@ Because we can. And set up all the pretty symbols. #+BEGIN_SRC emacs-lisp -;; Add some symbols to be prettified (setq prettify-symbols-alist '(("lambda" . 955) ; λ ("function" . 402) ; ƒ ("->" . 8594) ; → ("=>" . 8658) ; ⇒ ("map" . 8614) ; ↦ - ("not" . 172)) ; ¬ + ("not" . 172))) ; ¬ +#+END_SRC - ;; …and some pairs to complete - ;; TODO: maybe add-to-list is a better way to do it - insert-pair-alist '( +…and some pairs to complete + +*************** TODO Maybe add-to-list is a better way to do it +*************** END + +#+BEGIN_SRC emacs-lisp +(setq insert-pair-alist '( (40 41) ; () (91 93) ; [] (123 125) ; {} @@ -1210,14 +1214,16 @@ And set up all the pretty symbols. (8249 8250) ; ‹› (8250 8249) ; ›‹ (171 187) ; «» - (187 171)) ; »« + (187 171))) ; »« +#+END_SRC - ;; Set the frame title to the current file name - frame-title-format '((:eval (concat system-name +Finally, set the frame title to the current file name + +#+BEGIN_SRC emacs-lisp +(setq frame-title-format '((:eval (concat system-name ": " (if (buffer-file-name) - (abbreviate-file-name - (buffer-file-name)) + (abbreviate-file-name (buffer-file-name)) "%b"))))) #+END_SRC @@ -2967,6 +2973,8 @@ This is a big one; I use a lot of customisation here. (require 'org-protocol) ;; Make it possible to encrypt headings (require 'org-crypt) + ;; Make it possible to use inline tasks + (require 'org-inlinetask) :custom (org-log-into-drawer t)