From b8c20d50fea5de54aaa634ccebeba1a37be9f7eb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 2 Aug 2020 18:58:58 -0400 Subject: [PATCH] Fix unreadable indentation in native elisp files --- modules/lang/emacs-lisp/config.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/config.el b/modules/lang/emacs-lisp/config.el index 0eb8756fa..dcbc77df3 100644 --- a/modules/lang/emacs-lisp/config.el +++ b/modules/lang/emacs-lisp/config.el @@ -46,7 +46,11 @@ employed so that flycheck still does *some* helpful linting.") ("describe" "xdescribe"))) (setq-hook! 'emacs-lisp-mode-hook - tab-width (or lisp-indent-offset 2) + ;; Emacs' built-in elisp files use a hybrid tab->space indentation scheme + ;; with a tab width of 8. Any smaller and the indentation will be + ;; unreadable. Since Emacs' lisp indenter doesn't respect this variable it's + ;; safe to ignore this setting otherwise. + tab-width 8 ;; shorter name in modeline mode-name "Elisp" ;; Don't treat autoloads or sexp openers as outline headers, we have