From 2aa3cd00773de19f1477e0a11cc1a5c407d36e4c Mon Sep 17 00:00:00 2001 From: bard Date: Wed, 8 May 2024 06:23:47 -0400 Subject: global keybindings strict --- bard-emacs-modules/bard-emacs-window.el | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bard-emacs-modules') diff --git a/bard-emacs-modules/bard-emacs-window.el b/bard-emacs-modules/bard-emacs-window.el index a986477..d6d8850 100644 --- a/bard-emacs-modules/bard-emacs-window.el +++ b/bard-emacs-modules/bard-emacs-window.el @@ -11,14 +11,16 @@ (setq window-min-height 3) (setq window-min-width 30) -(define-key global-map (kbd "C-M-") #'windmove-up) -(define-key global-map (kbd "C-M-") #'windmove-right) -(define-key global-map (kbd "C-M-") #'windmove-down) -(define-key global-map (kbd "C-M-") #'windmove-left) -(define-key global-map (kbd "C-M-S-") #'windmove-swap-states-up) -(define-key global-map (kbd "C-M-S-") #'windmove-swap-states-right) -(define-key global-map (kbd "C-M-S-") #'windmove-swap-states-down) -(define-key global-map (kbd "C-M-S-") #'windmove-swap-states-left) +(use-package emacs + :bind* + (("C-M-" . windmove-up) + ("C-M-" . windmove-right) + ("C-M-" . windmove-down) + ("C-M-" . windmove-left) + ("C-M-S-" . windmove-swap-states-up) + ("C-M-S-" . windmove-swap-states-right) + ("C-M-S-" . windmove-swap-states-down) + ("C-M-S-" . windmove-swap-states-left))) (use-package beframe :ensure t -- cgit v1.2.3