An Emacs Minor Mode For Coleslaw
coleslaw-insert-header
(bound toM-;
) inserts the comment block depending on the type of file, and is how the major mode is selected for the file.- A
*.post
file would insert:
;;;;;
title:
format:
date:
;;;;;
<!--more-->
<!--more-->
-
.page
and.post
files automatically enable coleslaw-mode in emacs. -
Fly Spell spell checking and Markdown major mode enabled.
-
Markdown-preview-eww automatically opens a markdown preview on loadup of a coleslaw-mode file.
- Clone in your
~/.emacs.d/
or equivalent staging area.
-
Add this line to your init file (maybe at
~/.emacs.d/init.el
). This assumes that you cloned into~/.emacs.d/
; change it to fit.(add-to-list 'load-path "~/.emacs.d/coleslaw-mode/")
-
For markdown syntax highlighting, markdown-mode.
-
For a preview of the markdown, markdown-preview-eww.
-
Note that eww has special OS level dependencies.
-
Open a
.page
or.post
file in emacs! -
You might want to view the eww preview with
w3m
. If so, use:(setq browse-url-browser-function 'w3m-goto-url)
- Bind emacs commands for interacting with coleslaw via slime.