Skip to content

Commit 6f7801b

Browse files
committed
Make function usable with M-x
1 parent 8eef7fa commit 6f7801b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

add-node-modules-path.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
(defun add-node-modules-path ()
4040
"Search the current buffer's parent directories for `node_modules/.bin`.
4141
If it's found, then add it to the `exec-path'."
42+
(interactive)
4243
(let* ((root (locate-dominating-file
4344
(or (buffer-file-name) default-directory)
4445
"node_modules"))

0 commit comments

Comments
 (0)