diff options
author | jao <jao@gnu.org> | 2022-09-23 01:00:30 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-23 01:04:05 +0100 |
commit | 2f261498cd5abb2e0b7b5add67a22cc65194c2aa (patch) | |
tree | f38255b3b292cdf216dc15f4ca6fbb5e87c4de03 | |
parent | b8201184caa8034c671b98e1f3a599421315fdd4 (diff) | |
download | elibs-2f261498cd5abb2e0b7b5add67a22cc65194c2aa.tar.gz elibs-2f261498cd5abb2e0b7b5add67a22cc65194c2aa.tar.bz2 |
a command to recover global keybindings after package updates
-rw-r--r-- | init.el | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -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") |