about summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2022-01-05 11:23:26 -0600
committerCase Duckworth2022-01-05 11:23:26 -0600
commit710dfe7cd5620d6bec2ddc7b776cddacf2c640a1 (patch)
tree73f43b788d589361460e36de7f0c1a998854e2c3 /init.el
parentChanges (diff)
downloademacs-710dfe7cd5620d6bec2ddc7b776cddacf2c640a1.tar.gz
emacs-710dfe7cd5620d6bec2ddc7b776cddacf2c640a1.zip
Add wrap-region and modify expand-region to match
Diffstat (limited to 'init.el')
-rw-r--r--init.el18
1 files changed, 17 insertions, 1 deletions
diff --git a/init.el b/init.el index 13284d1..49e549e 100644 --- a/init.el +++ b/init.el
@@ -944,7 +944,10 @@ See also `crux-reopen-as-root-mode'."
944 (exec-path-from-shell-initialize)) 944 (exec-path-from-shell-initialize))
945 945
946(setup (:straight expand-region) 946(setup (:straight expand-region)
947 (:+key "C-=" #'er/expand-region)) 947 (:also-load +expand-region)
948 (:option expand-region-fast-keys-enabled nil)
949 (:+key "C-=" #'er/expand-region
950 "C--" #'+er/contract-or-negative-argument))
948 951
949(setup (:straight (fill-sentences-correctly 952(setup (:straight (fill-sentences-correctly
950 :host github 953 :host github
@@ -1303,6 +1306,19 @@ See also `crux-reopen-as-root-mode'."
1303 whitespace-cleanup-mode-only-if-initially-clean nil) 1306 whitespace-cleanup-mode-only-if-initially-clean nil)
1304 (global-whitespace-cleanup-mode +1)) 1307 (global-whitespace-cleanup-mode +1))
1305 1308
1309(setup (:straight wrap-region)
1310 (:require wrap-region)
1311 (wrap-region-add-wrappers
1312 '(("*" "*" nil org-mode)
1313 ("~" "~" nil org-mode)
1314 ("/" "/" nil org-mode)
1315 ("=" "=" nil org-mode)
1316 ("+" "+" nil org-mode)
1317 ("_" "_" nil org-mode)
1318 ("$" "$" nil (org-mode latex-mode))))
1319 (:hook-into org-mode
1320 latex-mode))
1321
1306(setup (:straight zoom-frm)) 1322(setup (:straight zoom-frm))
1307 1323
1308(setup (:straight zzz-to-char) 1324(setup (:straight zzz-to-char)