(maybe-require-package 'diff-hl)
(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode)

(maybe-require-package 'browse-at-remote)

(provide 'init-vc)

(when (maybe-require-package 'diff-hl)
  (add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
  (add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode))

(maybe-require-package 'browse-at-remote)

(provide 'init-vc)

Enable diff-hl-mode only when available
Enable diff-hl-mode only when available

wegatron/emacs.d,blueseason/emacs.d,kindoblue/emacs.d,me020523/emacs.d,roxolan/emacs.d,kongfy/emacs.d,dcorking/emacs.d,sgarciac/emacs.d,svenyurgensson/emacs.d,braveoyster/emacs.d,purcell/emacs.d,benkha/emacs.d,arthurl/emacs.d,baohaojun/emacs.d,krzysz00/emacs.d,emuio/emacs.d,qianwan/emacs.d,mmqmzk/emacs.d,cyjia/emacs.d,lust4life/emacs.d,gsmlg/emacs.d,cjqw/emacs.d,blueabysm/emacs.d