I am starting to use flycheck. I am using use-package and the form for flycheck looks like this:
(use-package flycheck :ensure t :config (setq flycheck-highlighting-mode 'lines) (global-flycheck-mode t)) When i am edting some emacs lisp file i get this information from flycheck:
Syntax checkers for buffer init.el in emacs-lisp-mode:
First checker to run:
emacs-lisp-checkdoc
- may enable: yes - executable: Found at /usr/local/bin/emacs
Checkers that are compatible with this mode, but will not run until properly configured:
emacs-lisp
- may enable: yes - may run: nil - executable: Found at /usr/local/bin/emacs - next checkers: emacs-lisp-checkdoc
Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled checkers.
Flycheck version: 20240726.456 Emacs version: 30.1 System:
x86_64-pc-linux-gnu Window system: x
/usr/local/bin/emacs is the emacs i am running and I am really wondering why the the emacs-lisp syntax checker is "not properly configured". I have looked at the Message buffer and tried to find something related via "some search engine" and on emacs.stackexchange - with no luck.
EDIT1: I have als started "emacs -Q" added flycheck to the load-path and ran flycheck-verify-setup. I got the same result for the emacs-lisp checker "may run: nil"
If I run "C-u C-c ! x" as mentioned by flycheck-verify-setup I get the response "No syntax checkers diabled in this buffer".
EDIT2: (flycheck--emacs-lisp-enabled-p) C-x C-e in some emacs-lisp-mode enabled buffer gives t.
M-x flycheck-verify-setupand my emacs-lisp was set tomay enable: yes, may run: t. What happens if you doC-u C-c ! xto enable the emacs-lisp checker?may run. Can you try putting(flycheck--emacs-lisp-enabled-p)in an elisp file and evaluating it. For me, it returnstbut I wonder if it'll benilfor you.