I'm trying to sync between emacs and skim, and this is the site that I reference: https://stackoverflow.com/questions/7899845/emacs-synctex-skim-how-to-correctly-set-up-syncronization-none-of-the-exi
Following the guide, I could make the setup that I could Shift-Cmd-Click on emacs/AUCTeX to launch skim.app, however, I could not make the backward-sync. When I click Shift-Cmd-Click on Skim.app, nothing happens. This is the configuration from skim.app.
I checked that reverse sync is working with other editors such as
TextMate, so the issue seems to be with
emacsclient. I have
(server-start) in init.el.
I double-checked to launch server with
M-x server-start command from emacs,
This is what I got from
a> emacsclient -s server a.tex emacsclient: connect: Connection refused emacsclient: error accessing socket "/tmp/emacs501/server
Using the hints in Emacs: using emacsclient doesn't help, as I find no
server-socket-name variable assigned.
What seems wrong is that
emacsclient -s server a.tex tries to use
server-socket-dir points to
"/var/folders/sj/6xmft7c105ngpzh4dv9kc2dc0000gn/T//emacs501". I copied the server file into
\tmp/emacs501 to relaunch to get this error:
a> emacsclient -s server a.tex emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". emacsclient: error accessing socket "/tmp/emacs501/server"smcho@smcho mass2015> emacsclient -s server mass2015.tex Waiting for Emacs... -emacs-pid 19104 -error Unknown&_command:&_/Users/me/Desktop/a/a.tex
What might be wrong? How to make
emacsclient working and how to check if it works right?