Commit graph

25 commits

Author SHA1 Message Date
Adam Olsen b9e517c1ec fill-column should be 79 instead of 80
PEP8 wants the fill-column to be 79 instead of 80.  This will make other
packages, like flake8 and electric-indent happy.
2015-08-26 23:03:29 -04:00
person808 d32e5e40ae Add missing spacemacs/ prefix to functions.
Only touches the spacemacs layer.
2015-08-26 22:21:57 -04:00
syl20bnr 4db59d4cd7 python layer: apply new conventions for tests in debug 2015-08-24 21:23:48 -04:00
syl20bnr e8072b0057 Fix returned local dir value in python and rcirc layers 2015-08-13 09:02:03 -04:00
syl20bnr 4264e30d7b Move python and rcirc layer extensions to local dir 2015-08-13 09:01:46 -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 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