[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/engine-mode c73489f15b 22/71: Add README documentation for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/engine-mode c73489f15b 22/71: Add README documentation for custom docstrings |
Date: |
Wed, 21 Dec 2022 09:59:06 -0500 (EST) |
branch: elpa/engine-mode
commit c73489f15b51e73598a98cc4bea4228bafde28d6
Author: Harry Schwartz <hello@harryrschwartz.com>
Commit: Harry Schwartz <hello@harryrschwartz.com>
Add README documentation for custom docstrings
---
README.md | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6867c4e7ba..5bc61fa3b4 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,18 @@ engines. `defengine` uses the prefix internally, so if you
change the
prefix after defining your engines you'll find that they still use the
old prefix.
+## Custom docstrings
+
+`defengine` assigns each engine a reasonable default docstring, but
+you can override that on a case-by-case basis with the `:docstring`
+keyword argument:
+
+```emacs
+(defengine ctan
+ "http://www.ctan.org/search/?x=1&PORTAL=on&phrase=%s"
+ :docstring "Search the Comprehensive TeX Archive Network (ctan.org)")
+```
+
## Importing keyword searches from other browsers
Since many browsers save keyword searches using the same format as
@@ -106,7 +118,8 @@ the `:keybinding` keyword to the generated engine
definitions).
"http://www.google.com/images?hl=en&source=hp&biw=1440&bih=795&gbv=2&aq=f&aqi=&aql=&oq=&q=%s")
(defengine google-maps
- "http://maps.google.com/maps?q=%s")
+ "http://maps.google.com/maps?q=%s"
+ :docstring "Mappin' it up.")
(defengine project-gutenberg
"http://www.gutenberg.org/ebooks/search.html/?format=html&default_prefix=all&sort_order=&query=%s")
@@ -122,7 +135,8 @@ the `:keybinding` keyword to the generated engine
definitions).
(defengine wikipedia
"http://www.wikipedia.org/search-redirect.php?language=en&go=Go&search=%s"
- :keybinding "w")
+ :keybinding "w"
+ :docstring "Searchin' the wikis.")
(defengine wiktionary
"https://www.wikipedia.org/search-redirect.php?family=wiktionary&language=en&go=Go&search=%s")
- [nongnu] elpa/engine-mode 2c92e76819 56/71: Bump version to 2.1.2, (continued)
- [nongnu] elpa/engine-mode 2c92e76819 56/71: Bump version to 2.1.2, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 3d4870c337 50/71: Fall back to the browse-url-browser-function, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode f12a4e5ed1 03/71: rename engine -> engine-mode for consistency, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 8851758d4d 21/71: Allow defengine to assign custom docstrings, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 4e1d462a30 18/71: Add link to the EmacsNYC presentation, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode feb41a46e3 48/71: Escape docstring bol open-parentheses, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 08d1a52ce6 43/71: Autoload engine-mode, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode def7195c87 55/71: Include dependency on format-spec, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 75bca85a18 10/71: minor tweaks, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode bd2ea005b3 11/71: add a docstring for the defengine macro, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode c73489f15b 22/71: Add README documentation for custom docstrings,
ELPA Syncer <=
- [nongnu] elpa/engine-mode 449c09afe5 26/71: Nest prefixed keymaps correctly, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode e44d23f6c9 28/71: Add melpa-stable badge to README, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode c37373e36c 06/71: requiring engine-mode, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 98020c5c8f 30/71: Update README text around Chrome script, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 96b3488a6d 54/71: Bump version to 2.1.1, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 30a361b27f 71/71: Remove the rfcs search engine from the docs, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode e99f205873 57/71: Document a definition of the Qwant search engine, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 4f2abf66d9 53/71: Ensure that local keymaps aren't propagated, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode d99f9b4ab2 63/71: Prevent browse-url-browser-function shadowing, ELPA Syncer, 2022/12/21
- [nongnu] elpa/engine-mode 7617af1c21 04/71: avoid multiple-evaluation issue for engine-name, ELPA Syncer, 2022/12/21