summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
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