start a project from script

19 views
Skip to first unread message

Andrew Gaydenko

unread,
Jun 12, 2015, 1:23:14 PM6/12/15
to ens...@googlegroups.com
At the moment I have a script with:

cd /some/prj/root
emacs --eval "(ensime)"

It result in asking .ensime file in minibuffer. Is it possible to inject the file path into script?

Sam Halliday

unread,
Jun 12, 2015, 3:36:07 PM6/12/15
to ens...@googlegroups.com
ensime--1 takes a parameter, but it's an internal function so might change.

if you just want to start the ENSIME server, you can use the reference start script (and I believe Rory has this working on OS X now) https://github.com/ensime/ensime-server/wiki/Using-the-ENSIME-Server-with-Other-Editors#starting-the-server

Andrew Gaydenko

unread,
Jun 12, 2015, 4:11:12 PM6/12/15
to ens...@googlegroups.com
Sam, thanks, ensime--1 does the trick.
What are advantages for (or appropriate workflows for) starting the server before emacs session?

Rory Graves

unread,
Jun 12, 2015, 4:13:32 PM6/12/15
to ens...@googlegroups.com
2 use cases for me so far.

1) Debugging - startup the server attached to various things, get emacs to connect to it.
2) Support clients that don't have all of the startup logic embedded.
--
You received this message because you are subscribed to the Google Groups "ENSIME" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ensime+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam Halliday

unread,
Jun 12, 2015, 4:14:10 PM6/12/15
to ens...@googlegroups.com

Absolutely no advantages at all. In fact, it could break at any moment.

--
You received this message because you are subscribed to a topic in the Google Groups "ENSIME" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ensime/tyJbp5vJXt0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ensime+un...@googlegroups.com.

Rory Graves

unread,
Jun 12, 2015, 4:15:13 PM6/12/15
to ens...@googlegroups.com
Yep - what he said ;)
You received this message because you are subscribed to the Google Groups "ENSIME" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ensime+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages