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

js2-mode is ignored #4

Closed
luigy opened this issue Jan 26, 2014 · 3 comments
Closed

js2-mode is ignored #4

luigy opened this issue Jan 26, 2014 · 3 comments

Comments

@luigy
Copy link

luigy commented Jan 26, 2014

This used to work, but now I have to remove it from the after expression for it to load js2-mode as the major mode for js (tried it from a fresh clone and it is still broken)
Anyone else run into this? I can submit a PR

;; init-js.el
(after 'js2-mode-autoloads
  (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)))
@bling
Copy link
Owner

bling commented Jan 26, 2014

firstly, cool! someone else is actually use this as their emacs config! secondly, js in my main language at work these days so definitely i would have noticed a big break like this.

i just cleared my elpa and reinstalled everything and js mode is loading correctly. maybe melpa had a broken package you have? i noticed last night that smex/describe-function got broken :(

@luigy
Copy link
Author

luigy commented Jan 26, 2014

Yes, I'm also a dotvim user and enjoy both. Great work!

I removed everything from init.el except for init-js, init-util, init-packages and still have the same issues.

I'm also getting errors with tern: (maybe related)
https://gist.github.com/luigy/8637084

@bling bling closed this as completed in 7d37c24 Jan 26, 2014
@bling
Copy link
Owner

bling commented Jan 26, 2014

yeah i have no idea why it's not working for you....it almost seems like a problem with (package-initialize) not recognizing it, but if that's the case then a whole bunch of other things won't work either, since i'm using -autoloads in quite a few places....anywho, i'm requiring js2-mode all the time anyways, so the after macro here was redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants