summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-05-28 21:50:33 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-05-31 18:49:40 -0700
commitab430205579cd95c95049bb0233d00782c3610af (patch)
treef1c46f3ea1d5836d9b88f442e72e999387e31621
parentf7f7244d317ee03c40cf891ac5a1f91d14e94172 (diff)
downloaddotfiles-ab430205579cd95c95049bb0233d00782c3610af.tar.gz
use set-mark not push-mark, and shorten
At least right now, I can't imagine wanting to make use of the slightly differently positioned mark.
-rw-r--r--.emacs.d/init-spw.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index cb3de830..0cb60ae0 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -161,11 +161,7 @@ add places the library might be available to `load-path'."
(when (> (point) (mark))
(exchange-point-and-mark (not transient-mark-mode)))
(beginning-of-line)
- (let ((end (save-excursion
- (goto-char (mark))
- (beginning-of-line 2)
- (point))))
- (push-mark end nil t)))
+ (set-mark (save-excursion (goto-char (mark)) (beginning-of-line 2) (point)))
(defun spw/meta-i (arg)
(interactive "P")
(call-interactively