summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-09-30 23:23:57 -0500
committerCase Duckworth2021-09-30 23:23:57 -0500
commitce522ca1a7b5919d5444ef47561c12f89cac6b0c (patch)
tree708c24c21e5d8d10b62e83544be45c649c6c8473 /init.el
parentAdd circe-command-SLAP (diff)
parentRe-write acdw-reading.el (diff)
downloademacs-ce522ca1a7b5919d5444ef47561c12f89cac6b0c.tar.gz
emacs-ce522ca1a7b5919d5444ef47561c12f89cac6b0c.zip
Merge branch 'main' of https://tildegit.org/acdw/emacs
Diffstat (limited to 'init.el')
-rw-r--r--init.el59
1 files changed, 34 insertions, 25 deletions
diff --git a/init.el b/init.el index edfbda6..7e517d6 100644 --- a/init.el +++ b/init.el
@@ -1009,7 +1009,8 @@ specific to most general, they are these:
1009 circe-network-inhibit-autoconnect '("Pissnet" "Twitch IRC") 1009 circe-network-inhibit-autoconnect '("Pissnet" "Twitch IRC")
1010 circe-network-options 1010 circe-network-options
1011 `(("Libera Chat" 1011 `(("Libera Chat"
1012 :channels ("#emacs" "#systemcrafters" "##webpals") 1012 :channels ("#emacs" "#systemcrafters" "##webpals"
1013 "#emacsconf-org")
1013 :sasl-username ,circe-default-nick 1014 :sasl-username ,circe-default-nick
1014 :sasl-password ,(acdw/make-password-fetcher 1015 :sasl-password ,(acdw/make-password-fetcher
1015 :host "libera.chat")) 1016 :host "libera.chat"))
@@ -1056,7 +1057,8 @@ specific to most general, they are these:
1056 #'enable-circe-color-nicks 1057 #'enable-circe-color-nicks
1057 ;; #'enable-circe-display-images 1058 ;; #'enable-circe-display-images
1058 #'enable-circe-new-day-notifier 1059 #'enable-circe-new-day-notifier
1059 #'circe-chat@set-prompt) 1060 #'circe-chat@set-prompt
1061 #'topsy-mode))
1060 (:bind "C-c C-s" #'circe-command-SLAP)) 1062 (:bind "C-c C-s" #'circe-command-SLAP))
1061 1063
1062 (autoload 'circe-nick-color-reset "circe-color-nicks") 1064 (autoload 'circe-nick-color-reset "circe-color-nicks")
@@ -1065,13 +1067,16 @@ specific to most general, they are these:
1065 1067
1066 (:with-mode lui-mode 1068 (:with-mode lui-mode
1067 (:option lui-fill-column (+ fill-column acdw-irc/left-margin) 1069 (:option lui-fill-column (+ fill-column acdw-irc/left-margin)
1068 lui-fill-type (repeat-string acdw-irc/left-margin " ") 1070 lui-fill-type nil ;;(repeat-string acdw-irc/left-margin " ")
1069 lui-time-stamp-position 'right-margin 1071 lui-time-stamp-position 'right-margin
1070 lui-time-stamp-format "%H:%M" 1072 lui-time-stamp-format "%H:%M"
1071 lui-track-behavior 'before-switch-to-buffer 1073 lui-track-behavior 'before-switch-to-buffer
1072 lui-track-indicator 'fringe 1074 lui-track-indicator 'fringe
1073 lui-fill-remove-face-from-newline nil) 1075 lui-fill-remove-face-from-newline nil)
1074 1076
1077 (:hook #'visual-fill-column-mode
1078 #'visual-line-mode)
1079
1075 (:local-set fringes-outside-margins t 1080 (:local-set fringes-outside-margins t
1076 right-margin-width 5 1081 right-margin-width 5
1077 scroll-margin 0 1082 scroll-margin 0
@@ -1184,8 +1189,8 @@ specific to most general, they are these:
1184 (crux-reopen-as-root-mode +1)) 1189 (crux-reopen-as-root-mode +1))
1185 1190
1186(setup (:straight-if (define-repeat-map 1191(setup (:straight-if (define-repeat-map
1187 :host nil 1192 :host nil
1188 :repo "https://tildegit.org/acdw/define-repeat-map.el") 1193 :repo "https://tildegit.org/acdw/define-repeat-map.el")
1189 (acdw/system :home)) 1194 (acdw/system :home))
1190 1195
1191 (require 'define-repeat-map ; just for me 1196 (require 'define-repeat-map ; just for me
@@ -1737,6 +1742,17 @@ browser defined in `browse-url-secondary-browser-function'."
1737 indicate-buffer-boundaries nil) 1742 indicate-buffer-boundaries nil)
1738 (acdw/setup-fringes))))) 1743 (acdw/setup-fringes)))))
1739 1744
1745(setup (:straight visual-fill-column)
1746 (:option visual-fill-column-width (+ fill-column 4)
1747 visual-fill-column-center-text t
1748 (append reading-modes) '(visual-fill-column-mode . +1))
1749 (:hook (defun visual-fill-column@setup ()
1750 (if visual-fill-column-mode
1751 (setq-local indicate-empty-lines nil
1752 indicate-buffer-boundaries nil)
1753 (acdw/setup-fringes))))
1754 (:advise text-scale-adjust :after #'visual-fill-column-adjust))
1755
1740(setup (:straight (orderless 1756(setup (:straight (orderless
1741 :host github 1757 :host github
1742 :repo "oantolin/orderless")) 1758 :repo "oantolin/orderless"))
@@ -1797,8 +1813,19 @@ browser defined in `browse-url-secondary-browser-function'."
1797 ((string-suffix-p "~" pattern) 1813 ((string-suffix-p "~" pattern)
1798 `(orderless-flex . ,(substring pattern 0 -1)))))) 1814 `(orderless-flex . ,(substring pattern 0 -1))))))
1799 1815
1800(setup (:straight org 1816(setup (:straight (org
1801 org-contrib) 1817 :type git
1818 :repo "https://git.savannah.gnu.org/git/emacs/org-mode.git"
1819 :local-repo "org"
1820 :depth full
1821 :pre-build (straight-recipes-org-elpa--build)
1822 :build (:not autoloads)
1823 :files (:defaults
1824 "lisp/*.el"
1825 ("etc/styles/" "etc/styles/*")))
1826 (org-contrib
1827 :type git
1828 :repo "https://git.sr.ht/~bzg/org-contrib"))
1802 (:also-load acdw-org) 1829 (:also-load acdw-org)
1803 (require 'chd nil 'noerror) 1830 (require 'chd nil 'noerror)
1804 (:option org-adapt-indentation nil 1831 (:option org-adapt-indentation nil
@@ -2284,24 +2311,6 @@ If used with a numeric prefix argument N, N backticks will be inserted."
2284 winum-ignored-buffers '(" *which-key*") 2311 winum-ignored-buffers '(" *which-key*")
2285 winum-format " %s") 2312 winum-format " %s")
2286 2313
2287 (when-unfocused winum-map-keys
2288 (defvar winum--keys-mapped nil
2289 "Whether `winum' keys have been mapped already.")
2290 (when (and (not winum--keys-mapped)
2291 (display-graphic-p))
2292 (:with-map winum-keymap
2293 (:bind "M-0" #'winum-select-window-0-or-10
2294 "M-1" #'winum-select-window-1
2295 "M-2" #'winum-select-window-2
2296 "M-3" #'winum-select-window-3
2297 "M-4" #'winum-select-window-4
2298 "M-5" #'winum-select-window-5
2299 "M-6" #'winum-select-window-6
2300 "M-7" #'winum-select-window-7
2301 "M-8" #'winum-select-window-8
2302 "M-9" #'winum-select-window-9))
2303 (setq winum--keys-mapped t)))
2304
2305 (winum-mode +1)) 2314 (winum-mode +1))
2306 2315
2307(setup (:straight xr)) 2316(setup (:straight xr))