Skip to content

Instantly share code, notes, and snippets.

@cbilson
Created July 8, 2011 14:17
Show Gist options
  • Save cbilson/1071936 to your computer and use it in GitHub Desktop.
Save cbilson/1071936 to your computer and use it in GitHub Desktop.
I want to use psake to compile things in emacs
(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