I have emacs23 and AucTeX installed on my Ubuntu system. I would like to change the default pdf viewer in emacs and enable forward and inverse search. How do I do it?
I would like to share my knowledge and experience with emacs by posting an answer.I have done the following for only keyboard shortcuts. I would be happy if it is extended to such a way that, if I double click my source in emacs, my pdf gets generated (forward search) and when I double click on some text in the pdf, it gets to the approximate location in the source(backward search). It's really awesome, requires less space and the best editor I have ever worked with.


file:line:errorstyle messages, see http://tex.stackexchange.com/a/124259/31416 – giordano Feb 22 '14 at 13:58package.elis built-in only with Emacs 24. The last time I tried it,package.eldidn't even work with Emacs 23, although it used to work before some incompatible change. – giordano Feb 22 '14 at 16:57okular --unique %o#src:%n%bwith two dashes – Fred Schoen Oct 09 '14 at 14:04Tex View Program Listsince okular is configured by default. – pavel Dec 08 '16 at 21:18