summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--completion.org11
1 files changed, 11 insertions, 0 deletions
diff --git a/completion.org b/completion.org
index 275bf3a..49c718a 100644
--- a/completion.org
+++ b/completion.org
@@ -362,6 +362,17 @@
(jao-consult-add-buffer-source 'jao-chat-buffer-source)
#+end_src
+*** exwm
+ #+begin_src emacs-lisp
+ (with-eval-after-load "exwm"
+ (defun consult-exwm-preview-fix (&rest _args)
+ "Kludge to stop EXWM buffers from stealing focus during Consult previews."
+ (when-let ((mini (active-minibuffer-window)))
+ (select-window (active-minibuffer-window))))
+
+ (advice-add #'consult--buffer-action :after #'consult-exwm-preview-fix))
+
+ #+end_src
* embark
*** package
#+begin_src emacs-lisp