2 Dec 2008 15:42
[emacs-w3m:10480] Re: w3m mode should extend to .txt files by default
Eduardo Ochs <eduardoochs <at> gmail.com>
2008-12-02 14:42:14 GMT
2008-12-02 14:42:14 GMT
Is it possible to adapt that idea to force w3m to open local files that do not end with "\\.[sx]?html?\\'" as HTML? Here's an example: run cd /tmp/ wget http://angg.twu.net/emacs.html cp -v ~/TH/L/emacs.html /tmp/emacs.ht cp -v ~/TH/L/emacs.html /tmp/emacs.txt wget http://www.polimetrica.com/main/list.php # Optional # (find-file "~/.w3m/") # (shell-command-to-string "rm -Rv ~/.w3m/") rm -Rv ~/.w3m/ and now (broken, but I hope this may be a step in the right direction): (w3m "file:///tmp/emacs.html") (w3m "file:///tmp/emacs.txt") (w3m "file:///tmp/emacs.ht") (w3m "file:///tmp/list.php") (let ((w3m-local-find-file-regexps '(nil . ""))) (w3m "file:///tmp/emacs.html")) (let ((w3m-local-find-file-regexps '(nil . ""))) (w3m "file:///tmp/emacs.txt")) (let ((w3m-local-find-file-regexps '(nil . ""))) (w3m "file:///tmp/emacs.ht")) (let ((w3m-local-find-file-regexps '(nil . "")))(Continue reading)
Eduardo Ochs
eduardoochs <at> gmail.com
RSS Feed