Update the custom hook example to actually need to be a lambda

master
Elis Hirwing 8 years ago
parent cf2ea41486
commit f047313c65
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 4
      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

Loading…
Cancel
Save