Python 如何更改Elpy自动完成框的颜色,而不首先显示私有变量
我正试图让Emacs24.3.1在Ubuntu 14.04上运行,为Python开发配置,并用于自动完成。目前我面临两个问题。在这个屏幕截图中可以看到这两者: 颜色方案很难使用,并且私有方法总是出现在列表的第一位 我的emacs init中的相关行是:Python 如何更改Elpy自动完成框的颜色,而不首先显示私有变量,python,text,emacs,autocomplete,ide,Python,Text,Emacs,Autocomplete,Ide,我正试图让Emacs24.3.1在Ubuntu 14.04上运行,为Python开发配置,并用于自动完成。目前我面临两个问题。在这个屏幕截图中可以看到这两者: 颜色方案很难使用,并且私有方法总是出现在列表的第一位 我的emacs init中的相关行是: ;;pop-ups (require 'popup) ;
;;pop-ups
(require 'popup)
;;;python-mode
(require 'package)
(add-to-list 'package-archives
'("elpy" . "http://jorgenschaefer.github.io/packages/"))
(elpy-enable)
;; Fixing a key binding bug in elpy
(define-key yas-minor-mode-map (kbd "C-c k") 'yas-expand)
(define-key global-map (kbd "C-c o") 'iedit-mode)
;;Use jedi for autocomplete
(setq elpy-rpc-backend "jedi")
(setq py-install-directory "~/.emacs.d/python-mode.el-6.1.3")
(add-to-list 'load-path py-install-directory)
(require 'python-mode)
; use IPython
(setq-default py-shell-name "ipython")
(setq-default py-which-bufname "IPython")
; use the wx backend, for both mayavi and matplotlib
(setq py-python-command-args
'("--gui=wx" "--pylab=wx" "-colors" "Linux"))
(setq py-force-py-shell-name-p t)
; switch to the interpreter after executing code
(setq py-shell-switch-buffers-on-execute-p t)
(setq py-switch-buffers-on-execute-p t)
; don't split windows
(setq py-split-windows-on-execute-p nil)
; try to automagically figure out indentation
(setq py-smart-indentation t)
;; Jedi backend
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t) ;optional
(add-hook 'python-mode-hook 'auto-complete-mode)
(add-hook 'python-mode-hook 'jedi:ac-setup)
如果您对以上任何一个问题有任何帮助,我们将不胜感激。颜色主题与Elpy使用的完成方法相同。如果升级到当前版本的1.5.1,那将是
公司模式
。理论上,这应该已经在暗背景的Emacs中正常工作了。首先尝试将frame background mode
设置为dark
——可能Emacs没有正确检测到您的背景(尽管它应该)。如果失败,您可以通过执行M-x customize group RET company RET
来更改它使用的颜色(“面”),并查找名称中带有“面”的选项
更改完成顺序有点棘手,需要在Elpy中更改一些代码。我为这个请求创建了