Commit graph

373 commits

Author SHA1 Message Date
syl20bnr 130cd48d03 graphviz: update key bindings and smartparens support
Change the key bindings:
- Remove SPC m p
- Better support for double leader keys for preview (,, and M-m M-m)
- Graph indentation on SPC m =

Add support for smartparens when it is used for {} pair.

Update the doc.
2016-03-24 21:54:54 -04:00
luxbock 87db0174a2 Adds Graphviz layer
- Uses a forked version of graphviz-dot-mode.el with a local install.
  Upstream PR: ppareit/graphviz-dot-mode#18
2016-03-24 19:46:47 -04:00
syl20bnr 8266b5f98d plantuml: update config for org babel and delete packages-config.el 2016-03-23 10:29:24 -04:00
syl20bnr 8e6fd86577 faust: refactor layer
Add a funcs.el.
Fix `use-package` usage.
Modify key bindings to meet conventions.
Prefix function with `spacemacs/`
2016-03-21 20:33:35 -04:00
Bart Brouns 3a9e8c1723 add faust-layer, remove faust from extra-langs
My first spacemacs layer, total elisp newb.
Does what it says in the README, with one bug:

I have auto-completion-enable-snippets-in-popup t in my .spacemacs
In faust files, only yas-keys that have a similar word in an open buffer
show up in the company menu.

Example: with no open buffers ne doesn't show a company menu,
if a file has the word nent in it, I get a menu with ne -> nentry (the snippet) and nent.

having ne$AnyTwoCharacters in the file also works, but just ne or nen doesn't.
2016-03-21 19:39:49 -04:00
syl20bnr 82fdd9a511 Use evil in holy-mode
Motivation

While disabling Evil in holy-mode makes its implementation shorter and
sounds elegant on the paper, in practice it puts a big burden on the
configuration parts which need to know if Evil is enable or not. This is
a bad separation of concerns and the bunch of fixes that we were forced
to do in the past weeks shows this issue. Those fixes were about
removing the knowledge of the activation of Evil by implementing new
dispatching functions to be used by layers, this is cumbersome and makes
Spacemacs layer configuration more subtle which is not good. There was
additional bad consequences of the removal of Evil state like the
impossibility to use Evil lisp state or iedit states, or we would have
been forced to implement a temporary activation of Evil which is
awkward.

Instead I reintroduce Evil as the central piece of Spacemacs design thus
Evil is now re-enabled in holy-mode. It provides the abstraction we need
to isolate editing styles and be able to grow the Spacemacs
configuration coverage sanely. Layers don't need to check whether the
holy mode is active or not and they don't need to know if Evil is
available (it is always available). We also don't need to write
additional dispatching functions, this is the job of Evil, and I think
it provides everything for this. Ideally configuration layer should be
implemented with only Evil in mind and the holy-mode (and hybrid-mode)
should magically make it work for Emacs style users, for instance we can
freely use `evil-insert-state` anywhere in the code without any guard.

Evil is now even more part of Spacemacs, we can really say that
Spacemacs is Emacs+Evil which is now an indivisible pair. Spacemacs
needed this stable API to continue on the right track.

While these changes should be rather transparent to the user, I'm sorry
for this experimental period, I failed to see all the implications of
such a change, I was just excited about the possibility to make Evil
optional. The reality is that Spacemacs has to embrace it and keep its
strong position on being Emacs+Evil at the core.

Implementation

- insert, motion and normal states are forced to emacs state using an
advice on `evil-insert-state`, `evil-motion-state` and
`evil-normal-state` respectively. These functions can be used freely in
the layer configuration.
- A new general hook `spacemacs-editing-style-hook` allow to hook any
code that need to be configured based on the editing style. Functions
hooked to this hook takes the current style as parameter, this
basically generalize the hook used to setup hjkl navigation bindings.
- ESC has been removed from the emacs state map.
- Revert unneeded changes
  - Revert "evil: enter insert-state only from normal-state"
    commit bdd702dfbe.
  - Revert "avoid being evil in deft with emacs editing style"
    commit f3a16f49ed.

