- Run executable file, debug and build commands on project.
- Can configure build directory per project.
- Requires:
- f
- s
- projectile
- ivy
- realgud
- levenshtein
- Aaron S. Hawley <ashawley at uvm dot edu>
- Art Taylor
- Use Quelpa
(quelpa '(moonshot :repo "ageldama/moonshot" :fetcher github)) (require 'moonshot)
(global-set-key (kbd "C-c x x") 'moonshot-run-executable)
(global-set-key (kbd "C-c x d") 'moonshot-run-debugger)
(global-set-key (kbd "C-c x c") 'moonshot-run-runner)
- Set
moonshot-project-build-dir
in your file local variable or.dir-locals.el
. - can be:
- Relative path string: appended to
(projectile-project-root)
or the directory of current buffer. - Absolute path string.
- Lisp form: evaluates as a string of build directory path.
- Relative path string: appended to
- See
moonshot-debuggers
- (TODO: describe more)
(add-to-list 'moonshot-runners "npm run sth -d %p")
Shell command string can contain variable specifiers:
%a
absolute pathname (/usr/local/bin/netscape.bin
)%f
file name without directory (netscape.bin
)%n
file name without extension (netscape
)%e
extension of file name (bin
)%d
directory (/usr/local/bin/
)%p
project root directory (/home/who/blah/
), using Projectile%b
project build directory (/home/who/blah/build/
), usingmoonshot-project-build-dir