From 84d20cb01628e811b1bb465e50b7eaef405d41e1 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 29 Jun 2024 09:30:34 +0000 Subject: Move mode-line-format next to header-line-format --- config.org | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config.org b/config.org index 0c3886e..ae121f5 100644 --- a/config.org +++ b/config.org @@ -293,13 +293,7 @@ While we're at it, ensure that transients look nice with a variable pitch font. #+end_src ** Replace the mode line with a header line -First, we set the mode line to nil. On my graphical display, this collapses it so all i get is a thin black line separating the buffer from the echo area. - -#+begin_src elisp -(setq-default mode-line-format nil) -#+end_src - -But the mode line still holds some useful information that i want to see. I would rather that be in the header line, because to me it makes sense for this kind of metadata to be /above/ the buffer it is describing. +First, we set the mode line to nil. On my graphical display, this collapses it so all i get is a thin black line separating the buffer from the echo area. But the mode line still holds some useful information that i want to see. I would rather that be in the header line, because to me it makes sense for this kind of metadata to be /above/ the buffer it is describing. First, in white on black text, i want the information about the state of the file. This will show three hyphens in the top left corner of the header line. The first two hyphens mean that the file is both writable and unchanged. If the buffer has been changed, they will change to two asterisks. If the buffer is read only, they will change two percentage symbols. And if the buffer is read only and has been changed, the first will change to a percentage symbol, and the second will change to an asterisk. The final hyphen represents that the file is local, specifically that the default-directory variable is local. If it is remote, an at symbol will be displayed instead. @@ -310,6 +304,7 @@ Below that, show a line and column coördinate. There are special minor modes t I don't know exactly what the final variable covers, so i keep it here so that if something shows up i know that it gets put here. Because i have a global mode line in my tab bar, some of the things that would otherwise be here (like the time, battery percentage, and notifications for chat buffers) don't show up. #+begin_src elisp + (setq-default mode-line-format nil) (setq-default header-line-format '("%1*%1+%1@ " "%b:%l,%c " -- cgit 1.4.1-2-gfad0