Last active
December 17, 2017 19:24
-
-
Save leavesofgrass/732a6d9a3f0fcc876f5a3f489451c234 to your computer and use it in GitHub Desktop.
Elisp function to start Chrysalis in a shell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun chrysalis-shell-start () | |
(interactive) | |
(shell "*chrysalis-shell*") | |
(goto-char (point-max)) | |
(comint-kill-input) | |
(insert "cd ~/Chrysalis") | |
(comint-send-input) | |
(goto-char (point-max)) | |
(comint-kill-input) | |
(insert "lein start") | |
(comint-send-input)) | |
(global-set-key (kbd "<XF86Launch5>") 'chrysalis-shell-start) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment