prosseek
prosseek

Reputation: 190809

Forward/Reverse link possible with emacs/HTML mode?

With emacs, it's pretty useful to edit HTML file. And I use 'Safari' (I'm a Mac user), to check if the HTML file is rendered correctly.

I always miss the AucTeX's forward/reverse link with pdf/tex files. I can shift-click on emacs/LaTeX file to corresponding pdf file, and vice versa. For example, when I shift-click on string 'abc' on tex source code, auc-tex finds the 'abc' string in the pdf file, and the other way round is possible.

Is there any way to do similar things in emacs? I mean, is there any tool/mode that can connect back/forth between html file and browser?

Upvotes: 3

Views: 294

Answers (1)

ocodo
ocodo

Reputation: 30248

Use

M-x browse-url-of-file

It's generally not bound, so I use...

(global-set-key (kbd "M-P") 'browse-url-of-file)

To globally bind Alt+Shift+p .. as "preview in browser"

Upvotes: 2

Related Questions