From 80b92ec9f4501fe3de8b0e4bb43271d1b0c39b42 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 30 Aug 2023 16:52:12 +0200 Subject: [PATCH] Move insert-pair-alist setting to its correct place --- configuration.org | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/configuration.org b/configuration.org index 7e6fc40..54f22ae 100644 --- a/configuration.org +++ b/configuration.org @@ -91,7 +91,7 @@ ** Set up the really basic things -#+BEGIN_SRC emacs-lisp +#+begin_src emacs-lisp (use-package emacs :ensure nil :custom @@ -101,8 +101,22 @@ (use-dialog-box nil) (cursor-type 'bar) (echo-keystrokes .01) - (fill-column 80)) -#+END_SRC + (fill-column 80) + (insert-pair-alist '((40 41) ; () + (91 93) ; [] + (123 125) ; {} + (60 62) ; <> + (34 34) ; "" + (39 39) ; '' + (96 39) ; `' + (8220 8221) ; “” + (8222 8221) ; „” + (8216 8217) ; ‘’ + (8249 8250) ; ‹› + (8250 8249) ; ›‹ + (171 187) ; «» + (187 171)))) ; »« +#+end_src ** Set up some default faces @@ -1342,29 +1356,6 @@ And set up all the pretty symbols. (">=" . ?≥))) #+END_SRC -…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) ; {} - (60 62) ; <> - (34 34) ; "" - (39 39) ; '' - (96 39) ; `' - (8220 8221) ; “” - (8222 8221) ; „” - (8216 8217) ; ‘’ - (8249 8250) ; ‹› - (8250 8249) ; ›‹ - (171 187) ; «» - (187 171))) ; »« -#+END_SRC - Finally, set the frame title to the current file name #+BEGIN_SRC emacs-lisp