aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-11-28 16:49:51 +1100
committerYuchen Pei <id@ypei.org>2023-11-28 16:49:51 +1100
commita82ff62dae3ad45b52f170c513d8c9913bb9a8d4 (patch)
tree3efcbdcbe32562075630c220d781359ff12f429c /emacs
parent6e7f6cc9887f28f2ff0ca4ea8d10121a41e9305c (diff)
[emacs] minor changes
- google slides to odp url rewrite - fixing emacs-29 lag by setting long-line-threshold to nil
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init/ycp-editing.el5
-rw-r--r--emacs/.emacs.d/init/ycp-web.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el
index a26cee0..8d260ee 100644
--- a/emacs/.emacs.d/init/ycp-editing.el
+++ b/emacs/.emacs.d/init/ycp-editing.el
@@ -170,8 +170,9 @@
'auto-mode-alist
'("\\(README\\|CHANGELOG\\|COPYING\\|LICENSE\\)\\'" . text-mode))
;; https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00113.html
-(when (string< emacs-version "29")
- (add-hook 'before-save-hook 'time-stamp))
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-11/msg01149.html
+(unless (string< emacs-version "29")
+ (setq long-line-threshold nil))
(save-place-mode 1)
diff --git a/emacs/.emacs.d/init/ycp-web.el b/emacs/.emacs.d/init/ycp-web.el
index 3109e2c..6f74966 100644
--- a/emacs/.emacs.d/init/ycp-web.el
+++ b/emacs/.emacs.d/init/ycp-web.el
@@ -137,6 +137,13 @@
:actions ((replace-path-regexp "\\(/document/d/.*?\\)/.*"
"\\1/export")
(put-query "format" "odt")))
+ (:name google-slides-odp
+ :description "Download Google slides as odp."
+ :match (concat url-rw-www-re
+ (rx "docs.google.com/presentation/d/"))
+ :actions ((replace-path-regexp "\\(/document/d/.*?\\)/.*"
+ "\\1/export")
+ (put-query "format" "odp")))
(:name google-to-ddg
:description "Google search to duckduckgo html."
:match (concat url-rw-www-re (rx "google.com/search?q="))