summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-12-02 14:27:37 +0100
committerGravatar Tom Willemse2013-12-02 14:27:37 +0100
commit23040670f8f455482ed0252f33ad78b2309a4645 (patch)
tree0d8cf15e3599ba1f96db8a96d43de35ba7cc175f /.emacs.d
parentf0ae7913338bdbe5f885c3ec67cc97ded2fc2c78 (diff)
downloademacs-23040670f8f455482ed0252f33ad78b2309a4645.tar.gz
emacs-23040670f8f455482ed0252f33ad78b2309a4645.zip
Turn off fci-mode when magit-blame-mode starts
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index daa3a0b..338e417 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1306,5 +1306,11 @@ Toggle mode `persistent-outline-mode' according to the variable
(add-hook 'outline-minor-mode-hook #'init-toggle-pom-by-omm)
+(defun init-toggle-fci-by-mbm ()
+ "Toggle `fci-mode' according to the inverse of `magit-blame-mode'."
+ (fci-mode (or (not magit-blame-mode) -1)))
+
+(add-hook 'magit-blame-mode-hook #'init-toggle-fci-by-mbm)
+
(provide 'init)
;;; init.el ends here