Commit graph

16 commits

Author SHA1 Message Date
syl20bnr 4db59d4cd7 python layer: apply new conventions for tests in debug 2015-08-24 21:23:48 -04:00
syl20bnr 21338a66d5 python layer: rename function with spacemacs prefix 2015-08-10 22:50:50 -04:00
Bar Magal 84c1967594 python: use semantic for imenu only when semantic-mode is on 2015-08-10 22:48:53 -04:00
syl20bnr 18c73ea418 python layer: find usage on SPC m g u instead of SPC m h u
To be consistent with other layers like C#
2015-08-10 22:36:43 -04:00
Bar Magal eb7f937953 python: various improvements
Add binding for anaconda-mode-usages.
Add completion of filenames in repl.
Don't set variables unnecessarily in newer emacsen - these settings are
only needed in emacs 24.3.
2015-08-10 22:35:02 -04:00
syl20bnr 77c0826957 core: fix some duplicated init functions 2015-08-09 00:59:12 -04:00
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 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
Renamed from contrib/lang/python/packages.el (Browse further)