2703 (eval-after-load 'rng-loc '(add-to-list 'rng-schema-locating-files "~/.emacs.d/rnc/schemas.xml")) |
2703 (eval-after-load 'rng-loc '(add-to-list 'rng-schema-locating-files "~/.emacs.d/rnc/schemas.xml")) |
2704 |
2704 |
2705 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2705 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2706 (message "web-mode") |
2706 (message "web-mode") |
2707 |
2707 |
2708 (setq web-mode-engine-file-regexps |
|
2709 '(("jsp" . "\\.tagf?\\'") |
|
2710 ("jsp" . "\\.jspf?\\'"))) |
|
2711 |
|
2712 (setq web-mode-markup-indent-offset 2 |
2708 (setq web-mode-markup-indent-offset 2 |
2713 web-mode-css-indent-offset 2 |
2709 web-mode-css-indent-offset 2 |
2714 web-mode-code-indent-offset 2 |
2710 web-mode-code-indent-offset 2 |
2715 web-mode-script-padding 2 |
2711 web-mode-script-padding 2 |
2716 web-mode-style-padding 2) |
2712 web-mode-style-padding 2) |
2717 |
2713 |
2718 (setq web-mode-enable-comment-keywords t) |
2714 (setq web-mode-enable-comment-keywords t) |
2719 |
2715 |
2720 (ignore-errors (require 'web-mode)) |
2716 (ignore-errors (require 'web-mode)) |
2721 (when (featurep 'web-mode) |
2717 (when (featurep 'web-mode) |
|
2718 (setq web-mode-engine-file-regexps (delq (assoc "jsp" web-mode-engine-file-regexps) web-mode-engine-file-regexps)) |
|
2719 (mapc (lambda (i) (add-to-list 'web-mode-engine-file-regexps i)) |
|
2720 '(("jsp" . "\\.tagf?\\'") |
|
2721 ("jsp" . "\\.jspf?\\'"))) |
2722 (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) |
2722 (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode)) |
2723 (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) |
2723 (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode)) |
2724 (add-to-list 'auto-mode-alist '("\\.jspf?\\'" . web-mode)) |
2724 (add-to-list 'auto-mode-alist '("\\.jspf?\\'" . web-mode)) |
2725 (add-to-list 'auto-mode-alist '("/WEB-INF/tags/.*\\.tagf?\\'" . web-mode)) |
2725 (add-to-list 'auto-mode-alist '("/WEB-INF/tags/.*\\.tagf?\\'" . web-mode)) |
2726 (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode)) |
2726 (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode)) |
2727 (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) |
2727 (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) |
|
2728 (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode)) |
2728 (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode)) |
2729 (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode)) |
2729 (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode)) |
2730 (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode)) |
2730 (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) ) |
2731 (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) ) |
2731 |
2732 |
2732 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2733 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |