summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-14 11:01:03 +0000
committernoa@gaiwan.org2024-06-14 11:01:03 +0000
commitc5936abbe28a1a85216f394a42845fc735902970 (patch)
tree702163ac816aad4b1843245e3f4b0ce7c818b5f6 /emacs
parentf1c1c387cd55b13ff608da2bd58bd397efc7c5f5 (diff)
Simpler fixed-pitch configuration
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el23
1 files changed, 10 insertions, 13 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 1d94f34..8b77b4d 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -804,19 +804,16 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   (valign-fancy-bar t)
   (valign-max-table-size 0))
 
-(use-package fixed-pitch
-  :custom
-  (fixed-pitch-dont-change-cursor t)
-  (fixed-pitch-blacklist-hooks '(prog-mode-hook
-                                 comint-mode-hook))
-  (fixed-pitch-whitelist-hooks '(calendar-mode-hook
-                                 dired-mode-hook
-                                 ibuffer-mode-hook
-		                 magit-mode-hook
-		                 profiler-report-mode-hook
-		                 which-key-init-buffer-hook
-		                 jabber-roster-mode-hook
-		                 mu4e-headers-mode-hook)))
+;; 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.
+(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))
+(setopt transient-align-variable-pitch t)
 
 ;; My current favourite font is sn pro, which feels like comic sans for grown ups.  It's friendly but consistent and well thought out.  However, it's also a proportional font, which obviously is the right way to do things, but emacs is very old and comes from a time before the innovation of legibility.  As a result, there are some things that require a monospaced font, so i set one here.  I chose go mono for two reasons: the first is because i think it looks really nice; the second is because it has serifs and is very visually distinct from sn pro, so i can notice and shame those buffers which require a fixed width font to operate properly.
 (custom-set-faces