mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Notify straight that package was modified
When you edit its files.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user