Browse Source

Refine git settings

master
Juan Placencia 3 years ago
parent
commit
4181f2937b
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      uno/modules/dev/git.org

+ 18
- 0
uno/modules/dev/git.org View File

@ -17,6 +17,8 @@ Define Git dev package.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package magit (use-package magit
:after uno-dev-git :after uno-dev-git
:custom
(magit-diff-refine-hunk t)
:general :general
(uno-leader-define (uno-leader-define
"g" '(:ignore t :which-key "Git") "g" '(:ignore t :which-key "Git")
@ -84,3 +86,19 @@ Define Git dev package.
:config :config
(uno/add-prog-mode 'gitattributes-mode)) (uno/add-prog-mode 'gitattributes-mode))
#+END_SRC #+END_SRC
* Diff Highlight
#+BEGIN_SRC emacs-lisp
(use-package diff-hl
:after uno-dev-git
:hook
(uno-prog-mode . turn-on-diff-hl-mode)
(uno-prog-mode . diff-hl-flydiff-mode))
(use-package diff-hl
:after (uno-dev-git magit)
:hook
(magit-pre-refresh . diff-hl-magit-pre-refresh)
(magit-post-refresh . diff-hl-magit-post-refresh))
#+END_SRC

Loading…
Cancel
Save