3 Jul 2010 23:37
[emacs-w3m:11251] [PATCH] w3m-lnum add highlight
Andrey Kotlarski <m00naticus <at> gmail.com>
2010-07-03 21:37:03 GMT
2010-07-03 21:37:03 GMT
The following message is a courtesy copy of an article that has been posted to gmane.emacs.w3m as well. Hello, I enjoy both Conkeror and emacs-w3m and was quite happy to discover w3m-lnum which gives emacs-w3m one of the nicest features of Conkeror. One thing seems to be missing though, highlighting of the to be selected numbered anchor, so here's what I've come up with (don't use XEmacs so feel free to add what's needed to properly set overlay face). diff -u /home/andrey2/.emacs.d/extras/w3m/w3m-lnum-cvs.el /home/andrey2/.emacs.d/extras/w3m/w3m-lnum.el --- /home/andrey2/.emacs.d/extras/w3m/w3m-lnum-cvs.el 2010-04-27 15:46:24.000000000 +0300 +++ /home/andrey2/.emacs.d/extras/w3m/w3m-lnum.el 2010-07-04 00:34:41.274261764 +0300 <at> <at> -34,6 +34,7 <at> <at> ;; expressions to your ~/.emacs-w3m. ;; (autoload 'w3m-link-numbering-mode "w3m-lnum" nil t) +;; (autoload 'w3m-view-linknum "w3m-lnum" nil t) ;; (add-hook 'w3m-mode-hook 'w3m-link-numbering-mode) ;;; Code: <at> <at> -67,9 +68,9 <at> <at> (defvar w3m-link-numbering-mode nil "Non-nil if w3m operations using link numbers are enabled.") (make-variable-buffer-local 'w3m-link-numbering-mode) -(unless (assq 'w3m-link-numbering-mode minor-mode-map-alist) - (push (cons 'w3m-link-numbering-mode w3m-link-numbering-mode-map) - minor-mode-map-alist)) +(or (assq 'w3m-link-numbering-mode minor-mode-map-alist) + (push (cons 'w3m-link-numbering-mode w3m-link-numbering-mode-map)(Continue reading)




RSS Feed