Commit graph

91 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
4cc407d9ed Minor header file change 2015-04-24 23:25:04 -04:00
syl20bnr
b76f4d6897 python layer: fix duplicated line 2015-04-24 23:24:36 -04:00
Ben Hayden
2eb6c93f96 Adding pudb as a python breakpoint 2015-04-24 22:19:12 -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
syl20bnr
d0b6a56b0a python layer: Update nose.el
Now compatible with virtualenv
2015-04-22 21:51:14 -04:00
syl20bnr
a4e47cfc6b YAPF configuration edition and documentation
Rename `yapf-format-on-save` to `python-enable-yapf-format-on-save`
to be more consistent with the other layer variables
2015-04-22 00:02:23 -04:00
Kenneth Love
5bbf2a84d6 python layer: Add YAPF extension for buffer formatting 2015-04-21 23:55:58 -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
zimbatm
51280cf4d8 Access github over SSL
Changes all links to github from http:// to https://
2015-04-19 00:27:48 -04:00
syl20bnr
aabdc1882c Replace defvar with setq for pre and post extensions variables 2015-04-18 23:57:27 -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
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