From 2d4f6266350214a8f8c23f3ce57c060e28d9a930 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 7 Apr 2023 12:41:06 +0200 Subject: [PATCH] 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. --- init.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 3b8aaa3..b892c72 100644 --- a/init.el +++ b/init.el @@ -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)