fix(lib): void-variable error in doom/add-directory-as-project
And clarify how it differs from projectile-add-known-project in the command's docstring.
This commit is contained in:
parent
c78a3dc1f5
commit
dea74acb7a
1 changed files with 4 additions and 2 deletions
|
@ -72,7 +72,9 @@ they are absolute."
|
|||
;;;###autoload
|
||||
(defun doom/add-directory-as-project (dir)
|
||||
"Register an arbitrary directory as a project.
|
||||
If DIR is not a valid project, a .project file will be created within it. This
|
||||
|
||||
Unlike `projectile-add-known-project', if DIR isn't a valid project, a .project
|
||||
file will be created within it so that it will always be treated as one. This
|
||||
command will throw an error if a parent of DIR is a valid project (which would
|
||||
mask DIR)."
|
||||
(interactive "D")
|
||||
|
@ -85,7 +87,7 @@ mask DIR)."
|
|||
short-dir (abbreviate-file-name proj-dir)))
|
||||
(message "%S was not a project; adding .project file to it"
|
||||
short-dir (abbreviate-file-name proj-dir))
|
||||
(projectile-add-known-project directory))))
|
||||
(projectile-add-known-project dir))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue