Fix doom-active-minor-modes

This commit is contained in:
Henrik Lissner 2018-03-14 04:49:14 -04:00
parent 03e6900d3c
commit 44d30ca3ce
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 6 additions and 2 deletions

View file

@ -37,7 +37,7 @@ whose car is the list of faces and cadr is the list of overlay faces."
(defun doom-active-minor-modes () (defun doom-active-minor-modes ()
"Get a list of active minor-mode symbols." "Get a list of active minor-mode symbols."
(cl-loop for mode in minor-mode-list (cl-loop for mode in minor-mode-list
unless (and (boundp mode) (symbol-value mode)) if (and (boundp mode) (symbol-value mode))
collect mode)) collect mode))
;;;###autoload ;;;###autoload

View file

@ -42,7 +42,11 @@
(push (list fn :cleanup 'ivy-posframe-cleanup) ivy-display-functions-props)) (push (list fn :cleanup 'ivy-posframe-cleanup) ivy-display-functions-props))
(push '(t . +posframe-ivy-display-at-frame-center-near-bottom) ivy-display-functions-alist) (push '(t . +posframe-ivy-display-at-frame-center-near-bottom) ivy-display-functions-alist)
(push '(swiper . nil) ivy-display-functions-alist)
;; posframe doesn't work well with async sources
(dolist (fn '(swiper counsel-rg counsel-ag counsel-pt counsel-grep counsel-git-grep))
(push (cons fn nil) ivy-display-functions-alist))
(ivy-posframe-enable) (ivy-posframe-enable)
(setq ivy-height 16 (setq ivy-height 16