Commit graph

15 commits

Author SHA1 Message Date
syl20bnr
15d90743f7 cscope layer: Make it agnostic of c-c++ and python modes 2015-07-23 22:20:25 -04:00
syl20bnr
600046f667 Split python layer into !lang/python and !frameworks/django layers 2015-07-03 23:53:07 -04:00
syl20bnr
15c8bc9ac9 Remove superfluous empty lines in python layer README 2015-06-22 23:16:30 -04:00
Swaroop C H
3b6b19eec4 Python layer docs: Mention PYTHONPATH fix 2015-06-22 23:15:05 -04:00
syl20bnr
f4ba6bdab5 Fix various key bindings in converted READMEs 2015-06-11 21:31:42 -04:00
Christoph Paulik
ff8cd06046 Fix various issues with org markup
- lists were not correctly indented sometimes
- **note** and such things do not exist in org
- Note and Important
- Change Feature list to heading
- Change TODOS to actual org TODOS
- Add TOC to python layer
- list indentation
- some typos I could not leave unchanged
- TODO formatting
- List indentation
- typos
- wrong markup

fix conversion issues
2015-06-11 21:31:42 -04:00
Diego Berrocal
460ce54006 Org conversion of all READMEs ! 2015-06-11 21:31:42 -04:00
syl20bnr
d1ecbfa6bb python layer: new variable python-test-runner, can be nose or pytest 2015-06-07 23:59:23 -04:00
Christoph Paulik
95526e8627 add option to use pytest instead of nose 2015-06-07 23:47:25 -04:00
Tu Do
7299cc59b6 [Fix #1813] Insert tab in Python REPL
Currently, when tab is pressed, spaces are inserted. It makes Python
REPL unable to recognize code indentation. We must use tab to indent.
Setting indent-tabs-mode is buffer local, so it does not affect its
value in other buffers.
2015-06-02 22:43:25 -04:00
Tu Do
7f90d99a48 Fix Python and Semantic integration
When no Python executable is detected, Semantic causes an error that it cannot
retrieve include paths from the executable, causing an error that prevents
Python buffer to be switched and error is repeatedly reported whenever a Python
buffer is opened. This commit ignores the error from
semantic-python-get-system-include-path that is called when Semantic setup
itself for a Python buffer.
2015-05-27 23:50:58 -04:00
syl20bnr
a514f6f569 Add TODO for python inferior process key bindings 2015-05-27 23:49:19 -04:00
Tu Do
ae48bd866b [Fix #1668] Don't enable Vim key bindings if holy-mode 2015-05-27 23:45:13 -04:00
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
Tristan Hume
eecb250a55 Prefix categories with ! 2015-05-25 00:50:38 -04:00