Last active
August 29, 2015 14:02
-
-
Save epost/6ed314598024864dbaeb to your computer and use it in GitHub Desktop.
run shell command on saving PureScript file
This file contains 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 do-something () | |
(interactive) ; not sure if necessary | |
(shell-command "ls") | |
) | |
(defun my-purescript-mode-hook () | |
(message "in purescript-mode-hook...") | |
(add-hook 'write-contents-hooks 'do-something nil t) | |
) | |
(add-hook 'purescript-mode-hook 'my-purescript-mode-hook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment