Fix incorrect uses of add-to-list
This commit is contained in:
parent
b84946318c
commit
3b85720c9c
6 changed files with 6 additions and 6 deletions
|
@ -78,7 +78,7 @@ MODES should be one major-mode symbol or a list of them."
|
||||||
(defun +company|enable-project-dicts (mode &rest _)
|
(defun +company|enable-project-dicts (mode &rest _)
|
||||||
"Enable per-project dictionaries."
|
"Enable per-project dictionaries."
|
||||||
(if (symbol-value mode)
|
(if (symbol-value mode)
|
||||||
(add-to-list 'company-dict-minor-mode-list mode #'eq)
|
(add-to-list 'company-dict-minor-mode-list mode nil #'eq)
|
||||||
(setq company-dict-minor-mode-list (delq mode company-dict-minor-mode-list))))
|
(setq company-dict-minor-mode-list (delq mode company-dict-minor-mode-list))))
|
||||||
(add-hook 'doom-project-hook #'+company|enable-project-dicts))
|
(add-hook 'doom-project-hook #'+company|enable-project-dicts))
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
ivy-use-selectable-prompt t)
|
ivy-use-selectable-prompt t)
|
||||||
|
|
||||||
(after! magit (setq magit-completing-read-function #'ivy-completing-read))
|
(after! magit (setq magit-completing-read-function #'ivy-completing-read))
|
||||||
(after! yasnippet (add-to-list 'yas-prompt-functions #'+ivy-yas-prompt #'eq))
|
(after! yasnippet (add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))
|
||||||
|
|
||||||
(map! [remap switch-to-buffer] #'ivy-switch-buffer
|
(map! [remap switch-to-buffer] #'ivy-switch-buffer
|
||||||
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
||||||
|
|
|
@ -34,5 +34,5 @@ trigger electric indentation."
|
||||||
(backward-word)
|
(backward-word)
|
||||||
(looking-at-p
|
(looking-at-p
|
||||||
(concat "\\<" (regexp-opt doom-electric-indent-words))))))
|
(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
|
;; Consider eshell buffers real
|
||||||
(defun +eshell-p (buf)
|
(defun +eshell-p (buf)
|
||||||
(eq (buffer-local-value 'major-mode buf) 'eshell-mode))
|
(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
|
;; Keep track of open eshell buffers
|
||||||
(add-hook 'eshell-mode-hook #'+eshell|init)
|
(add-hook 'eshell-mode-hook #'+eshell|init)
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
;; Consider term buffers real
|
;; Consider term buffers real
|
||||||
(defun +term-p (buf)
|
(defun +term-p (buf)
|
||||||
(eq (buffer-local-value 'major-mode buf) 'term-mode))
|
(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))
|
||||||
|
|
|
@ -293,7 +293,7 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
fn '((:default . evil-mc-execute-default-call))))
|
fn '((:default . evil-mc-execute-default-call))))
|
||||||
|
|
||||||
;; disable evil-escape in evil-mc; causes unwanted text on invocation
|
;; disable evil-escape in evil-mc; causes unwanted text on invocation
|
||||||
(add-to-list 'evil-mc-incompatible-minor-modes 'evil-escape-mode #'eq)
|
(add-to-list 'evil-mc-incompatible-minor-modes 'evil-escape-mode nil #'eq)
|
||||||
|
|
||||||
(defun +evil|escape-multiple-cursors ()
|
(defun +evil|escape-multiple-cursors ()
|
||||||
"Clear evil-mc cursors and restore state."
|
"Clear evil-mc cursors and restore state."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue