From 3f9d4275a4e25bc0ecf85d88efbe81b28242cd82 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 7 May 2022 15:01:59 +0300 Subject: [PATCH] Add paredit --- .emacs.d/esy.org | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 142ccf1..3db3bb9 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -103,20 +103,26 @@ For further information about Elisp headers, see [[info:elisp#Library graphviz-dot-mode helpful highlight-escape-sequences htmlize ialign keyfreq keycast iedit lin list-unicode-display lorem-ipsum magit-todos marginalia move-dup no-littering - ns-auto-titlebar ob-prolog orderless org-superstar pdf-tools - rainbow-delimiters rg smtpmail-multi tramp typit vterm vundo - which-key whitespace-cleanup-mode hide-mode-line)) + ns-auto-titlebar ob-prolog orderless org-superstar paredit + pdf-tools rainbow-delimiters rg smtpmail-multi tramp typit + vterm vundo which-key whitespace-cleanup-mode hide-mode-line)) (package-install-selected-packages) #+end_src * Suppressing native compilation warnings +:PROPERTIES: +:CUSTOM_ID: native-compilation +:END: #+begin_src emacs-lisp (setq native-comp-async-report-warnings-errors 'silent) #+end_src * No littering! +:PROPERTIES: +:CUSTOM_ID: no-littering +:END: #+begin_src emacs-lisp (require 'no-littering) @@ -958,7 +964,32 @@ For further information about Elisp headers, see [[info:elisp#Library (add-hook 'prog-mode-hook #'esy/setup-programming) #+end_src +** Lisp specific settings +:PROPERTIES: +:CUSTOM_ID: lisp +:END: + +*** Paredit +:PROPERTIES: +:CUSTOM_ID: paredit +:END: + +Enable =paredit-mode= in =lisp-data-mode= and its derivatites, which +include =emacs-lisp-mode= and =lisp-interaction-mode=. + +#+begin_src emacs-lisp + (defun esy/setup-lisp () + "Setup Lisp specific settings." + (require 'paredit) + (enable-paredit-mode)) + + (add-hook 'lisp-data-mode-hook #'esy/setup-lisp) +#+end_src + ** Prolog specific settings +:PROPERTIES: +:CUSTOM_ID: prolog +:END: #+begin_src emacs-lisp (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode)) -- 2.39.5