summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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")