diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-02-18 13:50:01 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-02-18 13:50:13 +0000 |
commit | 5047777ff34a2d8f83cdf2c56fbb1c8f94506eca (patch) | |
tree | fabfef608609b40c76846ecc6a66d4f20bcb75f5 | |
parent | 156362bc9331f743e93d543fbb726e3bf464a95b (diff) | |
download | ymh-emacs-5047777ff34a2d8f83cdf2c56fbb1c8f94506eca.tar.gz ymh-emacs-5047777ff34a2d8f83cdf2c56fbb1c8f94506eca.zip |
Fix small issues and add darkroom
-rw-r--r-- | init.el | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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)) |