- 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-dirin 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:
%aabsolute pathname (/usr/local/bin/netscape.bin)%ffile name without directory (netscape.bin)%nfile name without extension (netscape)%eextension of file name (bin)%ddirectory (/usr/local/bin/)%pproject root directory (/home/who/blah/), using Projectile%bproject build directory (/home/who/blah/build/), usingmoonshot-project-build-dir
