Created
December 2, 2011 10:41
-
-
Save hidsh/1422759 to your computer and use it in GitHub Desktop.
xyzzy: open command prompt using ckw "M-x c"
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 c () | |
(interactive) | |
(let ((cmd "C:\\Users\\g\\Dropbox\\apps\\ckw-mod-0.9.0-d2\\ckw-mod-0.9.0-d2\\ckw.exe") | |
(path (get-buffer-file-name)) | |
(opt "")) | |
(when path | |
(setq opt (concat " -cd \"" (directory-namestring path) "\""))) | |
(call-process (concat cmd opt) :wait nil))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment