diff --git a/init.el b/init.el index d329e88..41a51c2 100644 --- a/init.el +++ b/init.el @@ -481,7 +481,8 @@ DOCSTRING is an optional form that is discarded upon expansion." (user/abbrev-path (eshell/pwd))) :unique))) (eshell-mode-hook . (lambda () - (setq-local global-hl-line-mode nil + (setq-local line-spacing 0.15 + global-hl-line-mode nil tab-line-tabs-function #'tab-line-tabs-mode-buffers) (tab-line-mode))) :bind @@ -912,6 +913,11 @@ DOCSTRING is an optional form that is discarded upon expansion." (global-corfu-mode) :config (corfu-popupinfo-mode) + ;; Set `line-spacing' to a custom value in corfu buffers for some + ;; added visual separation between completion candidates + (advice-add 'corfu--make-buffer :around (lambda (orig-fun &rest args) + (let ((line-spacing 0.2)) + (apply orig-fun args)))) :custom (corfu-auto t "Automatically display popups wherever available") (corfu-min-width 20 "Ensure completion popups are at least 20 columns wide")