Skip to content

Commit

Permalink
Merge pull request tkf#279 from tkf/reinstall-command
Browse files Browse the repository at this point in the history
Add reinstall server command
  • Loading branch information
syohex authored Jan 21, 2017
2 parents b6972af + 6748553 commit de1f559
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jedi-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,16 @@ See also:
(lambda (_)
(setq-default jedi:server-command (jedi:-env-server-command))))))

;;;###autoload
(defun jedi:reinstall-server ()
"Reinstall Jedi server script jediepcserver.py."
(interactive)
(let ((root (python-environment-root-path jedi:environment-root)))
(when (yes-or-no-p
(format "Reinstall jedi server environment(%s) ?" (abbreviate-file-name root)))
(delete-directory root t)
(jedi:install-server))))

;;;###autoload
(defun jedi:install-server-block ()
"Blocking version `jedi:install-server'."
Expand Down

0 comments on commit de1f559

Please sign in to comment.