From 30c3d59e4e031aa85971307f9b191e4e483c8142 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 20 Mar 2025 08:46:03 -0400 Subject: [PATCH] Add shortcut M-p and M-n for frame naviation --- config/emacs/.config/emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/emacs/.config/emacs/init.el b/config/emacs/.config/emacs/init.el index 14534c2..49d0076 100644 --- a/config/emacs/.config/emacs/init.el +++ b/config/emacs/.config/emacs/init.el @@ -127,12 +127,17 @@ ;; Activate Eglot in cross-referenced non-project files (setq eglot-extend-to-xref t) +;; Custom Vanilla Stuff ;; https://stackoverflow.com/questions/6286579/emacs-shell-mode-how-to-send-region-to-shell/7053298#7053298 (defun shell-region (start end) "Execute region START to END in an inferior shell." (interactive "r") (shell-command (buffer-substring-no-properties start end))) +;; Quick switching windows +(define-key global-map (kbd "M-p") 'previous-multiframe-window) +(define-key global-map (kbd "M-n") 'other-window) + ;; Package Manager ;; bootstrap straight.el package manager (defvar bootstrap-version)