From 481891f4a704e4c77828b3f0493653487f372105 Mon Sep 17 00:00:00 2001 From: rearman Date: Tue, 25 Oct 2022 11:35:08 -0400 Subject: [PATCH] Created last-window, binding other/last window to C-. and C-, --- common-init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common-init.el b/common-init.el index 60c3ba5..3862934 100644 --- a/common-init.el +++ b/common-init.el @@ -151,6 +151,13 @@ Assumes common-init is defined as a variable in the separate init." (interactive) (find-file common-init)) +(defun last-window () + "Go to last visited window." + (interactive) + (other-window -1)) + +(load-file work-eqns) + ;; PUTS AND PUSHES (put 'upcase-region 'disabled nil) (put 'downcase-region 'disabled nil) @@ -177,6 +184,8 @@ Assumes common-init is defined as a variable in the separate init." (global-set-key (kbd "C-z") 'zap-up-to-char) (global-set-key (kbd "C-M-z") 'eval-region) (global-set-key (kbd "C-'") 'universal-argument) +(global-set-key (kbd "C-.") 'other-window) +(global-set-key (kbd "C-,") 'last-window) (global-set-key (kbd "M-%") 'replace-regexp) (global-set-key (kbd "C-M-%") 'query-replace-regexp) -- 2.39.5