mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Append slash to default-directory in doom dashboard
...And give +doom-dashboard-update-pwd a docstring
This commit is contained in:
@ -122,10 +122,13 @@ whose dimensions may not be fully initialized by the time this is run."
|
||||
(doom-fallback-buffer)))
|
||||
|
||||
(defun +doom-dashboard-update-pwd ()
|
||||
"TODO"
|
||||
"Update `default-directory' in the Doom dashboard buffer. What it is set to is
|
||||
controlled by `+doom-dashboard-pwd-policy'."
|
||||
(with-current-buffer (doom-fallback-buffer)
|
||||
(let ((new-pwd (+doom-dashboard--get-pwd)))
|
||||
(when (and new-pwd (file-directory-p new-pwd))
|
||||
(unless (string-suffix-p "/" new-pwd)
|
||||
(setq new-pwd (concat new-pwd "/")))
|
||||
(setq default-directory new-pwd)))))
|
||||
|
||||
(defun +doom-dashboard-reload (&optional force)
|
||||
|
Reference in New Issue
Block a user