diff --git a/modules/custom/completion/autoload/corfu.el b/modules/custom/completion/autoload/corfu.el index a4fad39..467bab5 100644 --- a/modules/custom/completion/autoload/corfu.el +++ b/modules/custom/completion/autoload/corfu.el @@ -1,5 +1,4 @@ ;;; custom/completion/autoload/corfu.el -*- lexical-binding: t; -*- - ;;; Courtesy of Takeshi Tsukamoto ;;; https://github.com/itome/.doom.d/ @@ -56,3 +55,9 @@ See `+dict--words' for extra words, and `+dict-file' for a wordslist source " (interactive) (let (completion-cycle-threshold completion-cycling) (apply #'consult-completion-in-region completion-in-region--data))) + +;;;###autoload +(defun +corfu-kill-frames () + (interactive) + (delete-frame corfu--frame) + (delete-frame corfu-doc--frame)) diff --git a/modules/custom/tab-bar/config.el b/modules/custom/tab-bar/config.el index 026c725..478f1bf 100644 --- a/modules/custom/tab-bar/config.el +++ b/modules/custom/tab-bar/config.el @@ -13,7 +13,10 @@ "s-j" #'tab-bar-switch-to-prev-tab "s-k" #'tab-bar-switch-to-next-tab) - (add-hook! 'tab-bar-mode-hook #'reset-frame-full-height) + ;; (add-hook! 'tab-bar-mode-hook #'reset-frame-full-height) + + (when (modulep! :custom completion) + (add-hook! 'tab-bar-mode-hook #'+corfu-kill-frames)) ;; tabs sometimes dissappear from the frame ;; I need to make sure they are on when tab switching