aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-11-02 00:10:17 +1100
committerYuchen Pei <id@ypei.org>2023-11-02 00:10:17 +1100
commitfed367f31e61f16a6e952630f332d5121c43b904 (patch)
treea6b52d7bbf5e627e7f3bb7f8b5eb1ab506a3317d /emacs/.emacs.d/init
parent94643dfd001fa66319d857fa260d15e543ea9f5d (diff)
[emacs] Add google-docs-odt and fix my-lem-org
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r--emacs/.emacs.d/init/ycp-web.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/ycp-web.el b/emacs/.emacs.d/init/ycp-web.el
index f6da859..d672c3a 100644
--- a/emacs/.emacs.d/init/ycp-web.el
+++ b/emacs/.emacs.d/init/ycp-web.el
@@ -128,6 +128,12 @@
:description "duckduckgo result transform."
:match (concat url-rw-www-re (rx "duckduckgo.com/l/?uddg="))
:actions ((replace-by-redirect "uddg")))
+ (:name google-docs-odt
+ :description "Download Google docs document as odt."
+ :match (concat url-rw-www-re (rx "docs.google.com/document/d/"))
+ :actions ((replace-path-regexp "\\(/document/d/.*?\\)/.*"
+ "\\1/export")
+ (put-query "format" "odt")))
(:name google-to-ddg
:description "Google search to duckduckgo html."
:match (concat url-rw-www-re (rx "google.com/search?q="))