diff --git a/modules/lang/emacs-lisp/config.el b/modules/lang/emacs-lisp/config.el index 2623a04ab..bedc8c0f0 100644 --- a/modules/lang/emacs-lisp/config.el +++ b/modules/lang/emacs-lisp/config.el @@ -59,6 +59,13 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.") ;; initialization #'+emacs-lisp-extend-imenu-h) + (autoload 'straight-register-file-modification "straight") + (add-hook! 'emacs-lisp-mode-hook + (defun +emacs-lisp-init-straight-h () + (when (file-in-directory-p (or buffer-file-name default-directory) doom-local-dir) + (add-hook 'after-save-hook #'straight-register-file-modification + nil 'local)))) + ;; Flycheck's two emacs-lisp checkers produce a *lot* of false positives in ;; emacs configs, so we disable `emacs-lisp-checkdoc' and reduce the ;; `emacs-lisp' checker's verbosity.