Skip to content

Commit

Permalink
Soft-fail when corfu-terminal is uninstallable, e.g. in Emacs 27
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 14, 2023
1 parent 8d3ccb2 commit 1fe8f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lisp/init-corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
(corfu-popupinfo-mode))

;; Make Corfu also work in terminals, without disturbing usual behaviour in GUI
(require-package 'corfu-terminal)
(with-eval-after-load 'corfu
(corfu-terminal-mode))
(when (maybe-require-package 'corfu-terminal)
(with-eval-after-load 'corfu
(corfu-terminal-mode)))

;; TODO: https://github.com/jdtsmith/kind-icon
)
Expand Down

0 comments on commit 1fe8f0d

Please sign in to comment.