shinohai on Nostr: Well I'm a heathen that uses `vim` for everything, but someone here made a little nak ...
Well I'm a heathen that uses `vim` for everything, but someone here made a little nak wrapper for posting. Not sure if they ever extended it, but
quoting nevent1q…4vr3attraverso un semplice script per #emacs che sfrutta #nak adesso con un semplice M-w e M-x nostr-post posso pubblicare qualsiasi cosa mi passi tra le mani nel sistema operativo... EMACS
;
; nostr-publish.el
;
; use:
;
; load the script with M-x "load-file"
; it defines "nostr-post" function
;
; M-w in your content (saved in kill-ring)
;
; M-x "nostr-post" publishes content
(provide 'nostr-post)
(defun nostr-post ()
(interactive)
(setq key "your secret key")
(setq rel "a relays's list in the form wss://...")
(setq msg (substring-no-properties (nth 0 kill-ring)))
(shell-command
(format "nak event --sec %s -c %s %s" key (prin1-to-string msg) rel)
)
)