Skip to content

Instantly share code, notes, and snippets.

@banister
Created April 23, 2013 14:04
Show Gist options
  • Select an option

  • Save banister/5443809 to your computer and use it in GitHub Desktop.

Select an option

Save banister/5443809 to your computer and use it in GitHub Desktop.
(defun touch-file (my-file)
(interactive (list (read-string "File to create:" default-directory)))
(shell-command (format "touch %s" my-file))
(revert-buffer))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment