diff options
author | noa | 2024-09-17 10:29:07 +0800 |
---|---|---|
committer | noa | 2024-09-17 10:29:07 +0800 |
commit | f365fce8282147a6425a6964036022880d646d25 (patch) | |
tree | b9ac0b498fcb5f617f2db698e43704c348391129 | |
parent | 85d0d8d16467887c993de1c064fbdbc5adb7e4c2 (diff) |
Remove unused configuration to replace mode line with custom header line
-rw-r--r-- | emacs/init.el | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/emacs/init.el b/emacs/init.el index 8aff18b..057c81f 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -105,22 +105,6 @@ ;; Ensure that transients look nice with a variable pitch font. (setopt transient-align-variable-pitch t) -;; 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. 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. - -;; Next, we want to display the buffer name. For buffers which belong to files, this will usually be the file name, but it is likely to be something more informative for special buffers. - -;; Below that, show a line and column coördinate. There are special minor modes that will enable or disable this for the default mode line, but i ignore that and put the formatting code here directly. The docstring for the mode-line-format variable suggests that the column might not be displayed correctly in some situations without enabling the minor mode, but i haven't noticed that yet so i don't bother. This column number is zero-indexed; a capital c would make it one-indexed. For now i stick with zero-indexed as that's the emacs default and i'm not sure which is better. I guess it makes a bit more sense that the first character on a line is labeled "1". - -;; 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. - -;; (setq-default mode-line-format nil) -;; (setq-default header-line-format -;; '("%1*%1+%1@ " -;; "%b:%l,%c ")) - ;;; Flash the current line ;; This function was taken from a karthinks blog post. Previously i was using an external package, [[https://github.com/Malabarba/beacon][beacon]], and i still think that functions better. But this is adequate enough that i'm happy. |