From 4c9230443bd70682fc822d45605c3d71f7efa0bf Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 25 Aug 2026 13:27:37 -0700 Subject: [PATCH] Update some elisp stuff --- init.el | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index c07b064..694fffd 100644 --- a/init.el +++ b/init.el @@ -300,13 +300,6 @@ Apply OLDFUN with to ARGS." eos) . conf-mode)) (add-to-list 'auto-mode-alist `(,(rx (or bos "/") "README" eos) . markdown-mode)) -(keymap-set emacs-lisp-mode-map "C-c C-r" #'eval-region) -(defun my/-fix-emacs-lisp-mode-system-files () - "Fix tabs in system Lisp files." - (when (string-prefix-p lisp-directory buffer-file-name) - ;; system Emacs files use tab characters and look weird without this. - (setq-local tab-width 8))) -(add-hook 'emacs-lisp-mode-hook #'my/-fix-emacs-lisp-mode-system-files) ;; Minibuffer stuff (add-hook 'minibuffer-setup-hook #'cursor-intangible-mode) @@ -2371,6 +2364,16 @@ line in the block and manually deal with indentation." (advice-add 'calculate-lisp-indent :around #'my/-calculate-lisp-indent-noindent-comment) +;; Elisp +(keymap-set emacs-lisp-mode-map "C-c C-r" #'eval-region) +(defun my/-fix-emacs-lisp-mode-system-files () + "Fix tabs in system Lisp files." + (when (string-prefix-p lisp-directory buffer-file-name) + ;; system Emacs files use tab characters and look weird without this. + (setq-local tab-width 8))) +(add-hook 'emacs-lisp-mode-hook #'my/-fix-emacs-lisp-mode-system-files) +(setopt elisp-fontify-semantically t) + ;; common lisp (use-package lisp-mode :ensure nil