about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-git.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-08-17 12:49:29 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-08-17 12:49:29 +0100
commit7e0dab42d7b74f293423e2a743cccffae38773ae (patch)
tree90d8ee208da49f1f6eebe77f134492ce67301479 /emacs-prelude/personal/lisp/init-git.el
parentd0db5660caa836755ea8c99471d816484ea9e837 (diff)
downloaddotfiles-7e0dab42d7b74f293423e2a743cccffae38773ae.tar.gz
Remove emacs prelude config
Diffstat (limited to 'emacs-prelude/personal/lisp/init-git.el')
-rw-r--r--emacs-prelude/personal/lisp/init-git.el50
1 files changed, 0 insertions, 50 deletions
diff --git a/emacs-prelude/personal/lisp/init-git.el b/emacs-prelude/personal/lisp/init-git.el
deleted file mode 100644
index 973b637..0000000
--- a/emacs-prelude/personal/lisp/init-git.el
+++ /dev/null
@@ -1,50 +0,0 @@
-(use-package magit
-  :after key-chord
-  :init
-  (defun my/magit-set-upstream ()
-    (interactive)
-    (magit-shell-command-topdir "git upstream"))
-  ;; update stale git info on the modeline (based on code removed from doom modeline)
-  (defun my/magit-refresh-state ()
-    (interactive)
-    (dolist (buf (buffer-list))
-      (when (and (not (buffer-modified-p buf))
-                 (buffer-file-name buf)
-                 (file-exists-p (buffer-file-name buf))
-                 (file-in-directory-p (buffer-file-name buf) (magit-toplevel)))
-        (with-current-buffer buf
-          (vc-refresh-state)))))
-  :config
-  (key-chord-define-global "UU" 'my/magit-set-upstream)
-  (key-chord-define-global "RR" 'my/magit-refresh-state)
-  ;; :custom-face
-  ;; (diff-added ((t (:foreground "green4"))))
-  ;; (magit-diff-added ((t (:foreground "green4"))))
-  ;; (magit-diff-added-highlight ((t (:foreground "green4"))))
-  ;; (diff-removed ((t (:foreground "red3"))))
-  ;; (magit-diff-removed ((t (:foreground "red3"))))
-  ;; (magit-diff-removed-highlight ((t (:foreground "red3"))))
-  :custom
-  (magit-diff-refine-hunk 'all)
-  ;; (magit-diff-paint-whitespace t)
-  ;; (magit-diff-paint-whitespace-lines 'all)
-  ;; (magit-diff-highlight-trailing t)
-  ;; (magit-diff-highlight-indentation t)
-  )
-
-(prelude-require-package 'forge)
-(use-package forge
-  :after magit)
-
-(prelude-require-package 'git-gutter)
-(use-package git-gutter
-  :diminish
-  :bind
-  ("C-c j g" . git-gutter-mode)
-  ("C-c j S-g" . git-gutter)
-  ("C-c j n" . git-gutter:next-hunk)
-  ("C-c j p" . git-gutter:previous-hunk)
-  ("C-c j r" . git-gutter:revert-hunk)
-  ("C-c j d" . git-gutter:popup-hunk))
-
-(provide 'init-git)