diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-26 08:16:57 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-26 08:16:57 -0500 |
| commit | 14a60a3c02677ec0f97c43a92ad5fecd5a7bccbd (patch) | |
| tree | 335d754d926932544d3bfefb031a377f85acfb4b /modules | |
| parent | d3e5403050bd7393fdb337af88311a7f6348ac5f (diff) | |
| download | dotemacs-14a60a3c02677ec0f97c43a92ad5fecd5a7bccbd.tar.gz dotemacs-14a60a3c02677ec0f97c43a92ad5fecd5a7bccbd.zip | |
adding bookmarklet code for future reference
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/org-capture-config.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/org-capture-config.el b/modules/org-capture-config.el index 6a2f9397..cc246be7 100644 --- a/modules/org-capture-config.el +++ b/modules/org-capture-config.el @@ -7,6 +7,12 @@ ;; To ensure the code below is only loaded after org-mode, all code is wrapped in an ;; eval-after-load function. +;; bookmarklet code: +;; text +;; javascript:location.href='org-protocol://capture?template=L&url=%27+encodeURIComponent(location.href)+%27&title=%27+encodeURIComponent(document.title)+%27&body=%27+encodeURIComponent(window.getSelection()) + +;; text + selection +;; javascript:location.href='org-protocol://capture?template=p&url=%27+encodeURIComponent(location.href)+%27&title=%27+encodeURIComponent(document.title)+%27&body=%27+encodeURIComponent(window.getSelection()) ;;; Code: |
