emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste f047313 219/298: Update the custom hook example t


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste f047313 219/298: Update the custom hook example to actually need to be a lambda
Date: Thu, 9 Dec 2021 19:00:17 -0500 (EST)

branch: elpa/webpaste
commit f047313c656e0ea85033bacc564d02ae6f4605ff
Author: Elis Hirwing <elis.axelsson@gmail.com>
Commit: Elis Hirwing <elis.axelsson@gmail.com>

    Update the custom hook example to actually need to be a lambda
---
 README.org | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 204994e..c816c98 100644
--- a/README.org
+++ b/README.org
@@ -129,7 +129,9 @@ can have several hooks as well if you want it to do several 
custom things.
 
   ;; To build your own send-to-browser hook, you could do like this:
   (add-hook 'webpaste-return-url-hook
-            (lambda (url) (browse-url-generic url)))
+            (lambda (url)
+              (message "Opened URL in browser: %S" url)
+              (browse-url-generic url)))
 #+end_src
 
 ** Custom providers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]