Skip to content

Instantly share code, notes, and snippets.

@whynotavailable
Created May 22, 2019 15:24
Show Gist options
  • Save whynotavailable/21e71aa1262ba1c61401cdd4e2812ec9 to your computer and use it in GitHub Desktop.
Save whynotavailable/21e71aa1262ba1c61401cdd4e2812ec9 to your computer and use it in GitHub Desktop.
Small snippit to generate note files per date. Also bind it to M-n
(setq note-format "~/notes/%F.org")
(defun make-note()
"Create a new page for today"
(interactive)
(find-file (format-time-string note-format)))
(global-set-key (kbd "M-n") 'make-note)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment