]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/windmove.el (windmove-remove-keybindings): New function.
authorAndrea Corallo <akrl@sdf.org>
Tue, 15 Sep 2020 10:32:19 +0000 (12:32 +0200)
committerAndrea Corallo <akrl@sdf.org>
Tue, 15 Sep 2020 14:12:41 +0000 (16:12 +0200)
lisp/windmove.el

index 6557960064037123f5ed8872d9aa53289461fd1c..705757c0c53bfdaf944c8e4999c8e40a8ba7f1a3 100644 (file)
@@ -440,6 +440,15 @@ Default value of MODIFIERS is `shift'."
   (global-set-key (vector (append modifiers '(up)))    'windmove-up)
   (global-set-key (vector (append modifiers '(down)))  'windmove-down))
 
+;;;###autoload
+(defun windmove-remove-keybindings ()
+  "Restore default keybindings touched by `windmove-default-keybindings'."
+  (interactive)
+  (global-set-key (kbd "S-<right>") 'right-char)
+  (global-set-key (kbd "S-<left>") 'left-char)
+  (global-set-key (kbd "S-<up>") 'previous-line)
+  (global-set-key (kbd "S-<down>") 'next-line))
+
 \f
 ;;; Directional window display and selection