Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riot.js の web-mode の設定追加 #114 #115

Merged
merged 1 commit into from
Jul 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions init/80_web-mode.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
(bundle web-mode
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tag?\\'" . web-mode))
(setq web-mode-markup-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
)

; Normal HTML
(add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
; Riot.js
(add-to-list 'auto-mode-alist '("\\.tag\\'" . web-mode))
(setq web-mode-engines-alist '(("riot" . "\\.tag\\'")))
)