diff options
author | Vincent Ambo <vincent@spotify.com> | 2013-07-02T21·13+0200 |
---|---|---|
committer | Vincent Ambo <vincent@spotify.com> | 2013-07-02T21·13+0200 |
commit | 75d437e45a3a710d195960aa012ab3c1c746ff77 (patch) | |
tree | 2b0641be4f493e9c8049226e52e72d864ff782aa /init.el | |
parent | 2ec20941fd941ac26fffec7301ca289c99b758ad (diff) |
* added markdown-mode
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el index c68489b0aeec..7cfd3f4e3121 100644 --- a/init.el +++ b/init.el @@ -8,7 +8,7 @@ (package-refresh-contents)) ;; Important packages -(defvar my-pkgs '(starter-kit starter-kit-bindings haskell-mode magit color-theme-solarized) +(defvar my-pkgs '(starter-kit starter-kit-bindings haskell-mode markdown-mode magit color-theme-solarized) "A list of packages to install at launch.") (dolist (p my-pkgs) @@ -63,6 +63,13 @@ (windmove-default-keybindings 'meta) (setq windmove-wrap-around t) +;; Configure markdown-mode +(autoload 'markdown-mode "markdown-mode" + "Major mode for editing Markdown files" t) +(add-to-list 'auto-mode-alist '("\\.txt\\'" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) + ;; Configure haskell-mode ;; Enable semi-automatic indentation and font-locking (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) |