about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-12-22 12:57:21 +0000
committerDavid Morgan <djm_uk@protonmail.com>2021-12-22 12:57:21 +0000
commit91155c30eae0ce91e6cd99b3233b4b1f539dab7e (patch)
tree6baf5e930a261978941415f99b551dd6695b3248 /.emacs.d/lisp
parent58921d5ad9aa3cee23c4c7a60ab8a0b894e0978f (diff)
downloaddotfiles-91155c30eae0ce91e6cd99b3233b4b1f539dab7e.tar.gz
Remove/replace keychord
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-git.el9
-rw-r--r--.emacs.d/lisp/init-ui.el4
2 files changed, 6 insertions, 7 deletions
diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el
index 63688f9..0107b3b 100644
--- a/.emacs.d/lisp/init-git.el
+++ b/.emacs.d/lisp/init-git.el
@@ -19,11 +19,16 @@
 (use-package git-timemachine)
 
 (use-package magit
-  :after key-chord
   :bind
   ("C-c g" . magit-file-dispatch)
   ("C-c M-g" . magit-dispatch)
+  ("C-c C-g u" . my/magit-set-upstream)
+  ("C-c C-g r" . my/magit-refresh-state)
   :config
+  ;; Requires the following gitconfig:
+  ;; [alias]
+  ;;   upstream = !git push -u origin HEAD
+  ;; TODO - this is useful after setting push remote, but is there a better way?
   (defun my/magit-set-upstream ()
     (interactive)
     (magit-shell-command-topdir "git upstream"))
@@ -37,8 +42,6 @@
                  (file-in-directory-p (buffer-file-name buf) (magit-toplevel)))
         (with-current-buffer buf
           (vc-refresh-state)))))
-  (key-chord-define-global "UU" 'my/magit-set-upstream)
-  (key-chord-define-global "RR" 'my/magit-refresh-state)
   :custom
   (magit-diff-refine-hunk 'all)
   (magit-diff-paint-whitespace-lines 'all)
diff --git a/.emacs.d/lisp/init-ui.el b/.emacs.d/lisp/init-ui.el
index c11bed4..cb93a7f 100644
--- a/.emacs.d/lisp/init-ui.el
+++ b/.emacs.d/lisp/init-ui.el
@@ -92,10 +92,6 @@
   :diminish
   :config (which-key-mode +1))
 
-(use-package key-chord
-  :config
-  (key-chord-mode +1))
-
 (use-package rainbow-delimiters
   :config
   (rainbow-delimiters-mode +1))