I always set up emacs running in server mode, and every time I update Ubuntu, the procedure to do this changes.
Even though I have all the same setting in my
/.emacs, it will not work.
I have emacs 24.3.x (whatever the most recent version is), I have AUCTeX cvs, and TeX Live 2013 installed.
./bash_aliases, I have
emacs = 'emacsclient -t --alternate-editor='
The relevant information in my
;; Start server and set directory (setq server-socket-dir (format "/tmp/emacs%d" (user-uid))) (server-start) (custom-set-variables '(TeX-PDF-mode t) '(TeX-show-compilation t) '(TeX-newline-function (quote newline-and-indent)) '(TeX-source-correlate-method (quote synctex)) '(TeX-source-correlate-mode t) '(TeX-source-correlate-start-server t))
Problems only occur opening LaTeX files. Sometimes it says another server is running and other times it says:
dustin@dustin:~/Documents/NUPOC/NUPOCSoln$ emacs SolnNUPOC.tex emacsclient.emacs24: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". Warning: due to a long standing Gtk+ bug http://bugzilla.gnome.org/show_bug.cgi?id=85715 Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost. Using an Emacs configured with --with-x-toolkit=lucid does not have this problem. ("emacs") Loading 00debian-vars... Loading 00debian-vars...done Loading /etc/emacs/site-start.d/50autoconf.el (source)... Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50cmake-data.el (source)... Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)... Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist Loading paren... Loading paren...done Warning: no abbrev-file found, customize `abbrev-file-name' in order to make mode-specific abbrevs work. Starting Emacs daemon. Restarting server
I read in the manual a footnote that:
Some programs use a different environment variable; for example, to make TeX use ‘emacsclient’, set the TEXEDIT environment variable to ‘emacsclient +%d %s’.
There is no mention (that I can find) on where and how to set the TEXEDIT environment.
- How do I set the TEXEDIT environment? or
- How can I set up emacsclient to work?
This set up worked prior to having to re-install everything.