Ignore byte compile warnings for too wide docstrings

Ignore this both in the currently running Emacs as well as in all Emacs
subprocesses spawned by flycheck.
This commit is contained in:
Daniel - 2023-04-07 12:41:06 +02:00
parent 806c7b1053
commit 2d4f626635
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 11 additions and 2 deletions

13
init.el
View File

@ -404,7 +404,8 @@
describe-bindings-outline t ; TODO? help.el
redisplay-skip-fontification-on-input t
undo-limit 80000000
async-shell-command-buffer 'new-buffer)
async-shell-command-buffer 'new-buffer
byte-compile-warnings '(not docstrings))
(put 'set-goal-column 'disabled nil)
@ -1451,7 +1452,15 @@ point to the beginning of buffer first."
(use-package flycheck
:ensure t
:commands (global-flycheck-mode flycheck-mode)
:init (setq flycheck-emacs-lisp-load-path 'inherit))
:init (setq flycheck-emacs-lisp-load-path 'inherit
;; Hack: inherit `byte-compile-warnings' setting in Emacs
;; subprocess; this value is only set once upon starting Emacs, so
;; make sure to manually update this setting when updating
;; `byte-compile-warnings'.
flycheck-emacs-args `("-Q"
"--batch"
"--eval" ,(message "(setq byte-compile-warnings (quote %s))"
byte-compile-warnings))))
(use-package git-commit
:commands (global-git-commit-mode)