Fix unreadable indentation in native elisp files

This commit is contained in:
Henrik Lissner 2020-08-02 18:58:58 -04:00
parent a9bd4965bf
commit b8c20d50fe
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -46,7 +46,11 @@ employed so that flycheck still does *some* helpful linting.")
("describe" "xdescribe"))) ("describe" "xdescribe")))
(setq-hook! 'emacs-lisp-mode-hook (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 ;; shorter name in modeline
mode-name "Elisp" mode-name "Elisp"
;; Don't treat autoloads or sexp openers as outline headers, we have ;; Don't treat autoloads or sexp openers as outline headers, we have