I don't know whether it is going to work, but try the following:
M-x customize-apropos RET
then write:
tex-view-program RET
This will bring two customisable options:
tex-view-program-selection
and tex-view-program-list
.
This is how I have set them
The most important, I think, is the one I circled in red. If you click on the button value menu
it should give you the option to put Skim.
Remember to save your options by clicking on set for current session
and set for future sessions
, on the top of this same screen. If it doesn't work, try re-starting Emacs (after having saved the options, of course).
EDIT: If you can't find it using the customize-apropos
command, you can use the menu as shown here:
Then scroll down until you find the options I mentioned above, i.e. tex-view-program-selection
and tex-view-program-list
, and change then accordingly.
After son hours of struggle i finally got what i want.
First you set the PDF viewer of your preference, then you follows these steps
http://blog.modelworks.ch/?p=210 (note that you have to set the program list first, then restart emacs, then set the program view selection and restart emacs again) and you are done.
In my case i had to change <directory of your SumatraPDF.exe> -reuse-instance %o
to start SumatraPDF -reuse-instance %o
but i don't know the reason, maybe you can explain this to me.
Best Answer
Try the following:
Customize
Tex View Program List
name
set toEmacs
(or any other meaningful word)Command
, and set the value toemacsclient %o
emacs --daemon
, or add(server-start)
to your.emacs
.Customize
TeX View Program Selection
output-pdf
Emacs
This works for me here on Emacs 24.4.50.1 with Auctex 2014-02-04 from Melpa.