diff options
author | noa@gaiwan.org | 2024-06-27 13:19:57 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-27 13:19:57 +0000 |
commit | bac0aeabd87e6e47c83d46a691304aa67d090838 (patch) | |
tree | 531f2ef01bed607dc592af4d4c279339ac4f1de3 /config.org | |
parent | 43797fecc164a1e928bb1dc7eab27eb970fe4ade (diff) |
Move fixed-pitch-mode settings under font configuration
Diffstat (limited to 'config.org')
-rw-r--r-- | config.org | 47 |
1 files changed, 24 insertions, 23 deletions
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-<down-mouse-1>") '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. |