From 150acf68ec741a701bd287d7090f62e58a0bd6bd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 3 Mar 2008 07:13:13 -0500 Subject: web commit by bremner --- doc/tips/Emacs_and_markdown.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/tips/Emacs_and_markdown.html (limited to 'doc/tips') diff --git a/doc/tips/Emacs_and_markdown.html b/doc/tips/Emacs_and_markdown.html new file mode 100644 index 000000000..fcff8f0a5 --- /dev/null +++ b/doc/tips/Emacs_and_markdown.html @@ -0,0 +1,16 @@ +I added the following to my .emacs. + +The hook is to convert tabs to spaces to avoid unpleasant +surprises with code blocks. For source to ska-untabify see the +EmacsWiki +
+(autoload 'markdown-mode "markdown-mode")
+(add-to-list 'auto-mode-alist '("\\.mdwn" . markdown-mode))
+
+(add-hook 'markdown-mode-hook  
+           '(lambda () 
+               (make-local-hook 'write-contents-hooks) 
+                (add-hook 'write-contents-hooks 'ska-untabify nil t)))
+
+ +;; [[DavidBremner]] -- cgit v1.2.3