aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules
diff options
context:
space:
mode:
authorbard <[email protected]>2024-05-08 06:23:47 -0400
committerbard <[email protected]>2024-05-08 06:23:47 -0400
commit2aa3cd00773de19f1477e0a11cc1a5c407d36e4c (patch)
treecc010858d64e755f39bb1615b6f1516086f6638b /bard-emacs-modules
parent7f51b86244c58c942688017ae609bb86b89c9648 (diff)
global keybindings strict
Diffstat (limited to 'bard-emacs-modules')
-rw-r--r--bard-emacs-modules/bard-emacs-window.el18
1 files changed, 10 insertions, 8 deletions
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-<up>") #'windmove-up)
-(define-key global-map (kbd "C-M-<right>") #'windmove-right)
-(define-key global-map (kbd "C-M-<down>") #'windmove-down)
-(define-key global-map (kbd "C-M-<left>") #'windmove-left)
-(define-key global-map (kbd "C-M-S-<up>") #'windmove-swap-states-up)
-(define-key global-map (kbd "C-M-S-<right>") #'windmove-swap-states-right)
-(define-key global-map (kbd "C-M-S-<down>") #'windmove-swap-states-down)
-(define-key global-map (kbd "C-M-S-<left>") #'windmove-swap-states-left)
+(use-package emacs
+ :bind*
+ (("C-M-<up>" . windmove-up)
+ ("C-M-<right>" . windmove-right)
+ ("C-M-<down>" . windmove-down)
+ ("C-M-<left>" . windmove-left)
+ ("C-M-S-<up>" . windmove-swap-states-up)
+ ("C-M-S-<right>" . windmove-swap-states-right)
+ ("C-M-S-<down>" . windmove-swap-states-down)
+ ("C-M-S-<left>" . windmove-swap-states-left)))
(use-package beframe
:ensure t