Permalink
Browse files

added markdown mode

  • Loading branch information...
1 parent 6cc8193 commit d51c937b0b289aafbe92f6d0c5f412cfa96f5f4c @iffyuva committed Oct 2, 2012
Showing with 9 additions and 1 deletion.
  1. +7 −0 emacs.d/mad-coding.el
  2. +2 −1 emacs.d/new-elpa.el
View
@@ -59,6 +59,7 @@
;; add javascript2 mode
(autoload 'js2-mode "js2-mode" nil t)
+(setq js2-basic-offset 2)
(setq js2-auto-indent-p t)
(setq js2-use-ast-for-indentation-p t)
(add-to-list 'auto-mode-alist '("\\.\\(js\\|js\\.erb\\)$" . js2-mode))
@@ -94,6 +95,12 @@
(add-to-list 'ac-modes 'less-css-mode)
(add-to-list 'auto-mode-alist '("\\.less$" . less-css-mode))
+;; add less-css-mode
+(require 'markdown-mode)
+(add-to-list 'ac-modes 'markdown-mode)
+(add-to-list 'auto-mode-alist '("\\.md$" . markdown-mode))
+
+
;; ;; try cedet, um my 2nd attempt
;; (add-to-list 'load-path (concat top-dir "/cedet"))
;; (add-to-list 'load-path (concat top-dir "/cedet/common"))
View
@@ -21,7 +21,8 @@
haml-mode
sass-mode
js2-mode
- less-css-mode))
+ less-css-mode
+ markdown-mode))
(dolist (pkg y/required-packages)
(unless (package-installed-p pkg)

0 comments on commit d51c937

Please sign in to comment.