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.el31
1 files changed, 27 insertions, 4 deletions
diff --git a/init.el b/init.el index b930513..6940a12 100644 --- a/init.el +++ b/init.el
@@ -143,6 +143,10 @@
143 '("firefox" 143 '("firefox"
144 "chromium" 144 "chromium"
145 "chrome")) 145 "chrome"))
146 browse-url-chrome-program (seq-some #'executable-find
147 '("chromium"
148 "chrome"
149 "google-chrome-stable"))
146 browse-url-generic-args (seq-some (lambda (e) 150 browse-url-generic-args (seq-some (lambda (e)
147 (when (equal (executable-find (car e)) 151 (when (equal (executable-find (car e))
148 browse-url-generic-program) 152 browse-url-generic-program)
@@ -488,7 +492,7 @@
488 org-tags-column (- (- fill-column (length org-ellipsis))) 492 org-tags-column (- (- fill-column (length org-ellipsis)))
489 org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" 493 org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)"
490 "|" "DONE(d!)") 494 "|" "DONE(d!)")
491 (sequence "|" "CANCELED(k!)") 495 (sequence "|" "CANCELED(k@/!)")
492 (sequence "MEETING(m)"))) 496 (sequence "MEETING(m)")))
493 (:bind "RET" #'+org-return-dwim 497 (:bind "RET" #'+org-return-dwim
494 "<S-return>" #'+org-table-copy-down 498 "<S-return>" #'+org-table-copy-down
@@ -595,7 +599,7 @@
595 599
596(setup scratch 600(setup scratch
597 (:require +scratch) 601 (:require +scratch)
598 (:option initial-major-mode #'lisp-interaction-mode 602 (:option initial-major-mode #'emacs-lisp-mode
599 initial-scratch-message 603 initial-scratch-message
600 ";; ABANDON ALL HOPE YE WHO ENTER HERE\n\n") 604 ";; ABANDON ALL HOPE YE WHO ENTER HERE\n\n")
601 (add-hook 'kill-buffer-query-functions #'+scratch-immortal)) 605 (add-hook 'kill-buffer-query-functions #'+scratch-immortal))
@@ -1089,6 +1093,8 @@ See also `crux-reopen-as-root-mode'."
1089 "&" #'+elfeed-show-browse-generic 1093 "&" #'+elfeed-show-browse-generic
1090 "RET" #'shr-browse-url) 1094 "RET" #'shr-browse-url)
1091 (:hook #'reading-mode) 1095 (:hook #'reading-mode)
1096 (:option +elfeed--update-repeat (* 60 60) ; 1 hour
1097 +elfeed--update-first-time 60)
1092 (+elfeed-update-async-mode +1))) 1098 (+elfeed-update-async-mode +1)))
1093 1099
1094(setup (:straight elfeed-org) 1100(setup (:straight elfeed-org)
@@ -1350,6 +1356,14 @@ See also `crux-reopen-as-root-mode'."
1350 #'hl-line-mode 1356 #'hl-line-mode
1351 #'lin-mode)) 1357 #'lin-mode))
1352 1358
1359(setup (:straight md4rd)
1360 ;; `md4rd' is ... a bit janky, tbh. But I'm including this here so I have it.
1361 ;; TODO: enable opening Reddit links in md4rd
1362 (:also-load _md4rd)
1363 (defalias 'reddit 'md4rd "Browse Reddit.")
1364 (with-eval-after-load 'md4rd
1365 (run-with-timer 0 (* 60 59) 'md4rd-refresh-login)))
1366
1353(setup (:straight minions) 1367(setup (:straight minions)
1354 (minions-mode +1)) 1368 (minions-mode +1))
1355 1369
@@ -1364,11 +1378,12 @@ See also `crux-reopen-as-root-mode'."
1364 :host gitlab 1378 :host gitlab
1365 :repo "protesilaos/modus-themes")) 1379 :repo "protesilaos/modus-themes"))
1366 (require 'modus-themes (.etc "straight/build/modus-themes/modus-themes")) 1380 (require 'modus-themes (.etc "straight/build/modus-themes/modus-themes"))
1381 (:also-load dawn)
1367 (:option modus-themes-mixed-fonts t 1382 (:option modus-themes-mixed-fonts t
1368 modus-themes-bold-constructs t 1383 modus-themes-bold-constructs t
1369 modus-themes-italic-constructs t 1384 modus-themes-italic-constructs t
1370 modus-themes-headings '((t . (background)))) 1385 modus-themes-headings '((t . (background))))
1371 (+sunrise-sunset 'modus-themes-load-operandi 'modus-themes-load-vivendi)) 1386 (dawn-schedule #'modus-themes-load-operandi #'modus-themes-load-vivendi))
1372 1387
1373(setup (:straight mwim) 1388(setup (:straight mwim)
1374 (:require +mwim) 1389 (:require +mwim)
@@ -1379,7 +1394,7 @@ See also `crux-reopen-as-root-mode'."
1379 "C-e" #'+mwim-end-maybe)) 1394 "C-e" #'+mwim-end-maybe))
1380 1395
1381(setup (:straight orderless) 1396(setup (:straight orderless)
1382 (:also-load +orderless) 1397 (:require +orderless)
1383 (:option completion-styles '(substring orderless basic) 1398 (:option completion-styles '(substring orderless basic)
1384 completion-category-defaults nil 1399 completion-category-defaults nil
1385 completion-category-overrides 1400 completion-category-overrides
@@ -1447,6 +1462,8 @@ See also `crux-reopen-as-root-mode'."
1447 ;; Ensure we can build `pdf-tools' 1462 ;; Ensure we can build `pdf-tools'
1448 (or (executable-find "gcc") 1463 (or (executable-find "gcc")
1449 (executable-find "g++"))) 1464 (executable-find "g++")))
1465 (setf (alist-get "\\.pdf\\'" auto-mode-alist nil nil #'equal)
1466 #'pdf-view-modei)
1450 (pdf-tools-install t)) 1467 (pdf-tools-install t))
1451 1468
1452(setup (:straight (shell-command+ 1469(setup (:straight (shell-command+
@@ -1590,6 +1607,11 @@ See also `crux-reopen-as-root-mode'."
1590 undo-fu-session-compression (executable-find "gzip")) 1607 undo-fu-session-compression (executable-find "gzip"))
1591 (global-undo-fu-session-mode +1)) 1608 (global-undo-fu-session-mode +1))
1592 1609
1610(setup (:straight valign)
1611 (:option valign-fancy-bar t)
1612 (:hook-into org-mode
1613 markdown-mode))
1614
1593(setup (:straight (vertico 1615(setup (:straight (vertico
1594 :host github 1616 :host github
1595 :repo "minad/vertico" 1617 :repo "minad/vertico"
@@ -1624,6 +1646,7 @@ See also `crux-reopen-as-root-mode'."
1624 ;; This is applied /after/ the above, so default is at the end of 1646 ;; This is applied /after/ the above, so default is at the end of
1625 ;; this alist. 1647 ;; this alist.
1626 vertico-multiform-categories '((file buffer grid) 1648 vertico-multiform-categories '((file buffer grid)
1649 (bookmark)
1627 (t flat))) 1650 (t flat)))
1628 (dolist (buf-cmd '(consult-find 1651 (dolist (buf-cmd '(consult-find
1629 consult-yank-pop 1652 consult-yank-pop