Created
June 28, 2016 15:34
-
-
Save larsen/86aa9efc9022647a5b98a17b3f00f971 to your computer and use it in GitHub Desktop.
Automatic webjump list from org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun get-webjump-sites () | |
| (with-current-buffer (get-file-buffer "~/Dropbox/stefanorodighiero.net/links.org") | |
| (delq nil | |
| (mapcar | |
| (lambda (i) | |
| (let ((item-string (cdr (assoc "ITEM" i))) | |
| (regex "\\[\\[\\(.*\\)\\]\\[\\(.*\\)\\]\\]")) | |
| (if (posix-string-match regex item-string) | |
| `(,(match-string 2 item-string) . ,(match-string 1 item-string))))) | |
| (org-map-entries 'org-entry-properties nil 'file))))) | |
| (setq webjump-sites (get-webjump-sites)) |
Author
larsen
commented
Jun 28, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment