Commit graph

62 commits

Author SHA1 Message Date
Tu Do
6ffb4fa916 Improve Semantic layer
- Explicitly load Semantic. Currently is loaded only when Srefactor is
  loaded, which is not good for other packages that depends on
  Semantic but outside of C/C++, i.e. Python.

- Enable evil-emacs-state in Srefactor UI menu, since currently Evil key
  mapping override the key mapping of the menu. Vim key bindings are
  already supported upstream, with j,k,/ and ? which is good enough to
  navigate the menu.
2015-04-26 00:33:48 -04:00
syl20bnr
7d9d30768b python layer: lazy-load pip-requirements-mode 2015-04-25 01:37:18 -04:00
Diego Berrocal
18d6c9bd5d Add pip-requirements package to python layer
[Pip requirements mode](https://github.com/Wilfred/pip-requirements.el)
for editing pip requirement files and autocompletion of PyPI Packages by
default.
2015-04-25 01:32:14 -04:00
syl20bnr
b76f4d6897 python layer: fix duplicated line 2015-04-24 23:24:36 -04:00
syl20bnr
c3d76358cd Improve python-remove-unused-imports and document autoflake dep 2015-04-24 22:15:02 -04:00
Daniel Wu
5848fb3d77 add a function to remove unused imports 2015-04-24 22:06:46 -04:00
person808
a749def36e Smarter buffer switching. 2015-04-22 23:12:45 -04:00
Tu Do
000791c5f3 [feature] new Semantic layer
This separates Semantic layer from language major modes, so Semantic
features are only enabled when the layer is added, allow user to choose
using it or not.

Conflicts:
	contrib/lang/c-c++/packages.el
2015-04-21 01:15:40 -04:00
syl20bnr
fdd4e944ef Reload dotfile and layer anywhere with SPC f e R
Replace `SPC m c c` and `C-c C-c` in the dotfile

Resolve #1210
2015-04-18 23:40:24 -04:00
Christoph Paulik
f165761b18 add semantic stickyfunc toggle and activate in python layer 2015-04-15 22:44:45 -04:00
syl20bnr
a4919b3eda New layer syntax-checking
Move flycheck
2015-04-10 22:23:16 -04:00
syl20bnr
7f29260205 Add yasnippet backends 2015-04-09 22:28:26 -04:00
syl20bnr
0c6682cbd1 Refactor one more time the auto-completin macros
It is important to define the buffer local backend variables
in a config.el otherwise it is not available in the layer
configuration if the auto-completion layer is removed.
There were also some issues by hiding the explicit
configuration of company inside a macro, for instance
helm-spacemacs is unable to display the company package
configured in a given layer if the auto-completion layer
is removed.
2015-04-09 00:03:51 -04:00
Tristan Hume
f04412893e Change company macro name and use push 2015-04-08 12:39:25 -04:00
Tristan Hume
ad86ab8fb1 Add a helper for simple company initialization.
Adds the spacemacs|init-layer-company helper to set up company
completion for a language layer and replaces existing simple company
initializations. More complex initializations should use the new
architecture directly and remain untouched by this commit.
2015-04-07 15:21:13 -04:00
Daniel Wu
6711ae4bca python layer: Add helm-pydoc 2015-04-04 00:18:00 -04:00
syl20bnr
57fcb93799 Rename *-declarep functions to *-usedp functions
Makes more sense from a user view point.
2015-04-03 19:13:52 -04:00
syl20bnr
5d8be137e7 Define missing init functions 2015-04-03 17:35:33 -04:00
syl20bnr
318bd23dc4 Add pre and post init functions support to configuration-layers
Now in addition to the <layer>/init-<pkg> function there are
- <layer>/pre-init-<pkg> (executed before <layer>/init-<pkg>)
- <layer>/post-init-<pkg> (executed after <layer>/init-<pkg>)

The init function is mandatory, if it is not present then the
package is ignored and not installed.

This mechanism allows soft (implicit) cross layers dependencies
between packages (see company for more info).

It is now possible to remove flycheck from spacemacs layer and
move it to its own syntax-checking layer.
2015-04-03 17:12:56 -04:00
syl20bnr
769d54da02 New layer auto-completion
Move company and auto-complete to a common layer.
They are not enabled globally anymore, each mode using them
must explicitly declare a hook.
Only one frontend is supported for a given mode, we have to
choose the best between the two.
Only one key binding to toggle auto-completion on `SPC t a` no
matter if it is company or auto-complete. The lighter in the
mode-line is Ⓐ for both frontends.
2015-04-03 00:28:13 -04:00
syl20bnr
46248b1e73 New local company backends 2015-03-31 22:24:01 -04:00
syl20bnr
0fa0409523 Restore reset of local company-backends and add with-yas param 2015-03-30 00:48:41 -04:00
Tristan Hume
cb43a91a15 Add company backend add macro and use it everywhere 2015-03-30 00:01:33 -04:00
Diego Berrocal
78f8c6aae0 Change condition for company-mode detection
changed configuration-layer/package-declaredp for
configuration-layer/layer-declaredp in company-mode
2015-03-29 23:49:37 -04:00
syl20bnr
bdf1ec390b New evil state evilified + support for dynamic toggle of holy-mode
Key binding on `SPC P <tab>` in the pair programming prefix.
2015-03-22 23:14:43 -04:00
syl20bnr
b1adef0626 Heavy refactoring of company-mode layer
- Enable lazy-loading of company.
- The company layer is now agnostic of any packages which use company
- company-backends is now buffer local and contains only the backends
which are relevant for the current modes
- New macro `spacemacs|reset-local-company-backends`
2015-03-22 02:23:12 -04:00
Christoph Paulik
7cc096e213 activate inferior-python-mode in comint buffer
this enables autocompletion
This code still has the bug that point stays in the comint buffer
2015-03-14 23:57:39 -04:00
Christoph Paulik
06a2d9ba47 fixes python compile command
- now sets the compile command correctly if python buffers are switched
- moves point to end of comint buffer, useful if a breakpoint is set
2015-03-14 23:57:37 -04:00
syl20bnr
3098a1a2d8 Refactor python compile command 2015-03-14 02:59:12 -04:00
Michael Hauser-Raspe
71a3bedff6 fixing yasnippet company-mode initialisation for python 2015-02-17 22:19:14 -05:00
syl20bnr
8d0dd8b25d Update python REPL bindings to meet the conventions 2015-02-17 22:07:43 -05:00
syl20bnr
04054b75e7 Fix missing parameters for python-shell-send-region-switch 2015-02-17 22:00:26 -05:00
Daniel Wu
112fb44de4 Add function to clear python inferior buffer
Conflicts:
	spacemacs/funcs.el
2015-02-17 20:03:31 -05:00
syl20bnr
fc84f13d72 Update python key bindings to fit conventions
`m g g` and `m h h`
resolves #496
2015-02-12 22:21:45 -05:00
syl20bnr
5f0078506f Add a condition on yasnippet presence in init-company-anaconda 2015-02-10 23:33:54 -05:00
Michael Hauser-Raspe
45787dadb7 Add yasnippet to company-mode source for python 2015-02-10 23:31:25 -05:00
Andreas Liljeqvist
dd5e5c4b5a Enable smartparens in inferior-python-mode 2015-02-07 23:28:18 -05:00
Jean-Christophe Petkovich
8b0c0a5c2e Add vim-like anaconda-nav-mode bindings
Anaconda nav mode currently starts in evil mode which masks most of its
bindings. This just adds anaconda-nav-mode to the list of emacs states,
and throws in j/k bindings that make sense to me.

Fix using spacemacs|evilify

Add leader key, and next and previous error.
2015-02-04 00:53:27 -05:00
syl20bnr
ef34305403 Sort and modify key bindings in python layer packages.el
`mps` and `mpu` for pyenv have been moved to `mvs` and `mvu`
`mv` for pyvenv has been moved to `mV`
`mjtg` has been moved to `mjte`
2015-01-30 22:28:47 -05:00
Brian Hicks
08e68a3b1d Add django via pony-mode to python layer 2015-01-30 22:24:51 -05:00
Diego Berrocal
60da87b4df Add cython-mode to Python contrib layer 2015-01-23 22:11:02 -05:00
syl20bnr
22930c3d33 Change all SPC m g bindings to SPC m g g according to conventions 2015-01-20 22:32:13 -05:00
Daniel Wu
16177dfa30 resolve key binding conflict in python contrib 2015-01-14 22:48:44 -05:00
syl20bnr
ceefe88b75 Update CONTRIBUTE.md and add file headers
Also add default file header to layer templates.
2015-01-13 23:12:56 -05:00
syl20bnr
143ac02bf4 Simplify slime and eldoc config and adapt python eldoc config 2014-12-22 22:05:03 -05:00
syl20bnr
0051aa73c4 Update conventions for help/doc key bindings
`m d` goes under help commands so it is now `m h d`
2014-12-21 22:52:57 -05:00
syl20bnr
c7f9a9c07e Move hy-mode package to python layer 2014-12-14 00:19:20 -05:00
syl20bnr
2ac8658385 Fix smartparens-strict-mode for python 2014-12-11 22:16:09 -05:00
Daniel Wu
801aaf5165 fixed bug in company-anaconda initilization 2014-12-11 18:48:51 -05:00
Daniel Wu
3fd12ac280 should be pyvenv instead of pyenv 2014-12-10 19:42:02 -05:00