From 0efe1a5c48c2b79d8e5d726d64aa004764aebbe0 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Thu, 29 Dec 2022 20:39:19 -0500 Subject: [PATCH] Set line-spacing for corfu and eshell --- init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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")