merge: pull request #7341 from jeetelongname/flymake-less-error

feat(emacs-lisp): add reduced-flymake-byte-compile
This commit is contained in:
Henrik Lissner 2024-02-01 18:45:42 -05:00 committed by GitHub
commit ddca307b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 100 additions and 21 deletions

View file

@ -95,11 +95,11 @@ See `+emacs-lisp-non-package-mode' for details.")
;; Ensure straight sees modifications to installed packages
#'+emacs-lisp-init-straight-maybe-h)
;; UX: Flycheck's two emacs-lisp checkers produce a *lot* of false positives
;; in non-packages (like Emacs configs or elisp scripts), so I disable
;; `emacs-lisp-checkdoc' and set `byte-compile-warnings' to a subset of the
;; original in the flycheck instance (see `+emacs-lisp-linter-warnings').
(add-hook 'flycheck-mode-hook #'+emacs-lisp-non-package-mode)
;; UX: Both Flycheck's and Flymake's two
;; emacs-lisp checkers produce a *lot* of false positives in non-packages
;; (like Emacs configs or elisp scripts), so I disable `checkdoc' (`emacs-lisp-checkdoc', `elisp-flymake-checkdoc')
;; and set `byte-compile-warnings' to a subset that makes more sense (see `+emacs-lisp-linter-warnings')
(add-hook! '(flycheck-mode-hook flymake-mode-hook) #'+emacs-lisp-non-package-mode)
(defadvice! +syntax--fix-elisp-flymake-load-path (orig-fn &rest args)
"Set load path for elisp byte compilation Flymake backend"