0

In emacs 30.1 under windows 11, I installed the flycheck package. Following some instruction on the web, I added (add-hook 'after-init-hook #'global-flycheck-mode) to C:\Users\John\AppData\Roaming\Microsoft\Windows\Recent\.emacs but when I open emacs, I get the following errors below.

Following some other instructions I added

(use-package flycheck :ensure t :init (global-flycheck-mode)) 

but that didn't help. I have ChkTex v1.7.8 installed. What am I missing?


enter image description here


enter image description here


2
  • 1
    Welcome! Generally it is better not to post images of error messages etc. but to include them as “code” samples. Does the problem go away if you some genuine elisp in the scratch buffer rather than text? Commented May 18 at 6:40
  • emacs.stackexchange.com/tags/elisp/info Commented May 18 at 14:15

1 Answer 1

1

Referring your first picture: what you get is normal, correct, since you are in emacs lisp interactions mode; in this language mode you are not allowed to insert free words. A code line must start either with a comment symbol, ; or with parentheses. The error message tells you an usual emacs file must start specifying lexical binding; however, when testing small code snippets you do not need to set that.

Since you mention ChkTeX, seems you attempt to write some LaTeX file - for that you need to install the auctex package.

As for flycheck, it does his work. About the coding system: try with native system first, and then ask specific question, at this stage we don't know if it is not obscured by your mistake.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.