From 2f261498cd5abb2e0b7b5add67a22cc65194c2aa Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 23 Sep 2022 01:00:30 +0100 Subject: a command to recover global keybindings after package updates --- init.el | 23 +++++++++++++---------- 1 file 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 "") #'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 "") #'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") -- cgit v1.2.3