mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05: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:
@@ -217,9 +217,8 @@ Math faces should stay fixed by the mixed-pitch blacklist, this is mostly for
|
||||
(defadvice! +latex--dont-indent-itemize-and-enumerate-and-description-a (fn &rest args)
|
||||
:around #'LaTeX-fill-region-as-paragraph
|
||||
(let ((LaTeX-indent-environment-list LaTeX-indent-environment-list))
|
||||
(delq! "itemize" LaTeX-indent-environment-list 'assoc)
|
||||
(delq! "enumerate" LaTeX-indent-environment-list 'assoc)
|
||||
(delq! "description" LaTeX-indent-environment-list 'assoc)
|
||||
(dolist (item '("itemize" "enumerate" "description"))
|
||||
(setf (alist-get item LaTeX-indent-environment-list nil t #'equal) nil))
|
||||
(apply fn args))))
|
||||
|
||||
|
||||
|
@@ -760,7 +760,7 @@ mutating hooks on exported output, like formatters."
|
||||
"Restart `org-mode', but only once."
|
||||
(remove-hook 'doom-switch-buffer-hook #'+org--restart-mode-h 'local)
|
||||
(quiet! (org-mode-restart))
|
||||
(delq! (current-buffer) org-agenda-new-buffers)
|
||||
(cl-callf2 delq (current-buffer) org-agenda-new-buffers)
|
||||
(run-hooks 'find-file-hook))
|
||||
|
||||
(add-hook! 'org-agenda-finalize-hook
|
||||
|
@@ -20,4 +20,4 @@
|
||||
|
||||
(use-package! company-solidity
|
||||
:when (modulep! :completion company)
|
||||
:config (delq! 'company-solidity company-backends)))
|
||||
:config (cl-callf2 delq 'company-solidity company-backends)))
|
||||
|
@@ -62,7 +62,7 @@
|
||||
collect (cons (car pair)
|
||||
(string-trim-right (cdr pair)
|
||||
"\\(?:>\\|]\\|}\\)+\\'")))))
|
||||
(delq! nil web-mode-engines-auto-pairs))
|
||||
(cl-callf2 delq nil web-mode-engines-auto-pairs))
|
||||
|
||||
(add-to-list 'web-mode-engines-alist '("elixir" . "\\.eex\\'"))
|
||||
(add-to-list 'web-mode-engines-alist '("phoenix" . "\\.[lh]eex\\'"))
|
||||
|
Reference in New Issue
Block a user