From 5c72c72a0955bfffc6bdf5350fd0ad1da7cc5164 Mon Sep 17 00:00:00 2001 From: AChavali Date: Sat, 8 Feb 2020 13:45:55 +0000 Subject: ~ivy-posframe now applies to set of functions Ivy-posframe now only applies to a set of functions through the ivy-display-functions-alist. Some functions just aren't meant to be posframed and are incredibly slow when using posframes, so I don't put those in the list. Those functions in the list are functions that have a negligible change in performance while providing a much better experience via posframe. --- doom.d/modules/config.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'doom.d/modules/config.org') diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org index 3d895ae..1a48d20 100644 --- a/doom.d/modules/config.org +++ b/doom.d/modules/config.org @@ -151,8 +151,18 @@ If RETURN-P, return the message as a string instead of displaying it." Set-up config for ivy-posframe, particularly for positions #+BEGIN_SRC elisp (after! ivy-posframe - (setq ivy-posframe-display-functions-alist '((t . ivy-posframe-display-at-frame-bottom-window-center)))) + (setq ivy-posframe-display-functions-alist + '((counsel-M-x . ivy-posframe-display-at-frame-bottom-window-center) + (counsel-find-file . ivy-posframe-display-at-frame-bottom-window-center) + (swiper . ivy-posframe-display-at-frame-bottom-window-center) + (swiper-isearch . ivy-posframe-display-at-frame-bottom-window-center) + (counsel-projectile-switch-to-buffer . ivy-posframe-display-at-frame-bottom-window-center) + (ivy-switch-buffer . ivy-posframe-display-at-frame-bottom-window-center) + (counsel-load-theme . ivy-posframe-display-at-frame-bottom-window-center) + (oreodave/themes/set-new-theme . ivy-posframe-display-at-frame-bottom-window-center) + (counsel-bookmark . ivy-posframe-display-at-frame-bottom-window-center)))) #+END_SRC + * Language Config ** C-style languages Emacs doesn't have the full range of styles that I want, so lemme just do it myself. -- cgit v1.2.3-13-gbd6f