Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created April 19, 2012 14:00
Show Gist options
  • Select an option

  • Save rlb3/2421166 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/2421166 to your computer and use it in GitHub Desktop.
emacs make sandbox intergration
(defmacro with-directory (dir &rest body)
(declare (indent 2))
(let ((hold-dir (gensym)))
`(let ((,hold-dir default-directory))
(unwind-protect
(progn
(cd ,dir)
,@body)
(cd ,hold-dir)))))
(defun make-sandbox ()
(interactive)
(with-directory "/usr/local/cpanel"
(async-shell-command "make sandbox")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment