3
votes

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?

1

1 Answers

2
votes

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"