From 5dd3599dbc073ba9bd0b876bde228e9ad2ae2b64 Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Tue, 23 Dec 2025 07:34:32 +1100 Subject: [PATCH] Disable flycheck in elisp --- lisp/init-check.el | 16 +++++++++------- lisp/init-org.el | 13 ++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/lisp/init-check.el b/lisp/init-check.el index d2c8072..94cf811 100644 --- a/lisp/init-check.el +++ b/lisp/init-check.el @@ -7,16 +7,18 @@ ;; Rerunning checks on every newline is a mote excessive. (delq 'new-line flycheck-check-syntax-automatically) + + (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)) ;; And don't recheck on idle as often - (setq flycheck-idle-change-delay 1.0) + (setq flycheck-idle-change-delay 1.0 - ;; For the above functionality, check syntax in a buffer that you switched to - ;; only briefly. This allows "refreshing" the syntax check state for several - ;; buffers quickly after e.g. changing a config file. - (setq flycheck-buffer-switch-check-intermediate-buffers t) + ;; For the above functionality, check syntax in a buffer that you switched to + ;; only briefly. This allows "refreshing" the syntax check state for several + ;; buffers quickly after e.g. changing a config file. + flycheck-buffer-switch-check-intermediate-buffers t - ;; Display errors a little quicker (default is 0.9s) - (setq flycheck-display-errors-delay 0.25)) + ;; Display errors a little quicker (default is 0.9s) + flycheck-display-errors-delay 0.25)) (use-package flyover :diminish diff --git a/lisp/init-org.el b/lisp/init-org.el index 0770bcc..c027594 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -123,11 +123,11 @@ the element after the #+HEADER: tag." :init (with-eval-after-load 'org (setq org-hide-emphasis-markers t - org-pretty-entities t)) + org-pretty-entities t)) :config (setq org-modern-table-vertical 1 - org-modern-table-horizontal 0.2 - org-modern-todo-faces + org-modern-table-horizontal 0.2 + org-modern-todo-faces '(("TODO" :inverse-video t :inherit org-todo) ("PROJ" :inverse-video t :inherit +org-todo-project) ("STRT" :inverse-video t :inherit +org-todo-active) @@ -137,10 +137,10 @@ the element after the #+HEADER: tag." ("[?]" :inverse-video t :inherit +org-todo-onhold) ("KILL" :inverse-video t :inherit +org-todo-cancel) ("NO" :inverse-video t :inherit +org-todo-cancel)) - org-modern-list '((43 . "➤") + org-modern-list '((43 . "➤") (45 . "–") (42 . "•")) - )) + )) (use-package org-modern-indent :ensure (org-modern-indent :type git :host github :repo "jdtsmith/org-modern-indent") @@ -153,8 +153,7 @@ the element after the #+HEADER: tag." (setq org-appear-autoemphasis t org-appear-autosubmarkers t org-appear-autolinks nil) - (run-at-time nil nil #'org-appear--set-elements) - ) + (run-at-time nil nil #'org-appear--set-elements)) (use-package hl-todo :hook (prog-mode . hl-todo-mode)