summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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