This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-15
Channels
- # admin-announcements (10)
- # aws (2)
- # beginners (27)
- # boot (3)
- # cbus (4)
- # cider (1)
- # clara (6)
- # cljs-dev (3)
- # cljsrn (14)
- # clojure (98)
- # clojure-boston (1)
- # clojure-brasil (1)
- # clojure-czech (3)
- # clojure-dusseldorf (11)
- # clojure-greece (3)
- # clojure-japan (3)
- # clojure-korea (1)
- # clojure-russia (138)
- # clojure-uk (11)
- # clojurescript (76)
- # component (2)
- # core-matrix (1)
- # cursive (25)
- # data-science (3)
- # devcards (1)
- # euroclojure (4)
- # events (3)
- # funcool (1)
- # hoplon (219)
- # immutant (40)
- # juxt (8)
- # leiningen (1)
- # off-topic (34)
- # om (148)
- # onyx (10)
- # overtone (2)
- # proton (1)
- # re-frame (8)
- # reagent (3)
- # ring-swagger (5)
- # spacemacs (17)
- # untangled (47)
- # yada (19)
Mac users: how are you launching Spacemacs from command line? I found this gist https://gist.github.com/railwaycat/4043945 on Emacs Mac Port Readme, but not sure if that's the smoothest way. emacs --version
doesn't work for example. But it does a good job or reusing the launched instance. (I still need to learn more about emacsclient and server)
I should probably say that I renamed Emacs_starter.pl
to ~/bin/emacs
and it's on my path
@naartjie: spacemacs supports emacs daemon, you don’t have to do anything… one thing though… os x comes with its emacsclient pre-installed. run which emacsclient
and see where it’s pointing
and if you want to open file with emacsclient
in the same frame, this little script might come handy: https://gist.github.com/agzam/cc723d45aa1ea73eadf63f866b0d3c01
I’m kind of curious now: is it possible to get the non-CLI version to connect to an emacs daemon? I’d much rather have the daemon in the background and be able to connect to it from the shell and from the graphics app (which is what I use primarily).
@akiva as I said: Spacemacs supports daemon, you also have an option to keep it running when closing all frames. check dotspacemacs-persistent-server
variable in .spacemacs
@ag, I knew it does; I just wasn’t sure how to get the graphical client to connect to it.
@akiva if you installed Emacs app through brew, make sure that emacsclient
points to the right one, not the one that’s pre-included in OS X
if you installed it via other means it should be in /Applications/Emacs.app/Contents/MacOS/bin/emacsclient
@akiva emacsclient
can open files in GUI. check the gist I posted earlier. I think the -c
switch does the trick
Looks like it might not be possible: https://github.com/railwaycat/emacs-mac-port/issues/27
@ag: Thanks for all that info.
The ec.sh
script in the gist works so long as I have Emacs.app (i.e. the GUI) launched already (via running open /Applications/Emacs.app), otherwise ec.sh
opens the file inside the terminal.
Should I just set up an alias start-emacs="open /Applications/Emacs.app"
and run that when I start using emacs, then subsequently I can use ec.sh
to open files after that?