diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-07-03 04:56:52 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-07-03 04:56:52 +0100 |
commit | f1020a94de6151b289a2969c373b6e2b65ad1bdd (patch) | |
tree | 66b64cfdb1c7dd106da54d751f2fb3feae8fb3bc /Emacs | |
parent | cd70e6fec0cdd434382edb853f38d3dd948a1c17 (diff) | |
download | dotfiles-f1020a94de6151b289a2969c373b6e2b65ad1bdd.tar.gz dotfiles-f1020a94de6151b289a2969c373b6e2b65ad1bdd.tar.bz2 dotfiles-f1020a94de6151b289a2969c373b6e2b65ad1bdd.zip |
(Emacs/config)-unnecessary padding in centre-segment of mode line
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 4d16ff3..b0cea33 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -324,11 +324,7 @@ use fundamental mode and call it a day. emacs-version (emacs-init-time))))))) #+end_src ** Blinking cursor -Turn on blinking cursor. - -2021-03-15: Turn off blinking-cursor-mode as [[*Hl-line][hl-line]] is better. -2024-06-04: Actually a blinking cursor helps to see if Emacs is -hanging, which hl-line just can't do. +Configure the blinking cursor. #+begin_src emacs-lisp (use-package frame :defer t @@ -339,21 +335,22 @@ hanging, which hl-line just can't do. #+end_src ** Mode line The mode line is the little bar at the bottom of the buffer, just -above the minibuffer (where you do completions). It can store quite -literally anything, but generally stuff like the buffer name, file -type, column and line info, etc is put there. +above the minibuffer. It can store quite literally anything, but +generally stuff like the buffer name, file type, column and line info, +etc is put there. The default mode-line is... disgusting. It displays information in an unintelligible format and seems to smash together a bunch of information without much care for ordering. Most heartbreaking is -that any mode can just insert new information onto the mode-line -without any purview, which can be really annoying. It's also very -overstimulating. +that *anything* can seemingly append new information without any +purview, which can be really annoying. This means it can be very +overstimulating to look at, without even being that immediately +informative. I've got a custom Emacs lisp package ([[file:elisp/better-mode-line.el][here]]) which sets up the default mode line as a set of 3 segments: left, centre and right. It pads out -the mode line to achieve this. +the mode line with space strings to achieve this. #+begin_src emacs-lisp (use-package better-mode-line :load-path "elisp/" @@ -388,8 +385,7 @@ the first character of the evil state capitalised" "%b" ;; Buffer name ("(" ;; Major mode (:eval (format "%s" major-mode)) - ")") - " ") + ")")) better-mode-line/right-segment '((:eval (when (mode-line-window-selected-p) |