Skip to content

Commit

Permalink
tweak(project): add optional arg in +project-scan-for-projects
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Aug 5, 2023
1 parent 2dd871e commit 23a617d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elisp/+project.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ to scan directories recursively."
:type '(repeat (choice directory (cons directory boolean))))

;;;###autoload
(defun +project-scan-for-projects ()
"Scan and remember projects under `+project-scan-dir-paths'."
(defun +project-scan-for-projects (&optional dir)
"Scan and remember projects under DIR or `+project-scan-dir-paths'."
(interactive)
(dolist (cons-dir +project-scan-dir-paths)
(dolist (cons-dir (or dir +project-scan-dir-paths))
(let* ((cons-dir (ensure-list cons-dir))
(root-dir (car cons-dir))
(recursive (cdr cons-dir))
Expand Down

0 comments on commit 23a617d

Please sign in to comment.