-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add event attribute source #5
Comments
I think no need event attributes, because you can get them all from tern.js (tern-auto-complete) just add "browser" to your ".tern-project" located in your html project dir: {
"libs": [
"browser",
],
"plugins": {
}
} and in your web-mode setup (defun my-web-mode-hook ()
"Hooks for Web mode."
(setq web-mode-ac-sources-alist
'(("css" . (
ac-source-css-property
))
("html" . (
ac-source-tern-completion
ac-source-html-tag
ac-source-html-attribute
ac-source-html-attribute-value
))
("jsx" . (
ac-source-tern-completion))
("javascript" . (
ac-source-tern-completion))))
(setq web-mode-enable-auto-quoting nil)
(auto-complete-mode t)
(tern-mode t)) Maybe update readme with few words about tern? |
"event attribute source" I mean "onload", "onbeforeprint", "onclick". Now our html attribute only covers normal attributes. |
Most users who using this package, are web developers and write javascript, too. |
No description provided.
The text was updated successfully, but these errors were encountered: