aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-07-02 13:22:44 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-07-02 13:24:47 +0100
commit38b69af52b9a6f770b0cf4413fcfd53a9688c4cc (patch)
treee4304a465bf578d1cd9088a34f39da0f41ec5d9c /Emacs/.config/emacs/elisp
parent54a00ccd3dda8b1e26261329929faa9f67c0209a (diff)
downloaddotfiles-38b69af52b9a6f770b0cf4413fcfd53a9688c4cc.tar.gz
dotfiles-38b69af52b9a6f770b0cf4413fcfd53a9688c4cc.tar.bz2
dotfiles-38b69af52b9a6f770b0cf4413fcfd53a9688c4cc.zip
(Emacs/config)~refactor better-mode-line settings
Use new namespace, move evil-state mode-line generation to personal configuration and add (mode-line-selected-window-p) checks to hide the left and right segment when they're not the focused window.
Diffstat (limited to 'Emacs/.config/emacs/elisp')
-rw-r--r--Emacs/.config/emacs/elisp/better-mode-line.el12
1 files changed, 0 insertions, 12 deletions
diff --git a/Emacs/.config/emacs/elisp/better-mode-line.el b/Emacs/.config/emacs/elisp/better-mode-line.el
index a325ed6..1314d1f 100644
--- a/Emacs/.config/emacs/elisp/better-mode-line.el
+++ b/Emacs/.config/emacs/elisp/better-mode-line.el
@@ -39,18 +39,6 @@
(defconst better-mode-line/--minimum-padding 4
"Minimum size of padding string.")
-(defun +better-mode-line/evil-state ()
- "Returns either the empty string if no evil-state is defined or
-the first character of the evil state capitalised"
- (with-eval-after-load "evil"
- (if (bound-and-true-p evil-state)
- (upcase
- (substring
- (format "%s"
- evil-state)
- 0 1))
- "")))
-
(defun better-mode-line/--get-padding-size (other-size)
"Compute length of padding to ensure string of size OTHER is on an
extreme end to CENTRE-SEGMENT."