I am trying to disable a minor mode (flycheck) for the latex major mode. This is what I have so far.
(defun disable-flycheck-in-tex-src-block () (flycheck-mode -1)) (add-hook 'latex-mode-hook 'disable-flycheck-in-tex-src-block)
However, after I put this into my init.el, flycheck is still enabled when I open a .tex file.
I am using Steve Purcell's emacs configuration here:
I have added the disable code into
lisp/init-local.el, which I thought runs after all the default configuration.
As far as I can tell,
in the init.el, there is a
Then there is a file called
lisp/init-flycheck.el, that looks like this:
(when (maybe-require-package 'flycheck) (add-hook 'after-init-hook 'global-flycheck-mode) ;; Override default flycheck triggers (setq flycheck-check-syntax-automatically '(save idle-change mode-enabled) flycheck-idle-change-delay 0.8) (setq flycheck-display-errors-function #'flycheck-display-error-messages-unless-error-list)) (provide 'init-flycheck)