summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-23 01:00:30 +0100
committerjao <jao@gnu.org>2022-09-23 01:04:05 +0100
commit2f261498cd5abb2e0b7b5add67a22cc65194c2aa (patch)
treef38255b3b292cdf216dc15f4ca6fbb5e87c4de03
parentb8201184caa8034c671b98e1f3a599421315fdd4 (diff)
downloadelibs-2f261498cd5abb2e0b7b5add67a22cc65194c2aa.tar.gz
elibs-2f261498cd5abb2e0b7b5add67a22cc65194c2aa.tar.bz2
a command to recover global keybindings after package updates
-rw-r--r--init.el23
1 files changed, 13 insertions, 10 deletions
diff --git a/init.el b/init.el
index f323a1a..1c8cc74 100644
--- a/init.el
+++ b/init.el
@@ -3310,16 +3310,19 @@
(global-set-key (kbd "s-w") #'jao-transient-utils)
;;; Global key bindings
-(global-set-key (kbd "<f2>") #'magit-status)
-(global-set-key (kbd "C-x p") 'jao-prev-window)
-(global-set-key (kbd "C-x o") 'other-window)
-(global-set-key "\C-cj" #'join-line)
-(global-set-key "\C-cn" #'next-error)
-(global-set-key "\C-cq" #'auto-fill-mode)
-(global-set-key "\C-xr\M-w" #'kill-rectangle-save)
-(global-set-key "\C-c\C-z" #'comment-or-uncomment-region)
-(global-set-key "\C-z" #'comment-or-uncomment-region)
-;; (global-set-key (kbd "C-c W") #'jao-open-in-x-frame)
+(defun jao-global-keybindings ()
+ (interactive)
+ (global-set-key (kbd "<f2>") #'magit-status)
+ (global-set-key (kbd "C-x p") 'jao-prev-window)
+ (global-set-key (kbd "C-x o") 'other-window)
+ (global-set-key "\C-cj" #'join-line)
+ (global-set-key "\C-cn" #'next-error)
+ (global-set-key "\C-cq" #'auto-fill-mode)
+ (global-set-key "\C-xr\M-w" #'kill-rectangle-save)
+ (global-set-key "\C-c\C-z" #'comment-or-uncomment-region)
+ (global-set-key "\C-z" #'comment-or-uncomment-region))
+
+(jao-global-keybindings)
;;; Last minute (post.el)
(jao-load-site-el "post")