From 5047777ff34a2d8f83cdf2c56fbb1c8f94506eca Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 18 Feb 2023 13:50:01 +0000 Subject: Fix small issues and add darkroom --- init.el | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 5823ea5..ad228d9 100644 --- a/init.el +++ b/init.el @@ -154,7 +154,7 @@ (dolist (c '(overwrite-mode narrow-to-region narrow-to-page upcase-region downcase-region)) (put c 'disabled nil)) - (set-face-attribute 'default nil :font "IBM Plex Mono SmBld-10") + (set-face-attribute 'default nil :font "Iosevka YMHG SemiBold-12") (setq auto-mode-alist (append @@ -170,7 +170,9 @@ (setq mac-right-option-modifier 'hyper) (setq mac-command-modifier 'meta) (setq mac-option-modifier 'super) - (add-hook 'ns-system-appearance-change-functions #'ymh/apply-theme))) + (add-hook 'ns-system-appearance-change-functions #'ymh/apply-theme)) + + (global-display-fill-column-indicator-mode)) (use-package ymh-diary :load-path "ymh-emacs") @@ -180,6 +182,12 @@ (setq shr-use-fonts nil) (setq shr-max-image-proportion 0.5)) +(use-package exec-path-from-shell + :ensure t + :config + (when (memq window-system '(mac ns x)) + (exec-path-from-shell-initialize))) + (use-package browse-url :init (setq browse-url-handlers @@ -534,7 +542,7 @@ https://yannherklotz.com")) (package-vc-install '(org-zettelkasten . (:url "https://git.sr.ht/~ymherklotz/org-zettelkasten"))) - (packag-install 'org-zettelkasten))) + (package-install 'org-zettelkasten))) (setq org-zettelkasten-directory "~/Dropbox/zk") (setq org-zettelkasten-mapping '((1 . "hls.org") @@ -902,6 +910,13 @@ https://yannherklotz.com")) :ensure t :defer t) +(use-package darkroom + :ensure t + :init + (setq darkroom-text-scale-increase 1) + :config + (add-hook 'text-mode-hook #'darkroom-tentative-mode)) + (setq gc-cons-threshold (* 1024 1024 10)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -- cgit