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.el109
1 files changed, 57 insertions, 52 deletions
diff --git a/init.el b/init.el index 6c88148..d1eb3ec 100644 --- a/init.el +++ b/init.el
@@ -53,7 +53,10 @@
53 "C-<backspace>" #'+backward-kill-word 53 "C-<backspace>" #'+backward-kill-word
54 "C-x TAB" #'+indent-rigidly 54 "C-x TAB" #'+indent-rigidly
55 "<f7>" #'flyspell-mode 55 "<f7>" #'flyspell-mode
56 "C-x C-c" #'+save-buffers-quit) 56 "C-x C-c" #'+save-buffers-quit
57 "C-\\" nil ; original: toggle-input-method
58 "C-/" #'undo-only
59 "C-?" #'undo-redo)
57 ;; Disable bindings 60 ;; Disable bindings
58 (:global "M-j" nil 61 (:global "M-j" nil
59 "<Scroll_Lock>" nil) 62 "<Scroll_Lock>" nil)
@@ -479,6 +482,9 @@
479 ;; (+kmacro-recording-indicator-mode +1) 482 ;; (+kmacro-recording-indicator-mode +1)
480 (+kmacro-block-undo-mode +1))) 483 (+kmacro-block-undo-mode +1)))
481 484
485(setup midnight
486 (midnight-mode +1))
487
482(setup minibuffer 488(setup minibuffer
483 (:require +minibuffer) 489 (:require +minibuffer)
484 (:with-map minibuffer-local-map 490 (:with-map minibuffer-local-map
@@ -898,6 +904,8 @@
898 (add-hook 'kill-buffer-query-functions #'+scratch-immortal)) 904 (add-hook 'kill-buffer-query-functions #'+scratch-immortal))
899 905
900(setup sh 906(setup sh
907 (:option sh-indentation tab-width)
908 (:hook #'indent-tabs-mode)
901 (:apheleia shfmt '("shfmt"))) 909 (:apheleia shfmt '("shfmt")))
902 910
903(setup shell 911(setup shell
@@ -993,8 +1001,7 @@
993 (:face 'aw-mode-line-face '((t (:foreground "red")))) 1001 (:face 'aw-mode-line-face '((t (:foreground "red"))))
994 (+ace-window-display-mode +1)) 1002 (+ace-window-display-mode +1))
995 1003
996(setup (:straight (actually-selected-window 1004(setup (:straight (actually-selected-window :host github
997 :host github
998 :repo "duckwork/actually-selected-window.el")) 1005 :repo "duckwork/actually-selected-window.el"))
999 (actually-selected-window-mode +1)) 1006 (actually-selected-window-mode +1))
1000 1007
@@ -1121,8 +1128,7 @@
1121 browse-kill-ring-separator " ") 1128 browse-kill-ring-separator " ")
1122 (:hook #'form-feed-mode)) 1129 (:hook #'form-feed-mode))
1123 1130
1124(setup (:straight (cape 1131(setup (:straight (cape :host github :repo "minad/cape"))
1125 :host github :repo "minad/cape"))
1126 (let 1132 (let
1127 ;; All available cape capfs listed here. Add them to the front since 1133 ;; All available cape capfs listed here. Add them to the front since
1128 ;; they're reversed with `add-to-list'. 1134 ;; they're reversed with `add-to-list'.
@@ -1327,8 +1333,7 @@
1327 (add-hook 'modus-themes-after-load-theme-hook #'circe-nick-color-reset)) 1333 (add-hook 'modus-themes-after-load-theme-hook #'circe-nick-color-reset))
1328 (add-hook 'kill-emacs-hook #'+circe-quit-all@kill-emacs)) 1334 (add-hook 'kill-emacs-hook #'+circe-quit-all@kill-emacs))
1329 1335
1330(setup (:straight (clean-kill-ring 1336(setup (:straight (clean-kill-ring :host github
1331 :host github
1332 :repo "NicholasBHubbard/clean-kill-ring.el")) 1337 :repo "NicholasBHubbard/clean-kill-ring.el"))
1333 (:require) 1338 (:require)
1334 (:option clean-kill-ring-prevent-duplicates t) 1339 (:option clean-kill-ring-prevent-duplicates t)
@@ -1481,8 +1486,7 @@
1481 "TAB" #'dired-subtree-cycle 1486 "TAB" #'dired-subtree-cycle
1482 "i" #'dired-subtree-toggle)) 1487 "i" #'dired-subtree-toggle))
1483 1488
1484(setup (:straight (discord 1489(setup (:straight (discord :host github
1485 :host github
1486 :repo "davep/discord.el" 1490 :repo "davep/discord.el"
1487 :fork (:repo "duckwork/discord.el")))) 1491 :fork (:repo "duckwork/discord.el"))))
1488 1492
@@ -1574,6 +1578,20 @@
1574 (file+olp ,(car rmh-elfeed-org-files) "Feeds") 1578 (file+olp ,(car rmh-elfeed-org-files) "Feeds")
1575 "* %? %^g"))) 1579 "* %? %^g")))
1576 1580
1581(setup (:straight (elfeed-tube :host github :repo "karthink/elfeed-tube")
1582 (or (executable-find "youtube-dl")
1583 (executable-find "yt-dlp")))
1584 (:straight (elfeed-tube-mpv :host github :repo "karthink/elfeed-tube"))
1585 (:load-after elfeed)
1586 (with-eval-after-load 'elfeed
1587 (elfeed-tube-setup)
1588 (:bind-into (elfeed-show-mode-map elfeed-search-mode-map)
1589 "F" #'elfeed-tube-fetch
1590 [remap save-buffer] #'elfeed-tube-save)
1591 (:bind-into elfeed-show-mode-map
1592 "C-c C-f" #'elfeed-tube-mpv-follow-mode
1593 "C-c C-w" #'elfeed-tube-mpv-where)))
1594
1577(setup (:straight elpher) 1595(setup (:straight elpher)
1578 (:bind "l" #'elpher-back)) 1596 (:bind "l" #'elpher-back))
1579 1597
@@ -1603,8 +1621,7 @@
1603 :inherit font-lock-keyword-face)))) 1621 :inherit font-lock-keyword-face))))
1604 (:+key "C-," #'embrace-commander)) 1622 (:+key "C-," #'embrace-commander))
1605 1623
1606(setup (:straight (ement 1624(setup (:straight (ement :host github
1607 :host github
1608 :repo "alphapapa/ement.el") 1625 :repo "alphapapa/ement.el")
1609 ;; `plz' is a requirement, but isn't on an elpa. 1626 ;; `plz' is a requirement, but isn't on an elpa.
1610 (setup (:straight (plz :host github 1627 (setup (:straight (plz :host github
@@ -1661,19 +1678,11 @@
1661 (:+key "C-=" #'er/expand-region 1678 (:+key "C-=" #'er/expand-region
1662 "C--" #'+er/contract-or-negative-argument)) 1679 "C--" #'+er/contract-or-negative-argument))
1663 1680
1664(setup (:straight (fill-sentences-correctly 1681(setup (:straight (filldent :host nil
1665 :host github 1682 :repo "https://codeberg.org/acdw/filldent.el"))
1666 :repo "duckwork/fill-sentences-correctly.el"))
1667 (:quit "I don't think this works like how I want.")
1668 (fill-sentences-correctly-mode +1))
1669
1670(setup (:straight (filldent
1671 :host github
1672 :repo "duckwork/filldent.el"))
1673 (:+key "M-q" #'filldent-unfill-toggle)) 1683 (:+key "M-q" #'filldent-unfill-toggle))
1674 1684
1675(setup (:straight (flymake-collection 1685(setup (:straight (flymake-collection :host github
1676 :host github
1677 :repo "mohkale/flymake-collection")) 1686 :repo "mohkale/flymake-collection"))
1678 (+ensure-after-init #'flymake-collection-hook-setup)) 1687 (+ensure-after-init #'flymake-collection-hook-setup))
1679 1688
@@ -1702,8 +1711,7 @@
1702 'notmuch-message) 1711 'notmuch-message)
1703 (:hook-into notmuch-show-mode)) 1712 (:hook-into notmuch-show-mode))
1704 1713
1705(setup (:straight (forge 1714(setup (:straight (forge :host github :repo "magit/forge")
1706 :host github :repo "magit/forge")
1707 (eq system-type 'gnu/linux)) 1715 (eq system-type 'gnu/linux))
1708 (:quit) ; XXX: Somehow missing compat-26 1716 (:quit) ; XXX: Somehow missing compat-26
1709 (add-to-list 'forge-alist 1717 (add-to-list 'forge-alist
@@ -1715,9 +1723,8 @@
1715 (:face 'form-feed-line '((t (:strike-through t)))) 1723 (:face 'form-feed-line '((t (:strike-through t))))
1716 (global-form-feed-mode +1)) 1724 (global-form-feed-mode +1))
1717 1725
1718(setup (:straight (frowny 1726(setup (:straight (frowny :host nil
1719 :host github 1727 :repo "https://codeberg.org/acdw/frowny.el"))
1720 :repo "duckwork/frowny.el"))
1721 (:option frowny-eyes (rx (any ":=") (opt "'") (? "-"))) 1728 (:option frowny-eyes (rx (any ":=") (opt "'") (? "-")))
1722 (global-frowny-mode +1)) 1729 (global-frowny-mode +1))
1723 1730
@@ -1738,8 +1745,7 @@
1738 (setf (alist-get "\\.scm\\'" auto-insert-alist nil nil #'equal) 1745 (setf (alist-get "\\.scm\\'" auto-insert-alist nil nil #'equal)
1739 '(insert "#!/bin/sh\n#| -*- scheme -*-\nexec csi -s $0 \"$@\"\n|#\n"))) 1746 '(insert "#!/bin/sh\n#| -*- scheme -*-\nexec csi -s $0 \"$@\"\n|#\n")))
1740 1747
1741(setup (:straight (git-modes 1748(setup (:straight (git-modes :host github :repo "magit/git-modes"))
1742 :host github :repo "magit/git-modes"))
1743 (:require git-modes)) 1749 (:require git-modes))
1744 1750
1745(setup (:straight god-mode 1751(setup (:straight god-mode
@@ -1763,8 +1769,7 @@
1763 (require 'info-look) 1769 (require 'info-look)
1764 (info-lookup-setup-mode 'symbol 'emacs-lisp-mode)))) 1770 (info-lookup-setup-mode 'symbol 'emacs-lisp-mode))))
1765 1771
1766(setup (:straight (hippie-completing-read 1772(setup (:straight (hippie-completing-read :host nil
1767 :host nil
1768 :repo "https://codeberg.org/acdw/hippie-completing-read.el")) 1773 :repo "https://codeberg.org/acdw/hippie-completing-read.el"))
1769 (:+key "M-/" #'hippie-completing-read)) 1774 (:+key "M-/" #'hippie-completing-read))
1770 1775
@@ -1825,8 +1830,8 @@
1825 (define-key isearch-mb-minibuffer-map (kbd key) command))))))) 1830 (define-key isearch-mb-minibuffer-map (kbd key) command)))))))
1826 (isearch-mb-mode +1)) 1831 (isearch-mb-mode +1))
1827 1832
1828(setup (:straight (jabber :repo "https://codeberg.org/emacs-jabber/emacs-jabber" 1833(setup (:straight (jabber :host nil
1829 :host nil 1834 :repo "https://codeberg.org/emacs-jabber/emacs-jabber"
1830 :files ("*.el" "*.texi" 1835 :files ("*.el" "*.texi"
1831 ("jabber-fallback-lib" 1836 ("jabber-fallback-lib"
1832 "jabber-fallback-lib/hexrgb.el" 1837 "jabber-fallback-lib/hexrgb.el"
@@ -1896,8 +1901,8 @@
1896 (remove-hook 'jabber-alert-muc-hooks 'jabber-muc-echo) 1901 (remove-hook 'jabber-alert-muc-hooks 'jabber-muc-echo)
1897 (remove-hook 'jabber-alert-presence-hooks 'jabber-presence-echo)) 1902 (remove-hook 'jabber-alert-presence-hooks 'jabber-presence-echo))
1898 1903
1899(setup (:straight (keepassxc-shim 1904(setup (:straight (keepassxc-shim :host nil
1900 :host github :repo "duckwork/keepassxc-shim.el")) 1905 :repo "https://codeberg.org/acdw/keepassxc-shim.el"))
1901 (keepassxc-shim-activate)) 1906 (keepassxc-shim-activate))
1902 1907
1903(setup (:straight keychain-environment 1908(setup (:straight keychain-environment
@@ -1926,8 +1931,8 @@
1926 "M-c" #'+link-hint-open-chrome "c" #'+link-hint-open-chrome))) 1931 "M-c" #'+link-hint-open-chrome "c" #'+link-hint-open-chrome)))
1927 1932
1928(setup (:straight (machine 1933(setup (:straight (machine
1929 :host github 1934 :host nil
1930 :repo "duckwork/machine.el")) 1935 :repo "https://codeberg.org/acdw/machine.el"))
1931 (+with-ensure-after-init ; So that they override anything here. 1936 (+with-ensure-after-init ; So that they override anything here.
1932 ;; Emoji fonts 1937 ;; Emoji fonts
1933 (let ((ffl (font-family-list)) 1938 (let ((ffl (font-family-list))
@@ -2008,7 +2013,10 @@
2008 (:option modus-themes-mixed-fonts t 2013 (:option modus-themes-mixed-fonts t
2009 modus-themes-bold-constructs t 2014 modus-themes-bold-constructs t
2010 modus-themes-italic-constructs t 2015 modus-themes-italic-constructs t
2011 modus-themes-headings '((t t))) 2016 modus-themes-headings '((1 monochrome bold overline)
2017 (2 monochrome bold)
2018 (3 monochrome italic)
2019 (t monochrome)))
2012 (dotimes (facen-1 8) 2020 (dotimes (facen-1 8)
2013 (let ((facen (1+ facen-1))) 2021 (let ((facen (1+ facen-1)))
2014 (custom-set-faces 2022 (custom-set-faces
@@ -2178,8 +2186,8 @@
2178 (local-set-key (kbd "C-c M-o") 'org-mime-org-buffer-htmlize)))) 2186 (local-set-key (kbd "C-c M-o") 'org-mime-org-buffer-htmlize))))
2179 2187
2180(setup (:straight (org-taskwise 2188(setup (:straight (org-taskwise
2181 :host github 2189 :host nil
2182 :repo "duckwork/org-taskwise.el")) 2190 :repo "https://codeberg.org/acdw/org-taskwise.el.git"))
2183 (with-eval-after-load 'org 2191 (with-eval-after-load 'org
2184 (require 'org-taskwise) 2192 (require 'org-taskwise)
2185 (define-key org-mode-map (kbd "C-x n t") #'org-taskwise-narrow-to-task))) 2193 (define-key org-mode-map (kbd "C-x n t") #'org-taskwise-narrow-to-task)))
@@ -2264,9 +2272,8 @@
2264 persistent-scratch-scratch-buffer-p-function)) 2272 persistent-scratch-scratch-buffer-p-function))
2265 2273
2266(setup (:straight (plancat 2274(setup (:straight (plancat
2267 :host github 2275 :host nil
2268 :repo "duckwork/plancat.el" 2276 :repo "https://codeberg.org/acdw/plancat.el"))
2269 :local-repo "~/src/emacs-packages/plancat.el/"))
2270 (:option plancat-user "acdw")) 2277 (:option plancat-user "acdw"))
2271 2278
2272(setup (:straight pocket-reader) 2279(setup (:straight pocket-reader)
@@ -2287,8 +2294,6 @@
2287(setup (:straight rainbow-mode) 2294(setup (:straight rainbow-mode)
2288 (:hook-into prog-mode)) 2295 (:hook-into prog-mode))
2289 2296
2290(setup (:straight restart-emacs))
2291
2292(setup (:straight (shell-command+ 2297(setup (:straight (shell-command+
2293 :host nil 2298 :host nil
2294 :repo "https://git.sr.ht/~pkal/shell-command-plus")) 2299 :repo "https://git.sr.ht/~pkal/shell-command-plus"))
@@ -2375,8 +2380,8 @@
2375 (:hook-into prog-mode)) 2380 (:hook-into prog-mode))
2376 2381
2377(setup (:straight (sophomore 2382(setup (:straight (sophomore
2378 :host github 2383 :host nil
2379 :repo "duckwork/sophomore.el")) 2384 :repo "https://codeberg.org/acdw/sophomore.el"))
2380 (sophomore-enable #'narrow-to-region) 2385 (sophomore-enable #'narrow-to-region)
2381 (sophomore-disable ; These are mostly annoying commands 2386 (sophomore-disable ; These are mostly annoying commands
2382 #'view-hello-file 2387 #'view-hello-file
@@ -2389,8 +2394,8 @@
2389 (sophomore-mode +1)) 2394 (sophomore-mode +1))
2390 2395
2391(setup (:straight (spongebob-case 2396(setup (:straight (spongebob-case
2392 :host github 2397 :host nil
2393 :repo "duckwork/spongebob-case.el"))) 2398 :repo "https://codeberg.org/acdw/spongebob-case.el")))
2394 2399
2395(setup (:straight ssh-config-mode) 2400(setup (:straight ssh-config-mode)
2396 (:file-match (rx "/.ssh/config" eos) 2401 (:file-match (rx "/.ssh/config" eos)
@@ -2414,8 +2419,8 @@
2414 (:option systemd-man-function 'woman)) 2419 (:option systemd-man-function 'woman))
2415 2420
2416(setup (:straight (titlecase 2421(setup (:straight (titlecase
2417 :host github 2422 :host nil
2418 :repo "duckwork/titlecase.el" 2423 :repo "https://codeberg.org/acdw/titlecase.el"
2419 :files ("*"))) 2424 :files ("*")))
2420 (:require titlecase +titlecase) 2425 (:require titlecase +titlecase)
2421 (:with-map +casing-map 2426 (:with-map +casing-map
@@ -2466,7 +2471,7 @@
2466 (:option twtxt-file _twtxt-file 2471 (:option twtxt-file _twtxt-file
2467 twtxt-following _twtxt-following)) 2472 twtxt-following _twtxt-following))
2468 2473
2469(setup (:straight undo-fu) 2474(setup (:straight undo-fu) (:quit "Trying native undo functionality")
2470 (:option undo-fu-allow-undo-in-region t) 2475 (:option undo-fu-allow-undo-in-region t)
2471 (:global "C-/" #'undo-fu-only-undo 2476 (:global "C-/" #'undo-fu-only-undo
2472 "C-?" #'undo-fu-only-redo)) 2477 "C-?" #'undo-fu-only-redo))