mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
module!: add :editor whitespace
BREAKING CHANGE: Moves ws-butler, dtrt-indent, and whitespace defaults out of Doom's core and into a new module. ws-butler is gated behind +trim and dtrt-indent behind +guess. Users who depend on/like these packages will need to enable the new module and their respective flags (which is the default going forward). This change is motivated by an ongoing effort to slim down Doom's core (by (re)moving non-essentials from it). This also addresses an issue where dtrt-indent would vastly increase load times for some major-modes (e.g. elixir-mode & elm-mode, see #7537) by restricting it to non-project files and non-read-only buffers AND excludign those two major modes from indent guessing. Fix: #8516 Fix: #7537
This commit is contained in:
parent
22f86d25e9
commit
fbdde6b5f4
16 changed files with 215 additions and 143 deletions
|
|
@ -79,10 +79,6 @@ See `+emacs-lisp-non-package-mode' for details.")
|
|||
;; Introduces logic to improve plist indentation in emacs-lisp-mode.
|
||||
(advice-add #'calculate-lisp-indent :override #'+emacs-lisp--calculate-lisp-indent-a)
|
||||
|
||||
;; Variable-width indentation is superior in elisp. Otherwise, `dtrt-indent'
|
||||
;; and `editorconfig' would force fixed indentation on elisp.
|
||||
(add-to-list 'doom-detect-indentation-excluded-modes 'emacs-lisp-mode)
|
||||
|
||||
(add-hook! '(emacs-lisp-mode-hook lisp-data-mode-local-vars-hook)
|
||||
;; Allow folding of outlines in comments
|
||||
#'outline-minor-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue