commit 6954439b0e6c18d29210965b9c1ddfa3b78218b7
parent a36be9965325809c940f6fe66d3f59f2c56f9d1f
Author: Anton Konyahin <me@konyahin.xyz>
Date: Tue, 16 May 2023 17:38:51 +0300
emacs: windows switching improvments
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
@@ -8,6 +8,9 @@
(setq make-backup-files nil)
(setq auto-save-default nil)
+;; can use s-<arrow> for window switching
+(windmove-default-keybindings)
+
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
@@ -101,6 +104,7 @@
(defalias 'pupdate 'eshell/port-update-patches)
;; custom functions and key bindings
+(global-set-key (kbd "M-o") 'other-window)
(global-set-key (kbd "M-z") 'zap-up-to-char)
(global-set-key (kbd "M-SPC") 'cycle-spacing)
(global-set-key (kbd "C-x C-b") 'buffer-menu-other-window)