1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

org-w3m.el (org-w3m-store-link): New function

* org-w3m.el (org-w3m-store-link): New function.
This commit is contained in:
Bastien Guerry 2012-12-22 19:19:26 +01:00
parent cb05900402
commit 12fd14b858

View File

@ -43,6 +43,17 @@
(require 'org)
(add-hook 'org-store-link-functions 'org-w3m-store-link)
(defun org-w3m-store-link ()
"Store a link to a w3m buffer."
(when (eq major-mode 'w3m-mode)
(org-store-link-props
:type "w3m"
:link w3m-current-url
:url (url-view-url t)
:description (or w3m-current-title w3m-current-url))))
(defun org-w3m-copy-for-org-mode ()
"Copy current buffer content or active region with `org-mode' style links.
This will encode `link-title' and `link-location' with