summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el23
1 files changed, 18 insertions, 5 deletions
diff --git a/init.el b/init.el index 835af08..5e06539 100644 --- a/init.el +++ b/init.el
@@ -63,6 +63,12 @@
63 (append +pulse-location-commands) 'lui-track-jump-to-indicator) 63 (append +pulse-location-commands) 'lui-track-jump-to-indicator)
64 (+pulse-location-mode +1)) 64 (+pulse-location-mode +1))
65 65
66(setup (:require reading))
67
68(setup Info
69 (:hook 'variable-pitch-mode
70 'reading-mode))
71
66(setup abbrev 72(setup abbrev
67 (:option abbrev-file-name (sync/ "abbrev.el") 73 (:option abbrev-file-name (sync/ "abbrev.el")
68 save-abbrevs 'silent) 74 save-abbrevs 'silent)
@@ -228,6 +234,9 @@
228 (:when-loaded 234 (:when-loaded
229 (setenv "PAGER" "cat"))) 235 (setenv "PAGER" "cat")))
230 236
237(setup eww
238 (:hook 'reading-mode))
239
231(setup magit 240(setup magit
232 ;; This setup is weird because of dependency issues 241 ;; This setup is weird because of dependency issues
233 (:straight (transient :host github :repo "magit/transient" :branch "master") 242 (:straight (transient :host github :repo "magit/transient" :branch "master")
@@ -517,7 +526,8 @@ See also `crux-reopen-as-root-mode'."
517 (autoload 'dictionary-tooltip-mode "dictionary" 526 (autoload 'dictionary-tooltip-mode "dictionary"
518 "Display tooltips for the current word" t) 527 "Display tooltips for the current word" t)
519 (autoload 'global-dictionary-tooltip-mode "dictionary" 528 (autoload 'global-dictionary-tooltip-mode "dictionary"
520 "Enable/disable dictionary-tooltip-mode for all buffers" t)) 529 "Enable/disable dictionary-tooltip-mode for all buffers" t)
530 (:hook 'reading-mode))
521 531
522(setup (:straight (discord 532(setup (:straight (discord
523 :host github 533 :host github
@@ -535,7 +545,8 @@ See also `crux-reopen-as-root-mode'."
535 elfeed-db-directory (sync/ "elfeed/db/" t)) 545 elfeed-db-directory (sync/ "elfeed/db/" t))
536 (:with-mode elfeed-show-mode 546 (:with-mode elfeed-show-mode
537 (:bind "SPC" '+elfeed-scroll-up-command 547 (:bind "SPC" '+elfeed-scroll-up-command
538 "S-SPC" '+elfeed-scroll-down-command))) 548 "S-SPC" '+elfeed-scroll-down-command)
549 (:hook 'reading-mode)))
539 550
540(setup (:straight elfeed-org) 551(setup (:straight elfeed-org)
541 (:option rmh-elfeed-org-files (list (sync/ "elfeed/elfeed.org" t))) 552 (:option rmh-elfeed-org-files (list (sync/ "elfeed/elfeed.org" t)))
@@ -789,6 +800,7 @@ See also `crux-reopen-as-root-mode'."
789 (eq system-type 'gnu/linux)) 800 (eq system-type 'gnu/linux))
790 (pdf-tools-install)) 801 (pdf-tools-install))
791 802
803
792(setup (:straight (shell-command+ 804(setup (:straight (shell-command+
793 :host nil 805 :host nil
794 :repo "https://git.sr.ht/~pkal/shell-command-plus")) 806 :repo "https://git.sr.ht/~pkal/shell-command-plus"))
@@ -803,6 +815,7 @@ See also `crux-reopen-as-root-mode'."
803 (:option simple-modeline-segments '((;; left 815 (:option simple-modeline-segments '((;; left
804 +modeline-ace-window-display 816 +modeline-ace-window-display
805 +modeline-modified 817 +modeline-modified
818 +modeline-reading-mode
806 +modeline-narrowed 819 +modeline-narrowed
807 +modeline-buffer-name 820 +modeline-buffer-name
808 +modeline-position 821 +modeline-position
@@ -894,11 +907,11 @@ See also `crux-reopen-as-root-mode'."
894 (add-hook 'rfn-eshadow-update-overlay-hook 'vertico-directory-tidy)) 907 (add-hook 'rfn-eshadow-update-overlay-hook 'vertico-directory-tidy))
895 908
896(setup (:straight visual-fill-column) 909(setup (:straight visual-fill-column)
897 (:option visual-fill-column-center-text t) 910 (:option visual-fill-column-center-text t
911 (append reading-modes) '(visual-fill-column-mode . +1))
898 (:hook 'visual-line-mode) 912 (:hook 'visual-line-mode)
899 (:hook-into org-mode) 913 (:hook-into org-mode)
900 (with-eval-after-load 'visual-fill-column 914 (advice-add 'text-scale-adjust :after 'visual-fill-column-adjust))
901 (advice-add 'text-scale-adjust :after 'visual-fill-column-adjust)))
902 915
903(setup (:straight vlf) 916(setup (:straight vlf)
904 (:require vlf-setup)) 917 (:require vlf-setup))