mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix incorrect uses of add-to-list
This commit is contained in:
@ -34,5 +34,5 @@ trigger electric indentation."
|
||||
(backward-word)
|
||||
(looking-at-p
|
||||
(concat "\\<" (regexp-opt doom-electric-indent-words))))))
|
||||
(add-to-list 'electric-indent-functions #'+electric-indent|char))
|
||||
(add-to-list 'electric-indent-functions #'+electric-indent|char nil #'eq))
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
;; Consider eshell buffers real
|
||||
(defun +eshell-p (buf)
|
||||
(eq (buffer-local-value 'major-mode buf) 'eshell-mode))
|
||||
(add-to-list 'doom-real-buffer-functions #'+eshell-p #'eq)
|
||||
(add-to-list 'doom-real-buffer-functions #'+eshell-p nil #'eq)
|
||||
|
||||
;; Keep track of open eshell buffers
|
||||
(add-hook 'eshell-mode-hook #'+eshell|init)
|
||||
|
@ -11,4 +11,4 @@
|
||||
;; Consider term buffers real
|
||||
(defun +term-p (buf)
|
||||
(eq (buffer-local-value 'major-mode buf) 'term-mode))
|
||||
(add-to-list 'doom-real-buffer-functions #'+term-p #'eq))
|
||||
(add-to-list 'doom-real-buffer-functions #'+term-p nil #'eq))
|
||||
|
Reference in New Issue
Block a user