ui/doom-dashboard: update for new doom-private-dir
This commit is contained in:
parent
197631f6a4
commit
cc13f51b7f
1 changed files with 4 additions and 9 deletions
|
@ -324,16 +324,11 @@ controlled by `+doom-dashboard-pwd-policy'."
|
|||
("Jump to bookmark" "bookmark"
|
||||
(call-interactively (or (command-remapping #'bookmark-jump)
|
||||
#'bookmark-jump)))
|
||||
,(when (featurep! :config private)
|
||||
,(when (file-directory-p doom-private-dir)
|
||||
'("Open private configuration" "settings"
|
||||
(find-file (expand-file-name "config.el" +private-config-path))))
|
||||
(doom-project-find-file doom-private-dir)))
|
||||
("Edit my modules list" "pencil"
|
||||
(if (featurep! :config private)
|
||||
(let ((init-file (expand-file-name "init.el" +private-config-path)))
|
||||
(unless (file-exists-p init-file)
|
||||
(make-directory (file-name-directory init-file) t)
|
||||
(copy-file (expand-file-name "init.example.el" doom-emacs-dir) init-file t))
|
||||
(find-file init-file))
|
||||
(find-file user-init-file)))
|
||||
(progn (make-directory doom-private-dir t)
|
||||
(find-file (expand-file-name "init.el" doom-private-dir))))
|
||||
("Edit Doom Emacs" "tools"
|
||||
(doom-project-find-file doom-emacs-dir))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue