doomemacs/core/core-vcs.el

25 lines
715 B
EmacsLisp
Raw Normal View History

2015-06-15 15:05:52 +08:00
;;; core-vcs.el --- version control awareness
(use-package gitconfig-mode
2015-08-14 00:14:41 +08:00
:mode ("/\\.?git/?config$" "/\\.gitmodules$")
2015-06-15 15:05:52 +08:00
:init (add-hook 'gitconfig-mode-hook 'flyspell-mode))
(use-package gitignore-mode
2015-08-14 00:14:41 +08:00
:mode ("/\\.gitignore$"
"/\\.git/info/exclude$"
"/git/ignore$"))
2015-06-15 15:05:52 +08:00
(use-package diff-hl
:init (setq diff-hl-draw-borders nil)
:config (global-diff-hl-mode +1))
2015-10-26 13:35:19 +08:00
(use-package github-browse-file
:commands (narf:github-browse-file github-browse-file github-browse-file-blame)
:config
(evil-define-command narf:github-browse-file (&optional bang)
(interactive "<!>")
(if bang (github-browse-file-blame) (github-browse-file))))
2015-06-15 15:05:52 +08:00
(provide 'core-vcs)
;;; core-vcs.el ends here