branch: elpa/engine-mode
commit e0910f141f2d37c28936c51c3c8bb8a9ca0c01d1
Author: Harry R. Schwartz <[email protected]>
Commit: Harry R. Schwartz <[email protected]>
Don't quote term-transformation-hook value
We had a bug in our documentation; the value associated with a
`term-transformation-hook` shouldn't be quoted.
Thanks to @PhilHudson for noticing and providing a solution!
---
README.md | 2 +-
engine-mode.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 0dc5f496ed..6d4cd0bcd7 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ For example, to UPCASE all of your DuckDuckGo searches:
```emacs
(defengine duckduckgo
"https://duckduckgo.com/?q=%s"
- :term-transformation-hook 'upcase)
+ :term-transformation-hook upcase)
```
Or, to ensure that all your queries are encoded as latin-1:
diff --git a/engine-mode.el b/engine-mode.el
index 4163831ca4..a5582336ae 100644
--- a/engine-mode.el
+++ b/engine-mode.el
@@ -145,7 +145,7 @@ to always upcase our search terms, we might use:
\(defengine duckduckgo
\"https://duckduckgo.com/?q=%s\"
- :term-transformation-hook 'upcase)
+ :term-transformation-hook upcase)
In this case, searching for \"foobar\" will hit the url
\"https://duckduckgo.com/?q=FOOBAR\".