merge: pull request #7341 from jeetelongname/flymake-less-error
feat(emacs-lisp): add reduced-flymake-byte-compile
This commit is contained in:
commit
ddca307b39
2 changed files with 100 additions and 21 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue