doomemacs/init/init-git.el

74 lines
1.7 KiB
EmacsLisp
Raw Normal View History

2014-09-06 05:08:40 +08:00
(provide 'init-git)
2014-08-30 10:37:25 +08:00
(use-package git-commit-mode
:mode (("/COMMIT_EDITMSG\\'" . git-commit-mode)
("/NOTES_EDITMSG\\'" . git-commit-mode)
("/MERGE_MSG\\'" . git-commit-mode)
("/TAG_EDITMSG\\'" . git-commit-mode)
("/PULLREQ_EDITMSG\\'" . git-commit-mode)))
2014-08-10 07:25:06 +08:00
2014-08-30 10:37:25 +08:00
(use-package git-rebase-mode
:mode ("/git-rebase-todo\\'" . git-rebase-mode))
2014-08-10 07:25:06 +08:00
2014-08-30 10:37:25 +08:00
(use-package gitconfig-mode
:mode (("/\\.?git/?config\\'" . gitconfig-mode)
("/\\.gitmodules\\'" . gitconfig-mode))
:config (add-hook 'gitconfig-mode-hook 'flyspell-mode))
2014-08-10 07:25:06 +08:00
2014-08-30 10:37:25 +08:00
(use-package gitignore-mode
:mode (("/\\.gitignore\\'" . gitignore-mode)
("/\\.git/info/exclude\\'" . gitignore-mode)
("/git/ignore\\'" . gitignore-mode)))
(use-package git-gutter-fringe+
:init (global-git-gutter+-mode +1)
:config
(progn
(fringe-helper-define 'git-gutter-fr+-added nil
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X.......")
(fringe-helper-define 'git-gutter-fr+-deleted nil
"X......."
"XXXXXXXX"
"X......."
"........"
"........"
"........"
"........"
"........"
"........"
"........"
"........"
"........"
"........"
"........")
2014-08-10 07:25:06 +08:00
(fringe-helper-define 'git-gutter-fr+-modified nil
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X......."
"X.......")))