Additional changes

All editing style packages have been moved to a layer called
`spacemacs-editing-styles`

Notes

I did not have time to attack hybrid mode, I should be able to do it
later.
2016-03-13 21:16:55 -04:00
syl20bnr 6b5ed8245b c-c++: fix c-c++/post-init-semantic 2016-03-10 23:13:19 -05:00
Eivind Fonn 411be27ed1 Remove enable-semantic-mode function
- No reason to require semantic manually
- Don't set submodes in a hook function (hard to change for user)
2016-03-10 23:13:19 -05:00
Eivind Fonn 0ca02549dc Move srefactor toggle to owning layer 2016-03-10 23:13:19 -05:00
Tu Do ceafd688f3 srefactor requires Emas 24.4 or above, not older 2016-03-10 14:22:06 +01:00
Fabien Dubosson b9cd9c1cd8 Remove rainbow-delimiters-mode from mode-specific hooks
`spacemacs` now handles `rainbow-delimiters-mode` by adding it to the
`prog-mode-hook`, if wanted by the user. Some layers are adding it on
their own mode-hook, having for effect that `rainbow-delimiters-mode` is
called twice, which disable it.

This commit remove these layer-specific definitions of
`rainbow-delimiters` as it is now handled by the `spacemacs`
distribution. It also takes care of running `prog-mode-hook` in modes
that are not derived from it.

Fixes #3902
2016-03-09 20:23:29 -05:00
syl20bnr 01f9879d7f octave: explicitly list it as a built-in package 2016-03-06 17:48:51 -05:00
syl20bnr 1bc773cc5f elixir: fix lazy installation configuration 2016-03-05 23:25:00 -05:00
Adam Sokolnicki c83a553e5f Fix chruby in the ruby layer
This commit replaces the code used for finding out the ruby version to
use with `chruby-use-corresponding`.
2016-03-05 20:54:57 +01:00
Eivind Fonn 86286574a3 Move rake popwin config to post-init-popwin 2016-03-05 20:54:17 +01:00
Muneeb Shaikh 713e85bc42 ruby: add popwin config to *rake-compilation* 2016-03-05 20:52:18 +01:00
Eivind Fonn 5360fb31f8 Fix broken ensime refactor bindings 2016-03-04 16:06:22 -05:00
Malchevskiy Misha d91d907d5d Fix cider-pop-back function name
Alias `cider-jump-back` was deprecated and then removed from CIDER here: 705133f2bd
2016-03-04 16:06:08 -05:00
Alejandro Catalina Feliú d3833db77b clojure: add clojure-snippets to clojure layer
This will add some nice snippets right out of the box.
2016-03-03 20:54:06 +01:00
Allen Li 974c92e758 Make pylookup use std completing-read function 2016-03-03 20:51:18 +01:00
Fredrik Bergroth a1167b8821 shell-scripts: Enable flycheck in sh-mode 2016-03-03 20:43:32 +01:00
justbur 39e06feba9 Use unless-debug version of condition-case
It's not possible to get full backtraces in these instances when an
error is signaled, and I think we should generate full backtraces when
debug-on-error is enabled as a general rule.

