guixsd-config

GuixSD configs for my systems
Log | Files | Refs

commit be59274fd7d7f779acea2893819dca34f70d7633
parent ab21b89c08decdd86a7b0063147ec26a279cdac1
Author: Vineet Kumar <git@vineetk.net>
Date:   Sun, 15 Nov 2026 15:00:01 +0100

files/emacs: workaround exwm bug of completions keybinds not working

Diffstat:
Mepistemia/files/emacs/.config/emacs/init.el | 24+++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el @@ -222,6 +222,8 @@ ;; closes completion popup and then the actual command, which ;; isn't present in vertico. below is workaround. (:map minibuffer-visible-completions-map + ("C-p" . minibuffer-previous-line-completion) + ("C-n" . minibuffer-next-line-completion) ("C-g" . abort-recursive-edit))) ;;;;;;;;;;;;;;;;;;;; @@ -789,7 +791,27 @@ (string-prefix-p "sun-awt-X11-" exwm-instance-name)) (exwm-workspace-rename-buffer exwm-title)))) (transient-setup-buffer . (lambda () (setq exwm-input-line-mode-passthrough 't))) - (transient-post-exit . (lambda () (setq exwm-input-line-mode-passthrough nil)))) + (transient-post-exit . (lambda () (setq exwm-input-line-mode-passthrough nil))) + :config + ;; exwm's interaction with minibuffer's completion where it's + ;; treated as not a visible frame, so completions keybinds don't + ;; work even though they do in tty + (with-eval-after-load 'exwm + (advice-add + 'minibuffer--completions-visible + :around + (lambda (orig &rest args) + (or (apply orig args) + (when-let* ((frame exwm-workspace--current) + (win (get-buffer-window "*Completions*" frame))) + (let ((ref (buffer-local-value + 'completion-reference-buffer + (window-buffer win)))) + (when (or (null ref) + (eq ref (and (active-minibuffer-window) + (window-buffer + (active-minibuffer-window))))) + win)))))))) ;;;;;;;;; ;; LLM ;;