Thank you Tomas. I use this way, which works for me: My EDITOR env is ~/bin/edit where "edit" is the following simply bash script: ,---- | #!/bin/bash | # edit | export GDK_NATIVE_WINDOWS=1 | exec emacsclient --alternate-editor="" -c "$@" `---- emacsclient will start the daemon if it's not already started. On Thu, Nov 26, 2009 at 9:29 PM, wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, Nov 26, 2009 at 10:09:13AM -0800, n179911 wrote: > > On Thu, Nov 26, 2009 at 12:58 AM, wrote: > > > > > > > > > Basically, I think it's not a good idea to start the server from init.d > > > - -- it's a user thing, so it should be started on user session. > > > > > > Thank you. Tomas. > > > > How can I unstall the script? > > > 1. cp emacsd /etc/init.d/ > > > 2. chmod 755 /etc/init.d/emacsd > > > 3. update-rc.d emacsd defaults > > > > I did the last step 'update-rc.d', how can I reverse the change done by > that > > 'update-rc.d' script? > > With 'update-rc.d' itself: just type > > update-rc.d emacsd remove > > Note that it won't delete the script in /etc/init.d/emacsd. It will set > up things so that in won't be called at start/stop of the system. > > (You can learn such things by invoking the manual page of update-rc.d: > just type at a terminal window: "man update-rc.d"). > > Did you investigate the other avenues? Do you now know why it didn't > work? > > Regards > - -- tomás > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFLD2O9Bcgs9XrR2kYRAmXQAJ9K+gD5yuFNVweTLZ064e6SrbHjsgCff6lE > 33/6jTBv3AmC3EjxU98lJlo= > =PjMV > -----END PGP SIGNATURE----- >