aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/bindings.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index ed1325e326c..c67a104b4c1 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -1339,7 +1339,15 @@ if `inhibit-field-text-motion' is non-nil."
1339;; can use S-tab instead to access that binding. 1339;; can use S-tab instead to access that binding.
1340(define-key function-key-map [S-tab] [backtab]) 1340(define-key function-key-map [S-tab] [backtab])
1341 1341
1342(define-key global-map [mouse-movement] 'ignore) 1342(defun ignore-preserving-kill-region (&rest _)
1343 "Like `ignore', but don't overwrite `last-event' if it's `kill-region'."
1344 (declare (completion ignore))
1345 (interactive)
1346 (when (eq last-command 'kill-region)
1347 (setq this-command 'kill-region))
1348 nil)
1349
1350(define-key global-map [mouse-movement] #'ignore-preserving-kill-region)
1343 1351
1344(define-key global-map "\C-t" 'transpose-chars) 1352(define-key global-map "\C-t" 'transpose-chars)
1345(define-key esc-map "t" 'transpose-words) 1353(define-key esc-map "t" 'transpose-words)