This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib
Tu Do fafb9c4b3e Enable company in Python REPL for code completion
- Company should be enabled in Python REPL for displaying completion
candidates. Note that in Python REPL, we must use company-capf to
display the candidates from Python REPL, since in the REPL it uses
completion-at-point to display candidates from the REPL. Also, we
locally set company-minimum-prefix-length to 0, so that completion
starts immediately after the first character. We also need to set the
idle delay a bit higher (0.5) compared with Spacemacs default (0.2),
since setting it too low may cause company unable to retrieve completion
candidates.

- Anaconda should NOT be enabled in Python REPL for retrieving proper
completion candidates. This can be tested in Python REPL: when
anaconda-mode is enabled and without any prefix string before point, run
the command completion-at-point (bound to C-M-i by default), completion
candidates from Anaconda are displayed but NOT the ones from the real
REPL. So, when you import a module i.e. os and try to access the
functions in the module with "os." prefix, nothing inside the module is
displayed because Anaconda does not work in Python REPL. When
anaconda-mode is disabled, candidates in "os." are displayed properly
with company-capf. company-anaconda backend cannot be used in Python
REPL since it is buggy: it cannot retrieve any prefix before point and
narrow properly.
2015-05-25 23:39:05 -04:00
..
!config Prefix categories with ! 2015-05-25 00:50:38 -04:00
!email/gnus Prefix categories with ! 2015-05-25 00:50:38 -04:00
!fun emoji layer: fix lazy loading of emoji-cheat-sheet-plus-buffer 2015-05-25 00:54:34 -04:00
!irc Prefix categories with ! 2015-05-25 00:50:38 -04:00
!lang Enable company in Python REPL for code completion 2015-05-25 23:39:05 -04:00
!tools Prefix categories with ! 2015-05-25 00:50:38 -04:00
!usr Prefix categories with ! 2015-05-25 00:50:38 -04:00
!vim Prefix categories with ! 2015-05-25 00:50:38 -04:00
!window-management Prefix categories with ! 2015-05-25 00:50:38 -04:00
auctex auctex layer: add flycheck support 2015-05-03 19:18:03 -04:00
auto-completion Explicitly enable yas-minor-mode 2015-05-25 23:08:59 -04:00
better-defaults Auto-indent when pasting 2015-05-10 21:51:24 -04:00
chrome Added Gmail messages support! with ham mode: 2015-05-16 11:46:26 -04:00
colors colors layer: new variable colors-theme-identifiers-sat&light 2015-05-10 10:36:07 -04:00
deft Reload dotfile and layer anywhere with SPC f e R 2015-04-18 23:40:24 -04:00
finance Remove company-yasnippet backends 2015-04-29 23:54:30 -04:00
floobits Reload dotfile and layer anywhere with SPC f e R 2015-04-18 23:40:24 -04:00
gtags Add doc for helm-gtags-dwim-other-window on SPC m g G 2015-05-20 23:18:29 -04:00
ibuffer ibuffer layer: add README and move C-x C-b replacement to the layer 2015-05-12 23:45:10 -04:00
org add/map org-tree-to-indirect-buffer to mb 2015-05-20 23:04:03 -04:00
osx osx layer: add documentation for coreutils' gls 2015-05-10 01:15:00 -04:00
pcre2el Reload dotfile and layer anywhere with SPC f e R 2015-04-18 23:40:24 -04:00
prodigy Move gnus layer to email category 2015-04-20 23:42:53 -04:00
restclient Reload dotfile and layer anywhere with SPC f e R 2015-04-18 23:40:24 -04:00
semantic Create dir for semanticdb if it doesn't exist 2015-05-14 23:27:12 -04:00
shell Remove auto change directory in ansi-term 2015-05-25 00:46:18 -04:00
slime Disable smartparens in SLIME REPL 2015-05-10 01:18:44 -04:00
smex Reload dotfile and layer anywhere with SPC f e R 2015-04-18 23:40:24 -04:00
spotify spotify: add layer 2015-05-10 01:04:41 -04:00
syntax-checking Move flyspell and helm-flyspell to syntax-checking layer 2015-05-13 23:11:34 -04:00
themes-megapack Add jazz-theme to themes-megapack 2015-04-28 00:03:33 -04:00