Created
January 1, 2013 10:54
-
-
Save hamsolodev/4426544 to your computer and use it in GitHub Desktop.
This file contains 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
(defadvice deft-new-file (after deft-markdown-title | |
activate compile) | |
"After Deft creates a new file, make the supplied text a Markdown header" | |
(if (string-equal deft-text-mode "markdown-mode") | |
(progn | |
(goto-char (point-min)) | |
(insert "# ") | |
(goto-char (point-max))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment