[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kiwix e2933785 174/192: add autoload cookie for kiwix.e
From: |
Stefan Monnier |
Subject: |
[elpa] externals/kiwix e2933785 174/192: add autoload cookie for kiwix.el Org link functions |
Date: |
Sat, 19 Dec 2020 00:41:55 -0500 (EST) |
branch: externals/kiwix
commit e293378588575cb2781facac4ce8d745cd7de58e
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
add autoload cookie for kiwix.el Org link functions
---
kiwix.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/kiwix.el b/kiwix.el
index 36db1a5..4794e78 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -347,7 +347,7 @@ for query string and library interactively."
;; validate query is non-English
(kiwix-select-library "zh")))
-
+;;;###autoload
(defun org-wikipedia-link-open (link)
"Open LINK in external Wikipedia program."
;; The regexp: (library):query
@@ -370,6 +370,7 @@ for query string and library interactively."
;; (prin1 (format "library: %s, query: %s, url: %s" library query url))
(browse-url url))))
+;;;###autoload
(defun org-wikipedia-link-export (link description format)
"Export the Wikipedia LINK with DESCRIPTION for FORMAT from Org files."
(when (string-match "\\(?:(\\(.*\\)):\\)?\\([^] \n\t\r]*\\)" link)
@@ -386,6 +387,7 @@ for query string and library interactively."
((eq format 'latex) (format "\\href{%s}{%s}" path desc))
(t path))))))
+;;;###autoload
(defun org-wikipedia-store-link ()
"Store a link to a Wikipedia link."
;; [C-c o C-l l] `org-store-link'
@@ -399,11 +401,13 @@ for query string and library interactively."
:description query)
link)))
+;;;###autoload
(org-link-set-parameters "wikipedia" ; NOTE: use `wikipedia' for future
backend changing.
:follow #'org-wikipedia-link-open
:store #'org-wikipedia-store-link
:export #'org-wikipedia-link-export)
+;;;###autoload
(add-hook 'org-store-link-functions 'org-wikipedia-store-link t)
(defun kiwix-mode-enable ()
- [elpa] externals/kiwix 013449c 151/192: update image link for GitHub Org Mode link path support., (continued)
- [elpa] externals/kiwix 013449c 151/192: update image link for GitHub Org Mode link path support., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 1fdcfcc 153/192: add screenshot for kiwix open URL with EWW, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 648916d 154/192: add option to set Kiwix default completing-read framework, default is Ivy., Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix eee7cbd 157/192: auto pull download Docker image if it is not available, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix ba929ec 159/192: update Docker run container command, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 2d31741 160/192: auto launch server if ping not available, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 8cc16b1 161/192: no need to select library when use Docker container, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f11e8fb 167/192: support more web browsers, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix fbd00ab 170/192: select library every time you query because Docker container use libraries index, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d5e5780 173/192: fix GitHub Org Mode inline image display format, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix e2933785 174/192: add autoload cookie for kiwix.el Org link functions,
Stefan Monnier <=
- [elpa] externals/kiwix 0155c9a 177/192: rename org-link functions, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 57d6f5c 178/192: migrate Org Mode link support to separate source code file, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 36b15f3c 179/192: add kiwix.el load in README, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 2011a9f 183/192: update package config in README, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix dd02284 185/192: fix free variable `kiwix-response', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f5d7a2f 180/192: support Org Mode link :complete property function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5f60388 181/192: update kiwix-server-url everytime used, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4bdf16b 188/192: smarter `kiwix-org-get-library' detect existing library in link, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6878b7d 182/192: add condition to detect kiwix server is available when get search hints, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cb3e253 190/192: Merge pull request #2 from syohex/syohex/warnings, Stefan Monnier, 2020/12/19