[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/luwak 8e7da0d089 10/28: making using tor a user option
From: |
ELPA Syncer |
Subject: |
[elpa] externals/luwak 8e7da0d089 10/28: making using tor a user option |
Date: |
Tue, 25 Oct 2022 15:57:53 -0400 (EDT) |
branch: externals/luwak
commit 8e7da0d0894d3347991f14f4ccbe94d09bdfbec8
Author: Yuchen Pei <hi@ypei.me>
Commit: Yuchen Pei <hi@ypei.me>
making using tor a user option
---
luwak.el | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/luwak.el b/luwak.el
index 224ce836bb..59a1ab148b 100644
--- a/luwak.el
+++ b/luwak.el
@@ -28,6 +28,16 @@
(defcustom luwak-url-rewrite-function 'identity
"Function to rewrite url before loading."
:group 'luwak :type '(function))
+(defcustom luwak-tor-switch nil
+ "Switch behaviour of prefix arg concerning the use of tor.
+
+When nil, use tor by default, and not use it with a prefix arg.
+When non-nill, swap the tor-switch in prefix-arg effect."
+ :group 'luwak :type '(boolean))
+
+(defun luwak-toggle-tor-switch ()
+ (interactive)
+ (setq luwak-tor-switch (not luwak-tor-switch)))
(defun luwak-mode-name ()
(concat "luwak "
@@ -53,7 +63,8 @@
(defun luwak-open (url)
(interactive "sUrl to open: ")
- (luwak-open-internal url current-prefix-arg 'luwak-add-to-history))
+ (luwak-open-internal
+ url (xor luwak-tor-switch current-prefix-arg) 'luwak-add-to-history))
(defun luwak-copy-url ()
(interactive)
- [elpa] branch externals/luwak created (now ec97058718), ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 1899e7903a 19/28: typo, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 7652f876d0 08/28: display tor status, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 8e7da0d089 10/28: making using tor a user option,
ELPA Syncer <=
- [elpa] externals/luwak 5e72329d3a 03/28: some more convenient keys, as well as removal of ref section, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 3c337adc87 07/28: removing deps on eww, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak ea6a1c4c2d 18/28: removing an unused fun, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 3af6104fe5 13/28: make link render a user option and add dump to a file, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak e0408b2cb6 15/28: org store and capture, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 05f5fef4bf 17/28: history and follow numbered link, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 0c1b6e97ab 11/28: docstring minor, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 8373015f75 21/28: Prepare for ELPA submission, ELPA Syncer, 2022/10/25
- [elpa] externals/luwak 2d11ff50d6 25/28: toggle default tor switch., ELPA Syncer, 2022/10/25
- [elpa] externals/luwak aa846e8484 20/28: fixing some compiling error, as well as bugs, ELPA Syncer, 2022/10/25