![]() By default, theĮnvironment is at ~/.emacs.d/.python-environments/default/. This command installs Jedi server script jediepcserver.py in a function anything-jedi-related-names ¶įind related names of the object at point using anything interface. function helm-jedi-related-names ¶įind related names of the object at point using helm interface. Show the documentation of the object at point. Goto the last point where jedi:goto-definition was called. function jedi:goto-definition-pop-marker ¶ When USE-CACHE is non-nil, use the locations of DEFTYPE must be either assignment (default) orĭefinition. When used as a lisp function, popup a buffer when OTHER-WINDOW is Note that you cannot mix universalĪnd numeric prefixes. Numeric prefix argument(s) (e.g., M-0) are given, goto When universal prefix arguments ( C-u) are given. See jedi:goto-definition-config for how this function works Goto the definition of the object at point. ![]() function ( jedi:goto-definition &optional other-window deftype use-cache index ) ¶ function ( jedi:complete &rest -cl-rest- ) ¶Ĭomplete code at point. Jedi:server-args buffer local and set it in python-mode-hook. Per-buffer/per-project basis, make jedi:server-command and If you want to setup how Jedi server is started programmatically The command in minibuffer to specify the way Jedi server run. When invoked as an interactiveĬommand, it asks you how to start the Jedi server. This is useful, for example, when you want to use different Start Jedi server dedicated to this buffer. function ( jedi:start-dedicated-server command ) ¶ Jedi srever will be restarted automatically Jedi server (e.g., when you changed jedi:server-command or Use this command when you want to restart This can be set to jedi:create-flat-imenu-index.ĭefault is jedi:create-nested-imenu-index. ![]() It must be a function that takes no argument and return an object variable ( jedi:imenu-create-index-function 'jedi:create-nested-imenu-index ) ¶ To use this feature, you need to install the developmental variable ( jedi:doc-display-buffer 'display-buffer ) ¶Ī function to be called with a buffer to show document. Length of marker ring to store jedi:goto-definition call positions variable ( jedi:doc-mode 'rst-mode ) ¶ variable ( jedi:goto-definition-marker-ring-length 16 ) ¶ You can rearrange the order to have most useful sets of argumentsĪt the top. ( setq jedi:goto-definition-config ' (( nil definition nil ) ( t definition nil ) ( nil nil nil ) ( t nil nil ) ( nil definition t ) ( t definition t ) ( nil nil t ) ( t nil t ))) Nth element is used as the argument when N universal prefix The following setting is default (last parts are omitted). Jedi:goto-definition when it is used as a lisp function variable ( jedi:goto-definition-config '((nil nil nil) (t nil nil) (nil definition nil) (t definition nil) (nil nil t) (t nil t) (nil definition t) (t definition t)) ) ¶Ĭonfigure how prefix argument modifies jedi:goto-definition behavior.Įach element of the list is arguments (list) passed to Value to nil means to use minibuffer instead of tooltip. This is a list which may contain symbol(s) pos-tip and/or variable ( jedi:tooltip-method '(pos-tip popup) ) ¶ How long Jedi should wait before showing call signature ![]() variable ( jedi:get-in-function-call-delay 1000 ) ¶ variable ( jedi:get-in-function-call-timeout 3000 ) ¶Ĭancel request to server for call signature after this period Use the command jedi:start-dedicated-server. If you want to start a new ad-hoc server for the current buffer, You want to check how many EPC servers are running, use the EPC There is only one Jedi server for the same set of command. Note that Jedi server run by the same command is pooled. ( defun my-jedi-server-setup () ( let (( cmds ( GET-SOME-PROJECT-SPECIFIC-COMMAND )) ( args ( GET-SOME-PROJECT-SPECIFIC-ARGS ))) ( when cmds ( set ( make-local-variable 'jedi:server-command ) cmds )) ( when args ( set ( make-local-variable 'jedi:server-args ) args )))) ( add-hook 'python-mode-hook 'my-jedi-server-setup ) variable ( jedi:server-command '("~/.emacs.d/.python-environments/default/bin/jediepcserver.py") ) ¶ You must set non- nil value to jedi:environment-root in order If it is nil, python-environment-virtualenv is used instead. variable ( jedi:environment-virtualenv nil ) ¶ Python virtual environment is created at the specified path. In that case, python-environment-directory is ignored and You can specify a full path instead of a name (relative path). If it is nil, python-environment-default-root-name is used. To make this option work, you need to use jedi:setup instead of Non- nil means automatically start completion after inserting a dot. Note that this function calls auto-complete-mode if it is notĪlready enabled, for people who don’t call global-auto-complete-mode ( add-hook 'python-mode-hook 'jedi:ac-setup )
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |