123456789101112131415161718192021222324252627282930313233343536373839 |
- (setq closure-el-path load-file-name)
- (defun closure-el-directory ()
- "Get the directory the closure.el file lives in."
- (file-name-directory closure-el-path))
- (defun closure-generate-jsdoc-path()
- "The path of the generate_jsdoc.py script."
- (concat (closure-el-directory) "generate_jsdoc.py"))
- (defun closure-insert-jsdoc ()
- "Insert JSDoc for the next function after the cursor."
- (interactive)
- (save-excursion
- (call-process-region
- (point) (point-max)
- (closure-generate-jsdoc-path)
- t t)))
- (provide 'closure)
|