Skip to content

Instantly share code, notes, and snippets.

@vst
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vst/9888169 to your computer and use it in GitHub Desktop.
Save vst/9888169 to your computer and use it in GitHub Desktop.
Creates a temporary file at the configured destination #emacs
;; Declares the variable for the destination folder.
(defvar *vst-tmdfile-folder* "/tmp")
;; Defines the function which creates a temporary markdown file in the
;; destination folder.
(defun vst-tmdfile ()
(interactive)
(find-file (format "%s/%s.md"
*vst-tmdfile-folder*
(format-time-string "%Y-%m-%dT%T"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment