summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/init.el b/init.el
index 02c9b49..7289924 100644
--- a/init.el
+++ b/init.el
@@ -899,7 +899,18 @@
(use-package smerge-mode
:config
- (setq smerge-diff-switches '("-d" "-b" "-u")))
+ (setq smerge-diff-switches '("-d" "-b" "-u"))
+
+ (defvar-local km/smerge-restore-flycheck nil)
+ (add-hook 'smerge-mode-hook
+ (lambda ()
+ (if smerge-mode
+ (when flycheck-mode
+ (setq km/smerge-restore-flycheck t)
+ (flycheck-mode -1))
+ (when km/smerge-restore-flycheck
+ (setq km/smerge-restore-flycheck nil)
+ (flycheck-mode 1))))))
(use-package git-annex
:config