mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
refactor: deprecate appendq!, prependq!, & delq! macros
In the interest of slimming down Doom's core (as we near v3), I've deprecated these macros. They doesn't really need to exist. Sure, the alternatives aren't as ergonomic or elegant, but they're good enough that we don't need these trivial wrappers. Their local uses have been refactored out as well.
This commit is contained in:
parent
2f7f37d49b
commit
dac6e05b87
27 changed files with 85 additions and 131 deletions
|
|
@ -644,29 +644,29 @@ on."
|
|||
;; read-only, in `so-long-minor-mode', so we can have a basic editing
|
||||
;; experience in them, at least. It will remain off in `so-long-mode',
|
||||
;; however, because long files have a far bigger impact on Emacs performance.
|
||||
(delq! 'font-lock-mode so-long-minor-modes)
|
||||
(delq! 'display-line-numbers-mode so-long-minor-modes)
|
||||
(delq! 'buffer-read-only so-long-variable-overrides 'assq)
|
||||
(cl-callf2 delq 'font-lock-mode so-long-minor-modes)
|
||||
(cl-callf2 delq 'display-line-numbers-mode so-long-minor-modes)
|
||||
(setf (alist-get 'buffer-read-only so-long-variable-overrides nil t) nil)
|
||||
;; ...but at least reduce the level of syntax highlighting
|
||||
(add-to-list 'so-long-variable-overrides '(font-lock-maximum-decoration . 1))
|
||||
;; ...and insist that save-place not operate in large/long files
|
||||
(add-to-list 'so-long-variable-overrides '(save-place-alist . nil))
|
||||
;; But disable everything else that may be unnecessary/expensive for large or
|
||||
;; wide buffers.
|
||||
(appendq! so-long-minor-modes
|
||||
'(spell-fu-mode
|
||||
eldoc-mode
|
||||
highlight-numbers-mode
|
||||
better-jumper-local-mode
|
||||
ws-butler-mode
|
||||
auto-composition-mode
|
||||
undo-tree-mode
|
||||
highlight-indent-guides-mode
|
||||
hl-fill-column-mode
|
||||
;; These are redundant on Emacs 29+
|
||||
flycheck-mode
|
||||
smartparens-mode
|
||||
smartparens-strict-mode)))
|
||||
(cl-callf append so-long-minor-modes
|
||||
'(spell-fu-mode
|
||||
eldoc-mode
|
||||
highlight-numbers-mode
|
||||
better-jumper-local-mode
|
||||
ws-butler-mode
|
||||
auto-composition-mode
|
||||
undo-tree-mode
|
||||
highlight-indent-guides-mode
|
||||
hl-fill-column-mode
|
||||
;; These are redundant on Emacs 29+
|
||||
flycheck-mode
|
||||
smartparens-mode
|
||||
smartparens-strict-mode)))
|
||||
|
||||
|
||||
(use-package! ws-butler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue