feat(emacs-lisp): reduce flycheck in org-edit-special buffers

Minimize the flycheck rules when using org-mode's edit functionality for
source code blocks (e.g. `#+begin_src emacs-lisp / #+end_src`) that pops
up a new buffer with the minor mode `'org-src-mode`.
This commit is contained in:
Theia Ware
2025-06-11 13:59:20 -07:00
committed by Henrik Lissner
parent 267aa3d788
commit e6c7553053

View File

@ -260,6 +260,7 @@ selected before this command was invoked."
(let* ((file-path (buffer-file-name (buffer-base-buffer)))
(file-base (if file-path (file-name-base file-path))))
(and (derived-mode-p 'emacs-lisp-mode)
(not (bound-and-true-p org-src-mode))
(or (null file-base)
(locate-file file-base (custom-theme--load-path) '(".elc" ".el"))
(save-excursion