aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom
diff options
context:
space:
mode:
Diffstat (limited to 'config/doom')
-rw-r--r--config/doom/config.org16
1 files changed, 6 insertions, 10 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index edf72e9..c387f0e 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -655,17 +655,13 @@ Emacs mode for managing ledger text files
(use-package! lnd
:load-path "~/dev/emacs-lisp/btc-explorer/"
- :commands (on/lnd-connection)
+ :commands (lnd-pick-node)
:config
- (defun on/lnd-connection ()
- (interactive)
- (let ((nodes '(("local" "https://localhost:8480/v1/" "/mnt/disk/personal/bitcoin/lnd/data/chain/bitcoin/testnet/admin.macaroon")
- ("remote" "https://localhost:8481/v1/" "~/dev/emacs-lisp/btc-explorer/admin.macaroon"))))
- (cl-destructuring-bind (api macaroon-file)
- (thread-first (completing-read "Pick node: " nodes)
- (alist-get nodes nil nil #'string=))
- (setq lnd-api-endpoint api)
- (setq lnd-admin-macaroon (encode-hex-string (f-read-bytes macaroon-file)))))))
+ (setq lnd-nodes '(("local" "https://localhost:8480/v1/"
+ "/run/media/titan/ext_backup/personal/bitcoin/lnd/data/chain/bitcoin/testnet/admin.macaroon")
+ ("remote" "https://localhost:8481/v1/"
+ "~/dev/emacs-lisp/btc-explorer/admin.macaroon"))))
+
#+end_src
#+begin_src emacs-lisp