本文介绍了将jedi配置为不自动自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在emacs中安装了jedi-mode以进行python编辑,因为我发现 C-. C-对于跳转到定义和返回非常有用.但是,自动完成不是我想要的.当我尝试在安装了jedi的情况下使用emacs时,它一直在不断尝试获取建议并弹出弹出窗口.我该如何配置jedi,使其仅响应特定的调用而不响应键入或光标移动?

I have jedi-mode installed in emacs for python editing because I find C-. and C-, very useful for jumping to definitions and back. Automatic auto-completion, however, is not something I want. As I try to use emacs with jedi installed, it is continually trying to jump in with suggestions and bring up popups. How can I configure jedi so that it only does things in response to specific invocations, and not in response to typing or cursor movement?

我尝试设置(setq jedi:complete-on-dot nil)(setq jedi:tooltip-method nil),但是这些仅禁用了jedi的某些功能反应功能.如何禁用所有这些功能?

I've tried setting (setq jedi:complete-on-dot nil) and (setq jedi:tooltip-method nil) but these only disable some of jedi's reactive features. How do I disable all of them?

或者,如果我主要只是想跳转到定义,是否还有其他emacs软件包会是一个更好的选择?

Alternatively, is there a different emacs package that would be a better choice if I mostly just want to be able to jump to definitions?

推荐答案

jedi 使用 auto-complete 进行自动完成,因此要关闭此功能,您需要查看一下在 自动完成手册:

jedi uses auto-complete for auto-completion, so to turn that off you need to look at the auto-complete manual:

; move quick-help tooltips to the minibuffer
(setq jedi:tooltip-method nil)

; disable all auto-completion unless explicitly invoked with M-tab
(setq ac-auto-show-menu nil)
(setq ac-auto-start nil)
(define-key ac-mode-map (kbd "M-TAB") 'auto-complete)

; start jedi
(add-hook 'python-mode-hook 'jedi:setup)

这篇关于将jedi配置为不自动自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 07:14