Created
January 17, 2018 06:07
-
-
Save jmercouris/5e0879d8014eb6d810cfc293a466cd0b to your computer and use it in GitHub Desktop.
This file contains 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
(define-key *global-map* (kbd "S-b u") #'bookmark-url) | |
(defcommand bookmark-url () | |
"docstring" | |
(with-result (url (input (mode *minibuffer*))) | |
(let ((db (sqlite:connect | |
(truename (probe-file *bookmark-db-path*))))) | |
(sqlite:execute-non-query | |
db "insert into bookmarks (url) values (?)" url) | |
(sqlite:disconnect db)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment