Quantcast
Channel: How to prevent flycheck from treating my init.el as a package file? - Emacs Stack Exchange
Viewing all articles
Browse latest Browse all 4

How to prevent flycheck from treating my init.el as a package file?

$
0
0

If flycheck-mode is enabled for my init.el, I got the following kinds of errors:

The first line should be of the form: ";;; package --- Summary" (emacs-lisp-checkdoc)...The footer should be: (provide 'init)\n;;; init.el ends here (emacs-lisp-checkdoc)

How can I stop flycheck from treating my init.el as a package?

EDIT

I tried to following minimal start up file:

;; flycheck-mode(require 'flycheck)(global-flycheck-mode)(setq-default flycheck-disabled-checker '(emacs-lisp-checkdoc))

Only flycheck and its dependencies are enabled. emacs-lisp-checkdoc is in the disabled checker list but flycheck still lists errors:

0     warning         The first line should be of the form: ";;; package --- Summary" (emacs-lisp-checkdoc)0     warning         You should have a section marked ";;; Commentary:" (emacs-lisp-checkdoc)2   1 error           Cannot open load file: no such file or directory, flycheck (emacs-lisp)3     warning         You should have a section marked ";;; Code:" (emacs-lisp-checkdoc)5     warning         The footer should be: (provide 'test)\n;;; test.el ends here (emacs-lisp-checkdoc)

I'm using Emacs 24.5.1 and the latest flycheck in the git repository (26snapshot).


Viewing all articles
Browse latest Browse all 4

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>