mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
267aa3d788
commit
e6c7553053
@ -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
|
||||
|
Reference in New Issue
Block a user