Properly remove flymake hooks during deactivation
This commit is contained in:
parent
58e85c8150
commit
74546fa7bb
@ -865,6 +865,12 @@ Checkers checked, in order: `flycheck', `flymake'."
|
|||||||
(remove-hook 'flycheck-mode-hook
|
(remove-hook 'flycheck-mode-hook
|
||||||
#'mood-line--checker-flycheck-update-segment)
|
#'mood-line--checker-flycheck-update-segment)
|
||||||
|
|
||||||
|
;; Remove flymake hooks
|
||||||
|
(advice-remove 'flymake-start
|
||||||
|
#'mood-line--checker-flymake-update-segment)
|
||||||
|
(advice-remove 'flymake--handle-report
|
||||||
|
#'mood-line--checker-flymake-update-segment)
|
||||||
|
|
||||||
;; Remove VC hooks
|
;; Remove VC hooks
|
||||||
(remove-hook 'file-find-hook
|
(remove-hook 'file-find-hook
|
||||||
#'mood-line--vc-update-segment)
|
#'mood-line--vc-update-segment)
|
||||||
|
Loading…
Reference in New Issue
Block a user