Fix incorrect uses of add-to-list

This commit is contained in:
Henrik Lissner 2018-05-28 12:26:03 +02:00
parent b84946318c
commit 3b85720c9c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 6 additions and 6 deletions

View file

@ -78,7 +78,7 @@ MODES should be one major-mode symbol or a list of them."
(defun +company|enable-project-dicts (mode &rest _)
"Enable per-project dictionaries."
(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))))
(add-hook 'doom-project-hook #'+company|enable-project-dicts))

View file

@ -49,7 +49,7 @@ immediately runs it on the current candidate (ending the ivy session)."
ivy-use-selectable-prompt t)
(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
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer