Skip to content

Commit

Permalink
added multi web mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brisebois committed Mar 5, 2012
1 parent e32dd70 commit cb2f886
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -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
6 changes: 5 additions & 1 deletion 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
Expand All @@ -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 $@
9 changes: 9 additions & 0 deletions 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.