Skip to content

Instantly share code, notes, and snippets.

@soeren
Created December 9, 2009 20:30
Show Gist options
  • Save soeren/252779 to your computer and use it in GitHub Desktop.
Save soeren/252779 to your computer and use it in GitHub Desktop.
(define-derived-mode blog-mode text-mode "Blog"
"A major mode for editing blog posts.")
(add-to-list 'auto-mode-alist '("/home/soeren/scm/blog/[^/]*\\.txt\\'" . blog-mode))
(add-hook 'blog-mode-hook 'longlines-mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment