Minor refactors across the board
- when-let* -> when-let - Fix projectile-locate-dominating-file for connected remote files
This commit is contained in:
parent
4ecf6c9414
commit
9a02bd8ac8
42 changed files with 114 additions and 110 deletions
|
@ -255,7 +255,7 @@ This and `+doom-dashboard|record-project' provides `persp-mode' integration with
|
|||
the Doom dashboard. It ensures that the dashboard is always in the correct
|
||||
project (which may be different across perspective)."
|
||||
(when (bound-and-true-p persp-mode)
|
||||
(when-let* ((pwd (persp-parameter 'last-project-root)))
|
||||
(when-let (pwd (persp-parameter 'last-project-root))
|
||||
(+doom-dashboard-update-pwd pwd))))
|
||||
|
||||
(defun +doom-dashboard|record-project (&optional persp &rest _)
|
||||
|
@ -420,7 +420,7 @@ controlled by `+doom-dashboard-pwd-policy'."
|
|||
(propertize (symbol-name action) 'face 'font-lock-constant-face)))
|
||||
(format "%-37s" (buffer-string)))
|
||||
;; Lookup command keys dynamically
|
||||
(or (when-let* ((key (where-is-internal action nil t)))
|
||||
(or (when-let (key (where-is-internal action nil t))
|
||||
(with-temp-buffer
|
||||
(save-excursion (insert (key-description key)))
|
||||
(while (re-search-forward "<\\([^>]+\\)>" nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue