summaryrefslogtreecommitdiffstats
path: root/emacs.d/10-file-associations.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-05-23 09:43:56 +0200
committerGravatar Tom Willemsen2011-05-23 09:43:56 +0200
commit3ab0e979f8775cec44d5186b408ce3e63a136f75 (patch)
tree1d346c99d6c72e3eefbbc60aff89555160a64411 /emacs.d/10-file-associations.el
parente85d1198ce2594d38a4aa608d5d61d2880488b1c (diff)
downloaddotfiles-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/10-file-associations.el')
-rw-r--r--emacs.d/10-file-associations.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs.d/10-file-associations.el b/emacs.d/10-file-associations.el
index 52a7e23..b82e0e3 100644
--- a/emacs.d/10-file-associations.el
+++ b/emacs.d/10-file-associations.el
@@ -5,6 +5,8 @@
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'auto-mode-alist '("\\.php[345]?$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.js\\(on\\)?$" . javascript-mode))
+(add-to-list 'auto-mode-alist '("\\.mdwn$" . markdown-mode))
+(add-to-list 'auto-mode-alist '("\\.markdown$" . markdown-mode))
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))