I had to make this change at one place to track down the root of problem
2 in #5200.
2016-03-03 20:30:30 +01:00
Eivind Fonn 733434718d Fixup rake config 2016-03-01 18:54:56 +01:00
Adam Sokolnicki c2ec8e57c9 Add rake package to the ruby layer 2016-03-01 18:52:33 +01:00
Johan K. Jensen be2c471397 Fix inline code blocks
Add zero-width space because emphasis blocks can't start/end with
a comma, an apostrophe or a quote.
2016-03-01 18:51:13 +01:00
David King 6b7aee200b Update Scheme docs to curl over https
Felt more comfortable running this over https. Not sure what the risks
are of piping files into a root privilege tar process, but the server
supports it so may as well use it.
2016-03-01 18:50:32 +01:00
Tin Tvrtković 1eabbb453a Fix Java layer command documentation.
The "Open project management buffer" shortcut is actually SPC m p p, as per 
https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/java/packages.el#L121
not SPC m p s which does nothing.
2016-03-01 18:48:32 +01:00
Eugene Apollonsky e5e069bbf0 Rename: ensime-refactor-inline-local -> ensime-refactor-diff-inline-local 2016-03-01 18:46:54 +01:00
Kechao CAI f5924d1acb Bind TeX-command-run-all to ~SPC m a~ 2016-02-27 15:00:10 +01:00
Kechao CAI c3fae7dd05 Latex layer: Add shortcuts for fill and comment 2016-02-27 15:00:08 +01:00
Eivind Fonn 4ed7ebe49d Update previous comment 2016-02-27 14:56:42 +01:00
Andrew Cates b6a27e931b fix typo for js2-imenu extras mode 2016-02-27 14:56:21 +01:00
Boris a18998ccfd update lua readme
Add a note about luacheck
2016-02-25 20:32:12 +01:00
Patrik Plihal 097887104f add 'cider-apropos functionalty to clojure layer 2016-02-25 20:31:31 +01:00
Severen Redwood 7900862a64 Mention support for Slim and Jade templates in the HTML layer docs 2016-02-25 20:30:48 +01:00
darkfeline 6d331bc5a4 Fix pylookup binding
Fix pylookup binding
2016-02-24 23:18:56 -08:00
Rodrigo Setti 45043e7142 Add prefix names for racket-mode key bindings 2016-02-23 20:56:24 +01:00
mahinshaw 8029222b26 Add mapping for switching between repl connections. 2016-02-23 20:51:07 +01:00
panicbit 8afd46a1c1 Add Rust support in markdown files 2016-02-23 20:48:13 +01:00
justbur e69d5500bc evil-jumps: Fix old function names
evil-jumper--push is now evil--jumps-push
2016-02-23 20:45:18 +01:00
Alejandro Catalina bdd702dfbe evil: enter insert-state only from normal-state 2016-02-23 20:42:59 +01:00
Fredrik Bergroth 48d05d3182 rustfmt: Remove obsolete package
This package was merged into rust-mode.
2016-02-23 20:42:25 +01:00
Eivind Fonn cdd404bbeb Use :toggle for srefactor 2016-02-23 20:38:50 +01:00
Magnus Therning 0455f215a0 c-c++: Add notes on related layers.
Signed-off-by: Magnus Therning <magnus@therning.org>
2016-02-23 20:37:16 +01:00
Magnus Therning fe99ad671e c-c++: Remove srefactor from static package list.
It should only be added to the list if emacs version > 24.4.

Signed-off-by: Magnus Therning <magnus@therning.org>
2016-02-23 20:37:16 +01:00
Magnus Therning 6e64e08f06 c-c++: Set paths for C headers from clang.
Signed-off-by: Magnus Therning <magnus@therning.org>
2016-02-23 20:37:16 +01:00
Alejandro Catalina d68542e7da cider: yet another missed occurrence 2016-02-18 23:30:38 -05:00
syl20bnr 2fef64ea7d Remove conditions in packages-funcs.el
Package list is not yet available when packages-funcs.el files are
loaded.
2016-02-17 16:13:24 -05:00
JAremko 8628e45fd3 add typescript fmt
fixed typo

reordered packages

made formatting off by the default

fixed docs

fixed docs... Again

fixed docs... Like 3-d time

fixed docs... Did I?

I CAN DO IT!

hooked named function instead of lambda
2016-02-17 00:05:47 -05:00
Syohei YOSHIDA 4227404c29 Disable company-quickhelp-mode only when it is already enabled 2016-02-17 00:04:22 -05:00