From e73bf18055bd25d5cf9d3b58114b289134dc7092 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 24 Nov 2022 00:37:32 +0100 Subject: Set up Emacs smart-mode-line --- emacs-init.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'emacs-init.el') diff --git a/emacs-init.el b/emacs-init.el index 6993f5fe..e6c2dfcc 100644 --- a/emacs-init.el +++ b/emacs-init.el @@ -59,6 +59,9 @@ (use-package diminish) ; for using :diminish later (use-package bind-key) ; for using :bind later +;; Some packages below have `:commands (...) :demand t'. +;; We need :commands for the byte-compiler, but we want to load the package immediately. + ;; Look and feel (set-face-attribute 'default nil :family "Hermit" :height 100) @@ -76,8 +79,13 @@ `(cursor ((default :background ,(tw/get-catppuccin-color "rosewater"))) t "Make the cursor \"rosewater\", as recommended by Catppuccin upstream, overriding catppuccin/emacs.")) -;; Some packages below have `:commands (...) :demand t'. -;; We need :commands for the byte-compiler, but we want to load the package immediately. +(use-package smart-mode-line + :commands (sml/setup) :demand t + :custom + (sml/no-confirm-load-theme t "Stop Emacs from constantly asking for user confirmation.") + (sml/mode-width 'right "Move the minor-mode list to the right of the modeline.") + (sml/theme 'respectful "Make `smart-mode-line' blend in with the active theme.") + :config (sml/setup)) ;; General editor behaviour. (use-package ivy -- cgit v1.2.3