summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-28 21:52:15 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-31 18:49:40 -0700
commitf7a8995e69ccee94efced0faafb6822022e8b976 (patch)
tree8de522c8b78be4cec6692397a3170ee744a5210a
parentab430205579cd95c95049bb0233d00782c3610af (diff)
downloaddotfiles-f7a8995e69ccee94efced0faafb6822022e8b976.tar.gz
rename
-rw-r--r--.emacs.d/init-spw.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index 0cb60ae0..34c9c45f 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -156,7 +156,7 @@ add places the library might be available to `load-path'."
;; possible enhancement: M-i goes into a transient mode where C-n and
;; C-p are like 'j' and 'k' in vim's mode accessed with 'V' (I think
;; "visual line mode")
-(defun spw/expand-region-to-whole-lines ()
+(defun spw/expand-region-to-whole-lines-and-activate ()
(interactive)
(when (> (point) (mark))
(exchange-point-and-mark (not transient-mark-mode)))
@@ -166,7 +166,7 @@ add places the library might be available to `load-path'."
(interactive "P")
(call-interactively
(if (or (region-active-p) arg)
- 'spw/expand-region-to-whole-lines
+ 'spw/expand-region-to-whole-lines-and-activate
'tab-to-tab-stop)))
(global-set-key "\M-i" 'spw/meta-i)
@@ -1521,7 +1521,7 @@ Used in my `message-mode' yasnippets."
(setq beg (point-min) end (point-max))
;; select block for tidying
(mark-sexp)
- (spw/expand-region-to-whole-lines)
+ (spw/expand-region-to-whole-lines-and-activate)
(setq beg (min (point) (mark))
end (max (point) (mark))))))))
(spw--perltidy-region beg end)))