summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-15 00:03:43 +0000
committerjao <jao@gnu.org>2022-03-15 00:03:43 +0000
commitba93dad42c5d394ed60cdd8aaf5a3a2035f30f7f (patch)
treead5d792f9dc692a8c7d259819c017cd3da3e5332
parenteb6a935a51538ad646a9ef65aab4c4d3cc35e0f3 (diff)
downloadelibs-ba93dad42c5d394ed60cdd8aaf5a3a2035f30f7f.tar.gz
elibs-ba93dad42c5d394ed60cdd8aaf5a3a2035f30f7f.tar.bz2
completion: exwm/consult clutch
-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