Permalink
Browse files

adding fcn to create a new markdown-ready post

  • Loading branch information...
1 parent 936ad48 commit 7a159154a1501ba17a6fb0b477bb1d07fc91c313 @disnet disnet committed with Oct 6, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 posterous.el
View
9 posterous.el
@@ -122,6 +122,15 @@
(defconst posterous-result-buffer "*posterous*"
"Buffer name for copying responses from posterous.com.")
+(defun posterous-newpost ()
+ "Create a new post with a nice markdown template and put into markdown mode"
+ (interactive)
+ ;(setq title (read-from-minibuffer "Post title: "))
+ (switch-to-buffer (get-buffer-create "New Post"))
+ (markdown-mode)
+ (insert "<markdown>\n\n</markdown>")
+ (previous-line))
+
(defun posterous-getsites ()
"Get a list of sites owned by this user."

0 comments on commit 7a15915

Please sign in to comment.