summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.el19
1 files changed, 7 insertions, 12 deletions
diff --git a/init.el b/init.el
index b70eac6..2704102 100644
--- a/init.el
+++ b/init.el
@@ -1065,15 +1065,15 @@
(global-set-key (kbd "C-c C-b") #'jao-buffer-same-mode)
;;;; projects
-(use-package project
- :bind (("C-x C-p" . project-prefix-map)))
+(use-package project :demand t)
+(global-set-key "\C-xp" 'jao-prev-window)
;;;; buffer quit function (the triple ESC)
(setq buffer-quit-function (lambda () t))
;;;; redisplay escape hatch
-(setq max-redisplay-ticks 2250000)
+;; (setq max-redisplay-ticks 2250000)
;;;; scrolling
(if window-system
(setq scroll-preserve-screen-position 'always
@@ -1112,11 +1112,6 @@
(when jao-first-window--from (pop-to-buffer jao-first-window--from))
(setq jao-first-window--from cb))))
-(defun jao-prev-window ()
- "Go to previous window."
- (interactive)
- (other-window -1))
-
(global-set-key (kbd "s-a") #'jao-first-window)
(global-set-key (kbd "M-a") #'jao-first-window)
@@ -1130,7 +1125,7 @@
(dotimes (x ,n) (other-window 1)))))
(defun jao-prev-window ()
- "Go to previous window"
+ "Go to previous window."
(interactive)
(other-window -1))
@@ -2138,8 +2133,7 @@
(add-hook 'magit-status-sections-hook #'forge-insert-assigned-pullreqs t)
(add-hook 'magit-status-sections-hook #'forge-insert-assigned-issues t)
- :bind (("<f2>" . magit-status)
- (:map forge-topic-mode-map ("M-w" . copy-region-as-kill))))
+ :bind ((:map forge-topic-mode-map ("M-w" . copy-region-as-kill))))
;;;;; code reviews
(use-package code-review
@@ -3200,13 +3194,14 @@
(global-set-key (kbd "s-w") #'jao-transient-utils)
;;; Global key bindings
+(global-set-key (kbd "<f2>") #'magit-status)
(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)
+;; (global-set-key (kbd "C-c W") #'jao-open-in-x-frame)
;;; Last minute (post.el)
(jao-load-site-el "post")