Manual autocompletion

This commit is contained in:
Henrik Lissner 2014-07-25 19:19:09 -04:00
parent 21c9090ae6
commit 3231a145e7
3 changed files with 12 additions and 9 deletions

View file

@ -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

View file

@ -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")

View file

@ -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