From bac0aeabd87e6e47c83d46a691304aa67d090838 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 27 Jun 2024 13:19:57 +0000 Subject: Move fixed-pitch-mode settings under font configuration --- config.org | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 798b673..2cfb6bb 100644 --- a/config.org +++ b/config.org @@ -244,6 +244,30 @@ Update the calendar. We want weeks to start on a monday, the first day of the w calendar-date-style 'iso) #+end_src +** Monospace font fallback + +This is my own version of fixed-pitch, which has some changes to it. No hooks are added by default. Updating the whitelist automatically applies the hooks. And there is no functionality for changing the cursor type. + +#+begin_src elisp + (use-package fixed-pitch) + (setopt fixed-pitch-whitelist-hooks '(calendar-mode-hook + dired-mode-hook + ibuffer-mode-hook + magit-mode-hook + profiler-report-mode-hook + jabber-roster-mode-hook + mu4e-headers-mode-hook + proced-mode-hook)) +#+end_src + +** Transient variable font + +While we're at it, ensure that transients look nice with a variable pitch font. + +#+begin_src elisp +(setopt transient-align-variable-pitch t) +#+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. @@ -445,29 +469,6 @@ Shift click to select region with the mouse. This annoyingly rings the bell for (global-set-key (kbd "S-") 'mouse-save-then-kill) #+end_src -** Monospace font fallback - -This is my own version of fixed-pitch, which has some changes to it. No hooks are added by default. Updating the whitelist automatically applies the hooks. And there is no functionality for changing the cursor type. - -#+begin_src elisp - (use-package fixed-pitch) - (setopt fixed-pitch-whitelist-hooks '(calendar-mode-hook - dired-mode-hook - ibuffer-mode-hook - magit-mode-hook - profiler-report-mode-hook - jabber-roster-mode-hook - mu4e-headers-mode-hook)) -#+end_src - -** Transient variable font - -While we're at it, ensure that transients look nice with a variable pitch font. - -#+begin_src elisp -(setopt transient-align-variable-pitch t) -#+end_src - * Xmpp Jabber.el is an xmpp client in emacs. I don't actually use xmpp as xmpp that much. But i do use it to connect to irc, and this package lets me do that. Unfortunately, it's not a particularly well-behaved package; by default it clobbers some keybindings and floods the echo area with unhelpful messages. -- cgit 1.4.1-2-gfad0