summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2025-01-10 16:29:42 +0800
committernoa2025-01-10 16:29:42 +0800
commite2a54314cb73719fafe82e8727198026d626fb9b (patch)
treedd6130e697488a7286f39c3dcccdca472344f1eb /emacs
parent60b4db99b1bd20f6d6c499a7771147ef6f6afaeb (diff)
Replace fixed-pitch-mode with variable-pitch-mode
It's sadly an uphill battle to keep having to add exceptions to fixed-pitch-mode, so instead i think i'll just default to having text and code in variable pitch and all the other stuff can just stay fixed like it apparently wants to be.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el49
1 files changed, 28 insertions, 21 deletions
diff --git a/emacs/init.el b/emacs/init.el
index a9adf81..ce5e832 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -61,9 +61,35 @@
 ;;; Fonts
 ;; Using a proportional font 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.
 (custom-set-faces
- '(default ((t (:family "Noto Serif" :height 120))))
+ '(default ((t (:family "Noto Sans Mono" :height 120))))
  '(variable-pitch ((t (:family "Noto Serif" :height 120))))
- '(fixed-pitch ((t (:family "Noto Sans Mono" :height 120)))))
+ '(fixed-pitch ((t (:family "Noto Sans Mono" :height 120))))
+ )
+(use-package face-remap
+  :hook
+  ((text-mode . variable-pitch-mode)
+   (prog-mode . variable-pitch-mode)))
+
+;; 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
+  :disabled t
+  :custom
+  (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
+				 rmail-summary-mode-hook
+				 ebib-index-mode-hook
+                                 which-key-init-buffer-hook
+                                 ebib-entry-mode-hook
+                                 eshell-mode-hook
+                                 minibuffer-setup-hook
+                                 qrencode-mode-hook)))
+
 
 ;; Use simplified not korean hanzi
 (when (display-graphic-p)
@@ -95,25 +121,6 @@
 
 
 
-;; 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
-  :custom
-  (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
-				 rmail-summary-mode-hook
-				 ebib-index-mode-hook
-                                 which-key-init-buffer-hook
-                                 ebib-entry-mode-hook
-                                 eshell-mode-hook
-                                 minibuffer-setup-hook
-                                 qrencode-mode-hook)))
-
 (use-package transient
   :defer t
   :custom