Manual autocompletion
This commit is contained in:
parent
21c9090ae6
commit
3231a145e7
3 changed files with 12 additions and 9 deletions
|
@ -3,9 +3,13 @@
|
|||
(if (not (file-directory-p "~/.emacs.d/.python-environments/default/"))
|
||||
(jedi:install-server))
|
||||
|
||||
(add-hook 'python-mode-hook 'jedi:setup)
|
||||
;; (setq jedi:complete-on-dot nil)
|
||||
|
||||
(add-hook 'python-mode-hook 'jedi:ac-setup)
|
||||
(add-hook 'python-mode-hook
|
||||
(lambda ( )
|
||||
;; (evil-define-key 'insert ac-mode-map (kbd "C-SPC") 'jedi:complete)
|
||||
|
||||
;; Don't remap backspace. Leave it to autopair, please.
|
||||
(define-key python-mode-map [backspace] nil)
|
||||
(evil-define-key 'normal python-mode-map (kbd "s-r")
|
||||
|
|
|
@ -3,13 +3,14 @@
|
|||
auto-complete-config ; its default config
|
||||
))
|
||||
|
||||
(setq ac-auto-show-menu nil ; Suggestions box must be invoked manually (see core-keymaps.el)
|
||||
ac-use-menu-map t ; Enable ac-menu-map map when menu is open
|
||||
ac-us-quick-help nil ; Don't show tooltips unless invoked (see core-keymaps.el)
|
||||
ac-fuzzy-cursor-color nil)
|
||||
;; (setq ac-auto-start 2)
|
||||
;; (setq ac-auto-show-menu nil ; Suggestions box must be invoked manually (see core-keymaps.el)
|
||||
;; ac-use-menu-map t ; Enable ac-menu-map map when menu is open
|
||||
;; ac-us-quick-help nil ; Don't show tooltips unless invoked (see core-keymaps.el)
|
||||
;; ac-fuzzy-cursor-color nil)
|
||||
|
||||
;; Keep auto-complete quiet until it's needed (see core-keymaps.el)
|
||||
(setq ac-auto-start 2)
|
||||
;; Keep auto-complete quiet until it's needed
|
||||
(setq ac-auto-start nil)
|
||||
|
||||
(ac-config-default)
|
||||
(ac-linum-workaround) ; Fix line number flux bug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue