diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-28 21:52:48 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-31 18:49:40 -0700 |
commit | 58f84e8cfd058842635656ebc552514b9825fd14 (patch) | |
tree | 6cb689df21291aacf5cf13e96d4f5bd85e18fc04 /.emacs.d | |
parent | b9d0f193fdff01198ceba1db6e325f9c0541cfdd (diff) | |
download | dotfiles-58f84e8cfd058842635656ebc552514b9825fd14.tar.gz |
unconditionally activate the mark at end of defun
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init-spw.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index cb589b79..9b62cd28 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -159,9 +159,10 @@ add places the library might be available to `load-path'." (defun spw/expand-region-to-whole-lines-and-activate () (interactive) (when (> (point) (mark)) - (exchange-point-and-mark (not transient-mark-mode))) + (exchange-point-and-mark)) (beginning-of-line) (set-mark (save-excursion (goto-char (mark)) (beginning-of-line 2) (point))) + (activate-mark transient-mark-mode)) (defun spw/meta-i (arg) (interactive "P") (call-interactively |