Permalink
Browse files

added multi web mode

  • Loading branch information...
1 parent e32dd70 commit cb2f886bd1c23f4b854f6288c55fbac0cf68f224 Matthew Brisebois committed Mar 5, 2012
Showing with 15 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +5 −1 personal/Makefile
  3. +9 −0 personal/personal-mwm.el
View
2 .gitignore
@@ -9,10 +9,10 @@ el-get
semanticdb
custom.el
url
-personal/*.el
ede-projects.el
abbrev_defs
tramp
bookmarks
personal/org-mode
+personal/multi-web-mode
org-clock-save.el
View
6 personal/Makefile
@@ -1,6 +1,7 @@
.PHONY: FORCE all
all: org-mode/lisp/org-install.elc \
- $(HOME)/org
+ $(HOME)/org \
+ multi-web-mode
# ~/org/ is typically shared via Dropbox/org; create symlink if it doesn't exist
$(HOME)/org: FORCE
@@ -21,3 +22,6 @@ org-mode:
org-mode/lisp/org-install.elc: \
org-mode
cd $^; make
+
+multi-web-mode:
+ git clone git://github.com/fgallina/multi-web-mode.git $@
View
9 personal/personal-mwm.el
@@ -0,0 +1,9 @@
+(add-to-list 'load-path (expand-file-name "~/.emacs.d/personal/multi-web-mode/"))
+
+(require 'multi-web-mode)
+(setq mweb-default-major-mode 'html-mode)
+(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
+ (js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
+ (css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
+(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
+(multi-web-global-mode 1)

0 comments on commit cb2f886

Please sign in to comment.