Skip to content

Commit

Permalink
still delicious
Browse files Browse the repository at this point in the history
  • Loading branch information
chen bin committed Jan 3, 2012
1 parent 75baa91 commit ce96ebb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions init-delicious.el
@@ -0,0 +1,2 @@
(require 'delicious)
(provide 'init-delicious)
9 changes: 1 addition & 8 deletions init-emacs-w3m.el
Expand Up @@ -41,16 +41,9 @@
browse-url-browser-function 'w3m
mm-text-html-renderer 'w3m)

(defun ted-delicious-url ()
"Bookmark this page with del.icio.us."
(interactive)
(w3m-goto-url
(concat "http://del.icio.us/redguardtoo?"
"url=" (w3m-url-encode-string w3m-current-url)
"&title=" (w3m-url-encode-string w3m-current-title))))
;bind this function to ‘a’, which is the normal w3m bookmark binding:
(eval-after-load "w3m" '(progn
(define-key w3m-info-like-map "A" 'ted-delicious-url)))
(define-key w3m-info-like-map "A" 'delicious-post)))

(require 'w3m-lnum)
(autoload 'w3m-link-numbering-mode "w3m-lnum" nil t)
Expand Down
2 changes: 1 addition & 1 deletion init.el
Expand Up @@ -44,7 +44,6 @@
(require 'init-ibuffer)
(require 'init-flymake)
(require 'init-artbollocks-mode)

(require 'init-recentf)
(require 'init-ido)
(require 'init-hippie-expand)
Expand Down Expand Up @@ -106,6 +105,7 @@
(require 'init-cmake-mode)
(require 'init-csharp-mode)
(require 'init-linum-mode)
(require 'init-delicious)
(require 'init-emacs-w3m)
(require 'init-eim)
(require 'init-thing-edit)
Expand Down

0 comments on commit ce96ebb

Please sign in to comment.