I am an experienced Clojure developer making the transition to using Spacemacs. I would like to use parinfer in my setup to manipulate my Clojure code structure, but I am struggling to get the behavior I would expect from parinfer in Spacemacs. I have never used Emacs or Spacemacs before, so I only have a fairly basic understanding of how it all works, especially on the config side.
Regardless of how I have tried to configured my init.el
file, I cannot use TAB
to manipulate indentation, and Spacemacs does not clearly indicate which parinfer mode is active.
Relevant parts of init.el
:
dotspacemacs-configuration-layers
'((clojure :variables
;;cider-repl-display-help-banner nil
cider-pprint-fn 'fipp
cider-overlays-use-font-lock t
cider-repl-buffer-size-limit 100
clojure-indent-style 'align-arguments
clojure-align-forms-automatically t
clojure-toplevel-inside-comment-form t
clojure-enable-kaocha-runner t
clojure-enable-linters '(clj-kondo joker)
clojure-enable-fancify-symbols t)
(lsp :variables
lsp-lens-enable t)
parinfer)
(defun dotspacemacs/user-config ()
"Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
(dotspacemacs-activate-smartparens-mode nil)
((add-hook 'clojure-mode-hook 'parinfer-rust-mode)))
UPDATE: I noticed opening Spacemacs that the following error message is displayed:
File mode specification error: (module-open-failed /Users/hestey264/.config/emacs/.cache/parinfer-rust/parinfer-rust-darwin.so dlopen(/Users/hestey264/.config/emacs/.cache/parinfer-rust/parinfer-rust-darwin.so, 0x0001):
tried: '/Users/hestey264/.config/emacs/.cache/parinfer-rust/parinfer-rust-darwin.so' (mach-o file\, but is an incompatible architecture (have (x86_64), need (arm64e))))
Apparently the parinfer-rust
library is built for the Intel chip, while my machine has Apple's M1 chip.
Can anyone please advise me on what I need to add to my config in order to utilize this tool?