Manual autocompletion
This commit is contained in:
parent
21c9090ae6
commit
3231a145e7
3 changed files with 12 additions and 9 deletions
2
init.el
2
init.el
|
@ -51,8 +51,6 @@
|
||||||
mod-git ; GIT tools/settings
|
mod-git ; GIT tools/settings
|
||||||
mod-fly ; Syntax and spell checkers
|
mod-fly ; Syntax and spell checkers
|
||||||
mod-emmet ; Zen-coding for HTML+CSS
|
mod-emmet ; Zen-coding for HTML+CSS
|
||||||
; mod-webdev ; Webdev tools (sass, js, etc)
|
|
||||||
; mod-gamedev ; Gamedev tools (C++, love2D, html5)
|
|
||||||
; mod-shell ; Terminal emulator settings
|
; mod-shell ; Terminal emulator settings
|
||||||
|
|
||||||
;; Must be last
|
;; Must be last
|
||||||
|
|
|
@ -3,9 +3,13 @@
|
||||||
(if (not (file-directory-p "~/.emacs.d/.python-environments/default/"))
|
(if (not (file-directory-p "~/.emacs.d/.python-environments/default/"))
|
||||||
(jedi:install-server))
|
(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
|
(add-hook 'python-mode-hook
|
||||||
(lambda ( )
|
(lambda ( )
|
||||||
|
;; (evil-define-key 'insert ac-mode-map (kbd "C-SPC") 'jedi:complete)
|
||||||
|
|
||||||
;; Don't remap backspace. Leave it to autopair, please.
|
;; Don't remap backspace. Leave it to autopair, please.
|
||||||
(define-key python-mode-map [backspace] nil)
|
(define-key python-mode-map [backspace] nil)
|
||||||
(evil-define-key 'normal python-mode-map (kbd "s-r")
|
(evil-define-key 'normal python-mode-map (kbd "s-r")
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
auto-complete-config ; its default config
|
auto-complete-config ; its default config
|
||||||
))
|
))
|
||||||
|
|
||||||
(setq ac-auto-show-menu nil ; Suggestions box must be invoked manually (see core-keymaps.el)
|
;; (setq ac-auto-start 2)
|
||||||
ac-use-menu-map t ; Enable ac-menu-map map when menu is open
|
;; (setq ac-auto-show-menu nil ; Suggestions box must be invoked manually (see core-keymaps.el)
|
||||||
ac-us-quick-help nil ; Don't show tooltips unless invoked (see core-keymaps.el)
|
;; ac-use-menu-map t ; Enable ac-menu-map map when menu is open
|
||||||
ac-fuzzy-cursor-color nil)
|
;; 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)
|
;; Keep auto-complete quiet until it's needed
|
||||||
(setq ac-auto-start 2)
|
(setq ac-auto-start nil)
|
||||||
|
|
||||||
(ac-config-default)
|
(ac-config-default)
|
||||||
(ac-linum-workaround) ; Fix line number flux bug
|
(ac-linum-workaround) ; Fix line number flux bug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue