From cc13f51b7f152ef88480cb9e6f5ebdfaa3ea42cf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Apr 2018 16:29:14 -0400 Subject: [PATCH] ui/doom-dashboard: update for new doom-private-dir --- modules/ui/doom-dashboard/config.el | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 9b6b03bab..1d7e9200e 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -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))))))