variables - How to correctly use setq in elisp? -


in emacs config try configure project root jedi using following code:

(setq jedi:server-args '("--sys-path" (projectile-project-root))) 

which throws a:

deferred error : (wrong-type-argument stringp (projectile-project-root)) 

(i have (setq debug-on-error t) backtrace shows nothing)

if hardcode path works expected:

(setq jedi:server-args '("--sys-path" "/some/path")) 

to give line context, here's surrounding code:

(add-hook 'python-mode-hook 'jedi:setup) (setq debug-on-error t) (defun jedi-config:setup-server-args ()   (message (format "configuring current project dir: %s"            (projectile-project-root)))   (setq jedi:server-args '("--sys-path" (projectile-project-root))))  (add-hook 'python-mode-hook       'jedi-config:setup-server-args) 

how can set server-args jedi using projectile variable?

i figured out - rather simple really:

(setq jedi:server-args (list "--sys-path" (projectile-project-root))) 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -