Short blog post about how I can post updates into jekyll from emacs using a very simple function.

    (defun new-blog-post (title)
     (interactive "s")
     (let ((date (format-time-string "%Y-%m-%d")))
       (find-file (
		   date (replace-regexp-in-string " " "-" title)))
       (insert "---\n\n")
       (insert "layout: post\n")
       (insert (format "title: %s\n" title))
       (insert (format-time-string "date: %Y-%m-%d %H:%M:%S\n"))
       (insert "category: blog\n\n")
       (insert "---\n\n\n")

Now M-x new-blog-post will create a new blog post for me, I just need to commit the changes M-z and then push them back up to via pages.

You can see my whole ~/.emacs configuration file on

Hooray for emacs