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.el43
1 files changed, 17 insertions, 26 deletions
diff --git a/init.el b/init.el index a5b77ba..e25e73f 100644 --- a/init.el +++ b/init.el
@@ -515,7 +515,12 @@
515 "Setup eww bookmark integration." 515 "Setup eww bookmark integration."
516 (setq-local bookmark-make-record-function #'bookmark-eww--make))) 516 (setq-local bookmark-make-record-function #'bookmark-eww--make)))
517 517
518 (:bind "b" #'bookmark-set 518 (:bind "RET" (defun eww/browse-url (arg)
519 (interactive "P")
520 (if-let ((url (thing-at-point 'url)))
521 (browse-url url)
522 (call-interactively #'acdw/link-hint-open-link)))
523 "b" #'bookmark-set
519 "B" #'bookmark-jump 524 "B" #'bookmark-jump
520 "M-n" nil 525 "M-n" nil
521 "M-p" nil)) 526 "M-p" nil))
@@ -525,6 +530,9 @@
525 (add-hook 'after-save-hook 530 (add-hook 'after-save-hook
526 #'executable-make-buffer-file-executable-if-script-p)) 531 #'executable-make-buffer-file-executable-if-script-p))
527 532
533(setup elec-pair
534 (electric-pair-mode +1))
535
528(setup files 536(setup files
529 (:option auto-save-file-name-transforms `((".*" ,(acdw/dir "auto-save/" t) t)) 537 (:option auto-save-file-name-transforms `((".*" ,(acdw/dir "auto-save/" t) t))
530 auto-save-list-file-prefix (acdw/dir "auto-save-list/.saves-" t) 538 auto-save-list-file-prefix (acdw/dir "auto-save-list/.saves-" t)
@@ -978,8 +986,7 @@ specific to most general, they are these:
978 shr-max-width fill-column 986 shr-max-width fill-column
979 shr-max-image-proportion 0.6 987 shr-max-image-proportion 0.6
980 shr-image-animate t 988 shr-image-animate t
981 shr-discard-aria-hidden t 989 shr-discard-aria-hidden t))
982 shr-folding-mode t))
983 990
984(setup text 991(setup text
985 (:hook turn-on-auto-fill 992 (:hook turn-on-auto-fill
@@ -1235,7 +1242,11 @@ specific to most general, they are these:
1235 lui-fill-remove-face-from-newline nil) 1242 lui-fill-remove-face-from-newline nil)
1236 1243
1237 (:hook #'visual-fill-column-mode 1244 (:hook #'visual-fill-column-mode
1238 #'visual-line-mode) 1245 #'visual-line-mode
1246 #'enable-lui-track)
1247
1248 (:face lui-time-stamp-face
1249 ((t :inherit font-lock-comment-face)))
1239 1250
1240 (:local-set visual-fill-column-extra-text-width 1251 (:local-set visual-fill-column-extra-text-width
1241 (cons acdw-irc/left-margin 0) 1252 (cons acdw-irc/left-margin 0)
@@ -1247,9 +1258,7 @@ specific to most general, they are these:
1247 nyan-mode nil 1258 nyan-mode nil
1248 line-number-mode nil 1259 line-number-mode nil
1249 column-number-mode nil 1260 column-number-mode nil
1250 file-percentage-mode nil) 1261 file-percentage-mode nil)))
1251
1252 (:hook #'enable-lui-track)))
1253 1262
1254(setup (:straight (consult 1263(setup (:straight (consult
1255 :host github 1264 :host github
@@ -1533,6 +1542,7 @@ See also `crux-reopen-as-root-mode'."
1533 (:hook #'reading-mode) 1542 (:hook #'reading-mode)
1534 (:local-set shr-max-image-proportion 0.9 1543 (:local-set shr-max-image-proportion 0.9
1535 shr-width nil 1544 shr-width nil
1545 shr-max-width nil
1536 fill-column 0) 1546 fill-column 0)
1537 ;; see https://irreal.org/blog/?p=8885 1547 ;; see https://irreal.org/blog/?p=8885
1538 (:bind "SPC" (defun elfeed-scroll-up-command (&optional arg) 1548 (:bind "SPC" (defun elfeed-scroll-up-command (&optional arg)
@@ -2293,25 +2303,6 @@ the default is \"/\"."
2293 (:also-load eldoc) 2303 (:also-load eldoc)
2294 (eldoc-add-command 'paredit-backward-delete 'paredit-close-round)) 2304 (eldoc-add-command 'paredit-backward-delete 'paredit-close-round))
2295 2305
2296;; (setup (:straight paredit)
2297;; (:bind "DEL" #'paredit-backward-delete
2298;; "C-<backspace>" #'paredit-backward-kill-word
2299;; "M-w" #'paredit-copy-as-kill
2300;; "RET" #'paredit-newline)
2301
2302;; (:unbind "M-s" ; paredit-splice-sexp
2303;; "C-j" ; paredit-newline (rebound to RET)
2304;; )
2305
2306;; (:hook-into emacs-lisp-mode
2307;; ielm-mode sly-repl-mode
2308;; lisp-mode
2309;; lisp-interaction-mode
2310;; scheme-mode)
2311
2312;; (:also-load eldoc)
2313;; (eldoc-add-command 'paredit-backward-delete 'paredit-close-round))
2314
2315(setup (:straight paren-face) 2306(setup (:straight paren-face)
2316 (:hook-into emacs-lisp-mode 2307 (:hook-into emacs-lisp-mode
2317 ielm-mode sly-repl-mode 2308 ielm-mode sly-repl-mode