Skip to content

Instantly share code, notes, and snippets.

@elim
Created October 8, 2009 22:24
Show Gist options
  • Save elim/205482 to your computer and use it in GitHub Desktop.
Save elim/205482 to your computer and use it in GitHub Desktop.
--- anything-config.el.orig 2009-10-09 07:14:33.000000000 +0900
+++ anything-config.el 2009-10-09 07:17:32.000000000 +0900
@@ -1611,10 +1611,11 @@
;; W3m bookmark
-(eval-when-compile (require 'w3m-bookmark nil t))
-(unless (and (require 'w3m nil t)
- (require 'w3m-bookmark nil t))
- (defvar w3m-bookmark-file "~/.w3m/bookmark.html"))
+(when (executable-find "w3m")
+ (eval-when-compile (require 'w3m-bookmark nil t))
+ (unless (and (require 'w3m nil t)
+ (require 'w3m-bookmark nil t))
+ (defvar w3m-bookmark-file "~/.w3m/bookmark.html")))
;; (defvar anything-w3m-bookmarks-regexp ">[^><]+[^</a>]+[a-z)0-9]+")
(defface anything-w3m-bookmarks-face '((t (:foreground "cyan1" :underline t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment