Extract ivy config into core-ivy.el

This commit is contained in:
Henrik Lissner 2016-10-03 12:10:52 +02:00
parent d21b82d89b
commit c28bb1519d
3 changed files with 6 additions and 6 deletions

View File

@ -278,8 +278,7 @@
(use-package smex
:commands (smex smex-major-mode-commands)
:config
(setq smex-completion-method 'ivy
smex-save-file (concat doom-temp-dir "/smex-items"))
(setq smex-save-file (concat doom-temp-dir "/smex-items"))
(smex-initialize))
(use-package swiper :commands (swiper swiper-all))

View File

@ -9,9 +9,6 @@
ivy-wrap t)
:config
(after! magit
(setq magit-completing-read-function 'ivy-completing-read))
(ivy-mode +1)
(map! :map ivy-minibuffer-map
[escape] 'keyboard-escape-quit
@ -24,6 +21,10 @@
;; Fix display glitches
(advice-add 'ivy-done :after 'redraw-display)
(after! magit (setq magit-completing-read-function 'ivy-completing-read))
(after! smex (setq smex-completion-method 'ivy))
(after! yasnippet (push 'doom/yas-ivy-prompt yas-prompt-functions))
;;
(require 'counsel)

View File

@ -13,7 +13,7 @@
(setq yas-verbosity 0
yas-indent-line 'auto
yas-also-auto-indent-first-line t
yas-prompt-functions '(doom/yas-ivy-prompt yas-ido-prompt yas-no-prompt)
yas-prompt-functions '(yas-ido-prompt yas-no-prompt)
;; Only load personal snippets
yas-snippet-dirs (list (concat doom-private-dir "/snippets")
(concat doom-private-dir "/templates")))