summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-09-30 21:53:15 -0400
committerKyle Meyer <kyle@kyleam.com>2014-09-30 21:53:15 -0400
commit8e71d3fbc959027e45e082862627cfa7d10b939f (patch)
tree1562c5d265aeca002fcac09bbec01dbaa592b6a2 /lisp
parentbf24b6b129620726943183169498a0f29949bc94 (diff)
downloademacs.d-8e71d3fbc959027e45e082862627cfa7d10b939f.tar.gz
Fix use of magit-find-file-hook
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 99daf30..ae34bab 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -78,12 +78,13 @@ START-POINT set to the current branch.
magit-popup-show-help-echo nil
magit-popup-show-help-section nil
magit-popup-use-prefix-argument 'default
- magit-find-file-hook 'view-mode
magit-log-show-margin nil)
(setq vc-follow-symlinks t)
(after 'magit
+ (add-hook 'magit-find-file-hook 'view-mode)
+
(define-key magit-popup-mode-map (kbd "SPC <t>") 'magit-invoke-popup-switch)
(define-key magit-popup-mode-map (kbd "SPC SPC <t>") 'magit-invoke-popup-option)