README.org (990 bytes)
1 #+TITLE: Coleslaw Snippets 2 #+AUTHOR: Spenser Truex 3 #+EMAIL: web@spensertruex.com 4 5 ** Snippets for all Coleslaw markdown files 6 - Also see coleslaw-mode for dispatching the mode based on the =format:= header. 7 - To install for coleslaw-mode, add 8 #+BEGIN_SRC emacs-lisp :tangle no 9 (add-hook 'coleslaw-mode-hook 'coleslaw-snippets) 10 #+END_SRC 11 to your init file, and bind =coleslaw-insert-header= to a key like 12 13 #+BEGIN_SRC emacs-lisp :tangle no 14 (global-set-key (kbd "C-c H") 'coleslaw-insert-header) 15 #+END_SRC 16 17 You may also choose to use the =autoinsert= package to automatically insert the 18 snippets into coleslaw markdown files. Then you would add: 19 20 #+BEGIN_SRC emacs-lisp :tangle no 21 (dolist (type '("\\.page\\'" "\\.post\\'")) 22 (add-to-list 'auto-mode-alist (cons type 'coleslaw-mode))) 23 #+END_SRC 24 25 to your init. 26 27 You may choose to advise the coleslaw-insert-header function with 28 =coleslaw-dispatch= if you have coleslaw-mode installed. 29 30 More docs at 31 https://spensertruex.com/coleslaw-snippets