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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -