-
Notifications
You must be signed in to change notification settings - Fork 22
Require package #4
Require package #4
Conversation
|
This looks good. Are you still working on this branch or do you want me to merge it in so you can base the other pr on master? |
|
@expez I'd like to Then I'd like to squash the commit. Come to think of it, is it really true that we need a non-stable clj-refactor? It says on the project page that it is on MELPA stable. |
|
melpa stable is pretty damn old for clj-refactor. We want to get 1.0 out the door with a gazillion new features, but we also want to make sure it's actually worth using. |
|
Looks to me like Unfortunately I don't have time to try this out atm, I have to run. |
|
i think we need company for completion in cider tho
|
|
We do. |
ad52126 to
9c9d488
Compare
|
If cider is installed by the package manager then so are its deps. |
|
|
not sure company is a cider dependency. u still need it if u want proper
|
|
happy to test this tmrw morning. can't do this evening unfortunately |
|
i will also test tomorrow |
|
right, forgot about |
|
tested with 24.3 and 24.4. essentially the inital require package works fine at startup. there is one issue tho and two request:
ta! |
|
I'll fix those things soon, @benedekfazekas. My last commit anticipated @expez's suggestion, and does a require-package on company, too. How would we feel about doing that with all of clj-refactor's dependencies (if they are available on MELPA stable)? |
|
that is cool for company. but as @expez said above unfortunately melpa stable has a dated clj-refactor version. as soon as clj-refactor 1.0.0 released to melpa stable i will get rid of the ugly load path hacking here i promise ;) hope this answers your question. ta for the good work |
|
@benedekfazekas, sorry, I meant doing the same for everything but clj-refactor and anything else that we need an unstable version of. From a first glance on Melpa stable, It looks like that'd be everything but clj-refactor and s.el. |
|
yeah just reread your comment and realised i misunderstood. sry. yeah right, why not: perhaps mark them in comment that they are dependencies of refactor? (so i can remove them easily when we can do proper require-package for clj-refactor) |
|
OK, I'll try to add a comment about that. And it looks like we need to grab yasnippet manually, too. So I'll keep that, s.el, and clj-refactor. |
|
sounds like a good middleground. thx |
|
OK, I think this should be functional and ready to go (after a squash or two). I took the liberty of taking my big red pen to the README in the last commit. |
|
I just downloaded your latest commit @mwfogleman from your branch, made it my .emacs.d/ dir (after having previously renamed my existing .emacs.d to a backup) and opened my Emacs 24.3.1 on OSX. The following warnings/errors occurred: Warning (emacs): Unable to activate package File error: Cannot open load file, clj-refactor To ensure normal operation, you should investigate and remove the |
|
OK, thanks for testing @hellofunk! Not sure what the problem is but I'll look into it. |
|
yup, same here: no joy. this works for me tho (tested both 24.3 and 24.4): (add-to-list 'load-path (concat user-emacs-directory "site-lisp/s-20140910.334"))
(add-to-list 'load-path (concat user-emacs-directory "site-lisp/yasnippet-20141223.303"))
(add-to-list 'load-path (concat user-emacs-directory "site-lisp/clj-refactor-20150104.1358")) |
|
@benedekfazekas Aha, I forgot the /. My bad. Pushed an update. |
|
These various issues and warnings that have popped up in the building of this example config certainly validate the need for this config in the first place! If you seasoned emacs users have problems with this stuff, imagine how nearly impossible it is for a newbie to get it all going! @mwfogleman I till try your latest right now. |
|
all good. will merge as soon as you squash. special thx for big red pen corrections ;) |
This commit uses @purcell's suggestion to automatically download and install packages where possible and desirable. It uses the "require-function" helper to do so. This commit also delete packages that now use require-package, moves the remaining manual installs to site-lisp, and updates the README.md to talk about require-package.
|
hm, still having errors. i simply downloaded the zip file from here: https://github.com/mwfogleman/example-config/tree/require-package right place? i still get these errors on emacs startup: pkg-info.el:48:1:Error: Cannot open load file: dash however, when I closed emacs and then started it again, there were no errors reported. |
25c729f to
e898688
Compare
|
i've seen that error pop up now and then but cljrefactor and cider was still functional (they use dash i think) so i guess nothing to worry about... |
|
I squashed my commits. |
Based on @purcell's comments in #3.