Usually, I do the following to change a variable's value:
1 - I execute the command set-variable
2 - I pick cider-shadow-cljs-command
3 - I tweak the value changing it to be "shadow-cljs"
It works. However, it is painful to do this every time. Thus, I would like to make the changes persist over time.
Hence, I edited my init.el
file to have the following snippet:
(add-to-list 'cider-shadow-cljs-command "shadow-cljs")
Unfortunately, if I restart Emacs, an error is retrieved:
Warning (initialization): An error occurred while loading
/Users/pedro/.emacs.d/init.el
: Wrong type argument: listp, npx shadow-cljs
This is the original value:
(defcustom cider-shadow-cljs-command
"npx shadow-cljs"
"The command used to execute shadow-cljs.
By default we favor the project-specific shadow-cljs over the system-wide."
:type 'string
:safe #'stringp
:package-version '(cider . "0.17.0"))
How can I fix this? Should I use a different command than add-to-list
?