0

I am trying to use Emacs Client. I am on OSX. so:

alias ec="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -c -a -nw /Applications/Emacs.app/Contents/MacOS/Emacs"

Then I put (start-server) on my init.el file. A\and:

e --daemon

So when I run ec. And a clean Emacs instance is fired up.

Whats is wrong here?

Thanks in advance

Édipo Féderle
  • 4,169
  • 5
  • 31
  • 35
  • For starters `-c` and `-nw` are incompatible, and you appear to have inserted the `-nw` in between `-a` and its parameter. If fixing that doesn't help, what happens when you start the daemon and run plain `emacsclient -c` ? – phils Aug 18 '15 at 23:58
  • hi @phils. Yeah, I just remove all options and use only -c, then emacs start on graphical mode. But not load my emacs.d configurations... – Édipo Féderle Aug 19 '15 at 01:53
  • It's the server which has to load your config. Try connecting again, issue `M-x kill-emacs` to kill the server, then start again with `emacs --daemon` (not using any alias), and see if your config is loaded. – phils Aug 19 '15 at 02:18
  • Hi, I am using alias because I want use Emacs installation under /Applications/Emacs.app/Contents/MacOS and not OS X own emacs version.... – Édipo Féderle Aug 19 '15 at 02:28
  • Fair enough; I was just trying to minimise the potential sources of weirdness (e.g. the alias used `-q` or `-Q`), but obviously you'll still want to run the intended version :) – phils Aug 19 '15 at 02:55
  • it seems that the configurations were initializadas correctly, only a few who do not ... perhaps the reason being loaded from the temrinal... – Édipo Féderle Aug 19 '15 at 03:19
  • Probably a duplicate of http://stackoverflow.com/a/5066313/324105 -- can you confirm, please? – phils Aug 19 '15 at 05:31
  • I think not. At least don't make effect here... – Édipo Féderle Aug 19 '15 at 15:36
  • In that case you'll need to provide details of what isn't working. You might want to close this question and ask a new one, as the real problem is clearly different to what you originally thought. – phils Aug 19 '15 at 21:20
  • Yes @phils. I will close this question. I will take a look more calmly. Thanks for now. – Édipo Féderle Aug 20 '15 at 11:27
  • Did you manage to solve this? I'm having the same problem seems init.el is ignored when running as a daemon – zzantares Jun 04 '16 at 07:41

0 Answers0