Emacs: Use windmove for moving between windows.

This commit is contained in:
tastytea 2020-01-21 01:49:47 +01:00
parent 62a33a88e6
commit 3dae6df898

View File

@ -1,6 +1,6 @@
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*- ;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-01T10:26:19+00:00> ;; Time-stamp: <2020-01-21T01:49:19+0100>
;;; Commentary: ;;; Commentary:
;; * Setup mouse & keyboard behaviour. ;; * Setup mouse & keyboard behaviour.
@ -64,11 +64,6 @@ With argument, do this that many times."
;; Switch buffers. ;; Switch buffers.
("M-<left>" . previous-buffer) ("M-<left>" . previous-buffer)
("M-<right>" . next-buffer) ("M-<right>" . next-buffer)
;; Switch windows.
("M-S-<left>" . previous-multiframe-window)
("M-S-<right>" . next-multiframe-window)
("s-<left>" . previous-multiframe-window) ; s = Super
("s-<right>" . next-multiframe-window)
;; Switch between header and implementation. ;; Switch between header and implementation.
("C-:" . ff-find-other-file) ("C-:" . ff-find-other-file)
) )
@ -96,5 +91,11 @@ With argument, do this that many times."
(which-key-mode) (which-key-mode)
) )
;; Navigate between windows with alt+arrows.
(use-package windmove
:config
(windmove-default-keybindings '(meta shift))
)
(provide 'basics/input) (provide 'basics/input)
;;; input.el ends here ;;; input.el ends here