Created
July 8, 2011 14:17
-
-
Save cbilson/1071936 to your computer and use it in GitHub Desktop.
I want to use psake to compile things in emacs
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 set-psake-compile-command () | |
(interactive) | |
(let ((psake-file-dir (locate-dominating-file (buffer-file-name) "default.ps1"))) | |
(if psake-file-dir | |
(let (( psake-command (concat "Set-Location " psake-file-dir "; & c:\\Dropbox\\bin\\psake.ps1"))) | |
(progn | |
(make-local-variable 'compile-command) | |
(setq compile-command | |
(concat "powershell -NoProfile -ExecutionPolicy unrestricted -Command \"" psake-command "\""))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment