Im writing an lsp-mode purescript client and couldn't figure out how to override the default config options using a .dir-locals file.
For example, I have a defcustom :
defcustom lsp-purescript-use-npx t
"Whether to execute using npx or a globally installed version. Defaults to Npx"
:type '(choice (const :tag "Npx" t)
(const :tag "Global" nil))
:group 'lsp-purescript)
The problem I'm essentially trying to solve is how to set a variable for a minor mode. I'd like to set the value of lsp-purescript-use-npx
within dir-locals but the docs ive seen only show how to set major mode variables
Any help and/or urls for documentation?
M-x add-dir-local-variable
to edit the file for you. – phils Feb 2 '20 at 19:55add-dir-local-variable
command seems to deal with setting variables for major mode configuration - I'm trying to set a value for a minor mode. The UI isn't showing me anything relevant to set the variable I want. I've checked out those urls too but didn't find anything pertaining to minor mode configs – Vance Palacio Feb 3 '20 at 1:58nil
as the mode value. – phils Feb 3 '20 at 2:29lsp-purescript-use-npx
depending on whether a particular minor mode is enabled or disabled, then please update the question and detail exactly what the required behaviour is. – phils Feb 3 '20 at 3:20