diff options
author | 2011-05-23 09:43:56 +0200 | |
---|---|---|
committer | 2011-05-23 09:43:56 +0200 | |
commit | 3ab0e979f8775cec44d5186b408ce3e63a136f75 (patch) | |
tree | 1d346c99d6c72e3eefbbc60aff89555160a64411 /emacs.d/20-markdown-mode.el | |
parent | e85d1198ce2594d38a4aa608d5d61d2880488b1c (diff) | |
download | dotfiles-3ab0e979f8775cec44d5186b408ce3e63a136f75.tar.gz dotfiles-3ab0e979f8775cec44d5186b408ce3e63a136f75.zip |
EMACS: Markdown settings
Load markdown-mode for .mdwn files, don't remove whitespace when
markdown-mode is active and enable whitespace-mode and auto-fill-mode
for markdown-mode.
Diffstat (limited to 'emacs.d/20-markdown-mode.el')
-rw-r--r-- | emacs.d/20-markdown-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs.d/20-markdown-mode.el b/emacs.d/20-markdown-mode.el index c187307..9058bb2 100644 --- a/emacs.d/20-markdown-mode.el +++ b/emacs.d/20-markdown-mode.el @@ -1,4 +1,6 @@ (autoload 'markdown-mode "markdown-mode" "Major mode for editing Markdown files" t) -(setq auto-mode-alist - (cons '("\\.markdown" . markdown-mode) auto-mode-alist)) + +(add-hook 'markdown-mode-hook (lambda () + (whitespace-mode) + (auto-fill-mode))) |