Skip to content

Commit

Permalink
corfu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
agzam committed Nov 16, 2022
1 parent 896b72d commit 993be8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modules/custom/completion/autoload/corfu.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
;;; custom/completion/autoload/corfu.el -*- lexical-binding: t; -*-

;;; Courtesy of Takeshi Tsukamoto
;;; https://github.com/itome/.doom.d/

Expand Down Expand Up @@ -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))
5 changes: 4 additions & 1 deletion modules/custom/tab-bar/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 993be8d

Please sign in to comment.