Skip to content

Instantly share code, notes, and snippets.

@socrateslee
Created March 13, 2013 10:10
Show Gist options
  • Save socrateslee/5150771 to your computer and use it in GitHub Desktop.
Save socrateslee/5150771 to your computer and use it in GitHub Desktop.
Open the cmd in the current directory in Windows, place the gist in .emacs file.
;; cmd
;; ----------
;;; Open the cmd in the current directory.
(defun cmd ()
"Open the cmd in the current directory."
(interactive)
(w32-shell-execute
"open"
"cmd"))
(global-set-key [f11] 'cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment