From 380e6153a9f995ae8b424ce29b058b5ac63aba2f Mon Sep 17 00:00:00 2001 From: noa Date: Wed, 18 Sep 2024 09:33:40 +0800 Subject: Convert valign to use-package --- emacs/init.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 792397a..cf46f0c 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -145,10 +145,13 @@ (global-set-key (kbd "C-S-") #'mouse-drag-region-rectangle) ;; Nicer tables -(package-ensure 'valign) -(add-hook 'markdown-mode-hook #'valign-mode) -(setopt valign-fancy-bar t) -(setopt valign-max-table-size 0) +(use-package valign + :ensure t + :hook + ((markdown-mode . valign-mode)) + :custom + (valign-fancy-bar t) + (valign-max-table-size 0)) ;; Markdown (use-package markdown-mode -- cgit 1.4.1-2-gfad0