diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-27 14:59:42 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-27 16:40:08 -0700 |
commit | 3106340e8ebab04ea1b8b2aecbd9cf39747b6741 (patch) | |
tree | 7cc382d6f027cc50f96786764dfb94c2c90282f0 /.emacs.d | |
parent | 5f48c12bb5ae60481b6ace5364b6c615af5ed18b (diff) | |
download | dotfiles-3106340e8ebab04ea1b8b2aecbd9cf39747b6741.tar.gz |
set set-mark-command-repeat-pop back to nil
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init-spw.el | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 0a244e38..3751b97e 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -382,16 +382,17 @@ I use by default)." (setq transient-mark-mode nil - ;; Disadvantage of this is that re-setting the mark right after popping - ;; to it, to go and edit somewhere in destination buffer and then come - ;; back, requires *remembering that* C-u C-u prefix is needed, and if - ;; popping fewer than four times, it's more keystrokes. I'm not sure - ;; how distracting it is going to be to have to remember to do that, and - ;; how often I want to re-set the mark right after popping to it, so - ;; turning this on experimentally. + ;; If this is set to t, then re-setting the mark right after popping to + ;; it -- to go and edit somewhere near the destination and then come + ;; back, say -- requires remembering that a C-u C-u prefix is needed; + ;; that cognitive load outweighs a few extra C-u when this is nil, I + ;; think. And the cost of forgetting is high: you've lost the position, + ;; and it might take quite a few keypresses to get back there. ;; - ;; Hmm, with `repeat' easily accessible on C-z, might not need this. - set-mark-command-repeat-pop t) + ;; Further, if you pop fewer than four times and then want to set a + ;; mark, that requires no fewer keystrokes with this set to t than with + ;; it set to nil. There is also `repeat' to repeatedly pop. + set-mark-command-repeat-pop nil) (defun spw/remap-mark-command (command &optional map) "Remap a mark-* command to temporarily activate Transient Mark mode." (let* ((cmd (symbol-name command)) |