Set line-spacing for corfu and eshell
This commit is contained in:
parent
dc00cd351a
commit
0efe1a5c48
8
init.el
8
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")
|
||||
|
Loading…
Reference in New Issue
Block a user