Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created March 9, 2010 21:38
Show Gist options
  • Save diasjorge/327154 to your computer and use it in GitHub Desktop.
Save diasjorge/327154 to your computer and use it in GitHub Desktop.
;; jekyll support and config
;; http://github.com/metajack/jekyll/blob/master/emacs/jekyll.el
(require 'jekyll)
(setq jekyll-directory "/home/boston/development/mrdias.com/")
(setq jekyll-post-template "---\nlayout: post\ntitle: %s\n---\n\n")
(global-set-key (kbd "C-c j n") 'jekyll-draft-post)
(global-set-key (kbd "C-c j P") 'jekyll-publish-post)
(global-set-key (kbd "C-c j e") 'jekyll-insert-preview-end)
(defun jekyll-insert-preview-end ()
"Insert the comment to mark the end of the post preview"
(interactive)
(insert "<!-- -**-END-**- -->"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment