portal

practicalli-johnny 2023-03-27T14:44:01.078499Z

@djblue I noticed the Editor > Emacs info was using a deprecated CIDER variable, so created a PR to update it https://github.com/djblue/portal/pull/172 I can also add key binding code to drive Portal from Spacemacs if desirable, e.g. https://practical.li/clojure/data-inspector/portal/#editor-commands

djblue 2023-03-27T18:22:47.863389Z

Thanks! What keybindings are you thinking?

practicalli-johnny 2023-03-27T21:57:17.589359Z

Key bindings could be added under the Spacemacs Clojure mode

(spacemacs/declare-prefix-for-mode 'clojure-mode "dp" "Portal")
(spacemacs/set-leader-keys-for-major-mode 'clojure-mode "dpp" 'portal.api/open)
(spacemacs/set-leader-keys-for-major-mode 'clojure-mode "dpc" 'portal.api/clear)
(spacemacs/set-leader-keys-for-major-mode 'clojure-mode "dpD" 'portal.api/close)
Or in the user key bindings, SPC o
(spacemacs/declare-prefix "op" "Clojure Portal")
(spacemacs/set-leader-keys "opp" 'portal.api/open)
(spacemacs/set-leader-keys "opc" 'portal.api/clear)
(spacemacs/set-leader-keys "opD" 'portal.api/close)
In the Practicalli Deem Emacs Config I also added Portal commands under Clojure mode, along side the Cider inspector The Emacs code is the same for Spacemacs and Doom (and any other Emacs I assume) https://practical.li/clojure/data-inspector/portal/#editor-commands

practicalli-johnny 2023-03-27T21:58:55.588409Z

Really enjoying portal, although it feels like I am only using a small part of its features. I'll endeavour to write more about my Portal usage as I do more coding over the next few months. Thanks