ui/doom-dashboard: add +doom-dashboard-pwd-policy option #309

Gives the user control over how the dashboard's default-directory is
set. The default is to set it to the project root of the last open
buffer.
This commit is contained in:
Henrik Lissner 2017-12-27 13:24:14 -05:00
parent 06e76c8f49
commit bee9259096
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 36 additions and 6 deletions

View file

@ -130,8 +130,6 @@ buffers. If there's nothing left, switch to `doom-fallback-buffer'. See
do
(dotimes (_i (abs n))
(funcall move-func)))))
(when (eq (current-buffer) (doom-fallback-buffer))
(cd project-dir))
(current-buffer)))
;;;###autoload