Skip to content

Instantly share code, notes, and snippets.

@leavesofgrass
Last active December 17, 2017 19:24
Show Gist options
  • Save leavesofgrass/732a6d9a3f0fcc876f5a3f489451c234 to your computer and use it in GitHub Desktop.
Save leavesofgrass/732a6d9a3f0fcc876f5a3f489451c234 to your computer and use it in GitHub Desktop.
Elisp function to start Chrysalis in a shell.
(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