mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-28 07:12:38 -08:00
feat(tutorial): load tutorial.el from all modules
This commit is contained in:
parent
ed0d07f33c
commit
f3525a04fd
2 changed files with 13 additions and 0 deletions
|
|
@ -77,3 +77,14 @@
|
|||
(dolist (filepattern (plist-get parameters :file-triggers))
|
||||
(add-to-list 'doom-tutorials--file-triggers (cons (eval filepattern) name))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-tutorial-load-modules ()
|
||||
(let (loaded-tutorials)
|
||||
(maphash (lambda (key _plist)
|
||||
(let ((tutorial-file (doom-module-path (car key) (cdr key) "tutorial.el")))
|
||||
(when (file-exists-p tutorial-file)
|
||||
(push (cdr key) loaded-tutorials)
|
||||
(load tutorial-file 'noerror 'nomessage))))
|
||||
doom-modules)
|
||||
loaded-tutorials))
|
||||
|
||||
|
|
|
|||
|
|
@ -4,3 +4,5 @@
|
|||
:commands evil-tutor-start
|
||||
:config
|
||||
(setq evil-tutor-working-directory (expand-file-name "tutor" doom-cache-dir)))
|
||||
|
||||
(doom-tutorial-load-modules)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue