From 69e34272cc000ceb03ec280c5826ab3ec900b2bc Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Thu, 19 Oct 2023 17:55:30 +0200 Subject: [PATCH] Play around with header-line and mode-line --- bundle/bundle--gui.el | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/bundle/bundle--gui.el b/bundle/bundle--gui.el index 5b6a30f2..16f99c7b 100644 --- a/bundle/bundle--gui.el +++ b/bundle/bundle--gui.el @@ -23,6 +23,22 @@ (add-hook 'after-make-frame-functions 'center-frame) +(setq-default header-line-format + (list " " + '(:eval (buffer-name)) " " + '(:eval mode-name) + '(:eval (format-mode-line minor-mode-alist)) " " + '(:eval (if mode-line-process (concat ":" mode-line-process) "")) + '(:eval (when vc-mode (concat "[" (vc-working-revision (buffer-file-name)) "] "))))) + +(setq-default mode-line-format + (list " " + "%l:%c" + " " + mode-line-modified " " + '(:eval (when vc-mode (substring vc-mode 5))) + global-mode-string)) + (use-package all-the-icons :if (display-graphic-p) :commands all-the-icons-install-fonts @@ -34,9 +50,17 @@ :if (display-graphic-p) :hook (dired-mode . all-the-icons-dired-mode)) -(use-package doom-modeline - :init (doom-modeline-mode 1) - :custom (doom-modeline-height 0)) +;; (use-package doom-modeline +;; :hook (after-init . doom-modeline-mode) +;; :custom +;; (doom-modeline-height 0) +;; (doom-modeline-bar-width 4) +;; (doom-modeline-icon t) +;; (doom-modeline-major-mode-icon t) +;; (doom-modeline-unicode-fallback nil) +;; (doom-modeline-minor-modes nil) +;; (doom-modeline-buffer-encoding nil) +;; (doom-modeline-battery nil)) (use-package helpful :commands (helpful-callable helpful-variable helpful-command helpful-key) @@ -67,8 +91,7 @@ ;; (use-package vertico :init (vertico-mode)) -(use-package emojify - :hook (after-init . global-emojify-mode)) +(use-package emojify) (use-package webjump :bind ("C-c j" . webjump)