Commit graph

74 commits

Author SHA1 Message Date
syl20bnr
7e23a62cd7 python layer: update README with anaconda-mode prereq install instructions 2015-04-12 11:26:19 -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
syl20bnr
8f6f9dcff4 python layer: add documentation for SPC m h d 2015-04-04 00:19:17 -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
5dd7383821 python layer: fix pylookup 2015-04-02 00:00:36 -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
Daniel Wu
41efc0e263 python layer: Update README 2015-03-23 21:54:06 -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
Christoph Paulik
ca7048c971 Add python compile command
- automatically changes compile command to
  ```python (buffer-file-name```
  for python buffers
- automatically starts comint mode in python mode to allow interaction
  with debugger
2015-03-14 02:56:51 -04:00
syl20bnr
96723eb7eb Update wrong code snippets in READMEs 2015-02-17 22:36:12 -05: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
1a02477d51 Remove prefix commands in python and ruby layers
Resolves #569
2015-02-12 22:08:07 -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
Brian Hicks
4834a7949c contrib(python): document Django keys 2015-02-01 22:55:06 -05:00
syl20bnr
579f8eb649 Add django logo in python layer README 2015-01-30 22:42:32 -05:00
syl20bnr
aa5b9e4d3b Update python layer README with Django support 2015-01-30 22:41:55 -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
2554d16c16 Rename config-system.el to configuration-layer.el 2014-12-25 14:45:27 -05:00
syl20bnr
fd0e9abbe7 Move layer images into img directories 2014-12-24 01:03:49 -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