From 44d30ca3ceb10e987fdaeacdc9acb5300238c484 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 14 Mar 2018 04:49:14 -0400 Subject: [PATCH] Fix doom-active-minor-modes --- core/autoload/debug.el | 2 +- modules/ui/posframe/config.el | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index 7937a1ede..bb886f902 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -37,7 +37,7 @@ whose car is the list of faces and cadr is the list of overlay faces." (defun doom-active-minor-modes () "Get a list of active minor-mode symbols." (cl-loop for mode in minor-mode-list - unless (and (boundp mode) (symbol-value mode)) + if (and (boundp mode) (symbol-value mode)) collect mode)) ;;;###autoload diff --git a/modules/ui/posframe/config.el b/modules/ui/posframe/config.el index 097249c6d..4334e170c 100644 --- a/modules/ui/posframe/config.el +++ b/modules/ui/posframe/config.el @@ -42,7 +42,11 @@ (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 '(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) (setq ivy-height 16