diff --git a/config-min.org b/config-min.org index 1768e1e..e298b48 100644 --- a/config-min.org +++ b/config-min.org @@ -485,6 +485,9 @@ (add-hook 'prog-mode-hook 'corfu-mode) :config + (unless window-system + (use-package corfu-terminal) + (corfu-terminal-mode 1)) (when my-ec/enable-exwm (require 'corfu-hack))) diff --git a/elpa b/elpa index 1027401..513ae0b 160000 --- a/elpa +++ b/elpa @@ -1 +1 @@ -Subproject commit 10274013767e32490f797ffc87620f1abaef0564 +Subproject commit 513ae0ba03f7aabf13d8874b47c7322be5bad58a diff --git a/lisp/corfu-hack.el b/lisp/corfu-hack.el index 75a1406..639cc6a 100644 --- a/lisp/corfu-hack.el +++ b/lisp/corfu-hack.el @@ -57,7 +57,7 @@ ;; (get-focused-monitor-geometry) -(defun advise-corfu-make-frame-with-monitor-awareness (orig-fun frame x y width height buffer) +(defun advise-corfu-make-frame-with-monitor-awareness (orig-fun frame x y width height) "Advise `corfu--make-frame` to be monitor-aware, adjusting X and Y according to the focused monitor." ;; Get the geometry of the currently focused monitor (let* ((monitor-geometry (get-focused-monitor-geometry)) @@ -72,7 +72,7 @@ (new-y (+ monitor-y y))) ;; Call the original function with potentially adjusted coordinates - (funcall orig-fun frame new-x new-y width height buffer))) + (funcall orig-fun frame new-x new-y width height))) (advice-add 'corfu--make-frame :around #'advise-corfu-make-frame-with-monitor-awareness)