Permalink
Browse files

Merge pull request #1 from skraelings/master

Shift reference view responsability to browse-url
  • Loading branch information...
2 parents bac5b9d + 9d75f24 commit d0bce145bbd840ea04bb38229ba2e312cc0d3121 @kentaro committed Apr 27, 2015
Showing with 9 additions and 4 deletions.
  1. +4 −1 README
  2. +5 −3 cppref.el
View
@@ -29,11 +29,14 @@
;; * Usage
;;
-;; cppref.el requires cl and emacs-w3m installed in advance. So, add
+;; cppref.el requires cl installed in advance. So, add
;; the lines below into your .emacs:
;;
;; (require 'cppref)
;;
+;; File viewing is handled by browse-url. You can customize the browser
+;; with the option variable browse-url-browser-function.
+;;
;; Althogh cppref.el automatically find out the place of
;; documentation, if you want to put your the directory at some other
;; place, you must add one more line like below:
View
@@ -29,11 +29,14 @@
;; * Usage
;;
-;; cppref.el requires cl and emacs-w3m installed in advance. So, add
+;; cppref.el requires cl installed in advance. So, add
;; the lines below into your .emacs:
;;
;; (require 'cppref)
;;
+;; File viewing is handled by browse-url. You can customize the browser
+;; with the option variable browse-url-browser-function.
+;;
;; Althogh cppref.el automatically find out the place of
;; documentation, if you want to put your the directory at some other
;; place, you must add one more line like below:
@@ -55,7 +58,6 @@
(eval-when-compile
(require 'cl)
- (require 'w3m-load)
(load "find-func") ;; for `find-library-name' to be loaded.
)
@@ -105,7 +107,7 @@ browser."
(setq cppref-doc-dir (concat library-root "docs")))))
(defun cppref-visit-reference (reference)
- (w3m-find-file reference))
+ (browse-url reference))
(defun cppref-find-reference (dir name)
(let ((candidates '())

0 comments on commit d0bce14

Please sign in to comment.