✨ (linkding) Function for adding URL at point
This commit is contained in:
parent
00c1b131f8
commit
f0e4ae7de9
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(require 'json)
|
(require 'json)
|
||||||
(require 'plz)
|
(require 'plz)
|
||||||
|
(require 'shr)
|
||||||
|
|
||||||
(defcustom linkding-host ""
|
(defcustom linkding-host ""
|
||||||
"Hostname of the Linkding instance."
|
"Hostname of the Linkding instance."
|
||||||
|
@ -43,5 +44,10 @@
|
||||||
("shared" . false)
|
("shared" . false)
|
||||||
("tag_names" . [])))))
|
("tag_names" . [])))))
|
||||||
|
|
||||||
|
(defun linkding-add-bookmark-at-point ()
|
||||||
|
"Add URL at point as bookmark to Linkding."
|
||||||
|
(interactive)
|
||||||
|
(linkding-add-bookmark (shr-url-at-point nil)))
|
||||||
|
|
||||||
(provide 'linkding)
|
(provide 'linkding)
|
||||||
;;; linkding.el ends here
|
;;; linkding.el ends here
|
||||||
|
|
Loading…
Add table
Reference in a new issue