Commit 845c52518235

Vincent Demeester <vincent@sbr.pm>
2026-04-10 10:51:43
emacs: add bookmark capture template (lk) for flux
C-c o c lk โ€” captures URL + title via org-protocol (%a), prompts for tags, adds date, prepends to bookmarks.org. Works with Firefox bookmarklet for browser capture.
1 parent 9eac7de
Changed files (1)
dots
config
emacs
dots/config/emacs/init.el
@@ -1581,6 +1581,14 @@ minibuffer, even without explicitly focusing it."
     (interactive)
     (pr-review-search (format "is:pr archived:false is:open repo:%s" (vde/gh-get-current-repo)))))
 
+(use-package shipit
+  :commands (shipit)
+  :after magit
+  :custom
+  (shipit-notifications-enabled nil) ; start with polling disabled, enable manually
+  :config
+  (shipit-init))
+
 (use-package jinx
   :hook (emacs-startup . global-jinx-mode)
   :bind (([remap ispell-word] . jinx-correct) ;; ("M-$" . jinx-correct)
@@ -2127,6 +2135,15 @@ Prompts for URL with clipboard as default.  Suitable for %(sexp) in capture temp
 		 (file ,org-inbox-file)
 		 "%(vde/org-capture-web-page-both)")
 	       t)
+  (add-to-list 'org-capture-templates
+	       `("lk" "๐Ÿ”– Bookmark (flux)" entry
+		 (file+function ,(expand-file-name "bookmarks.org" org-directory)
+				 (lambda () (goto-char (point-min))
+					   (re-search-forward "^\\*" nil t)
+					   (beginning-of-line)))
+		 "* %a%^g\n\n<%<%Y-%m-%d %a>>\n\n%?\n"
+		 :empty-lines 1)
+	       t)
   (add-to-list 'org-capture-templates
 	       `("i" "๐Ÿ’ก TIL")
 	       t)