Commit graph

513 commits

Author SHA1 Message Date
Eivind Fonn 46446df83d Make boot file regexp more restrictive 2016-05-06 12:59:05 +02:00
Eivind Fonn ff8d4dada8 Move lua setup to init block 2016-05-05 14:15:25 +02:00
sindikat 5fab3f087d Fixed agda-post-packages -> agda-packages (develop) 2016-05-05 12:56:40 +02:00
Eivind Fonn 3561b4dcf9 Fix go/README.org 2016-05-05 12:47:04 +02:00
JAremko 11e696ad06 add var go-use-gometalinter 2016-05-04 08:34:32 +03:00
syl20bnr 17fbeaf861 haskell: move haskell-modes variable def to config.el 2016-05-01 11:41:38 -04:00
syl20bnr 425e6ba7de haskell: use package toggles for company packages 2016-05-01 11:40:54 -04:00
Tim Dysinger 5cc4e16f4d Adds company-ghci to haskell layer
You don't need ghc-mod to do code completion with ghc 7.10+. GHCI has built-in code-completion suggestions you can aske for.  This is what company-ghci does.
2016-05-01 11:30:58 -04:00
syl20bnr d94b17d57b go: use :toggle for flycheck-gometalinter package
Turn the maybe function into an always since the package
flycheck-gometalinter is installed only if gometalinter is found.
2016-04-29 22:58:23 -04:00
JAremko ae512ee8f1 Use gometalinter if present. 2016-04-29 22:52:05 -04:00
syl20bnr 354ca0b781 graphviz: use a use-package hook for org babel config 2016-04-29 22:47:03 -04:00
Christian E. Hopps 91942469b6 Enable graphviz mode in org babel blocks 2016-04-29 22:17:30 -04:00
Steven Allen 9f48b951db Fix file extension matching for filenames with newlines
- "\\.ext$" matches both "abc.ext" and "abc.ext\nsomething".
- "\\.ext\\'" matches only "abc.ext".
2016-04-29 22:16:49 -04:00
James 0d20c77798 spacemacs/layers/+lang/latex/README.org typo
Docs: Folding keybindings are enabled by `latex-enable-folding`
2016-04-29 18:12:55 -04:00
Robert O'Connor cd13e0f885 Make pug files use jade-mode since jade is now called pug 2016-04-29 18:08:14 -04:00
Fabien Dubosson a63bf2ab13 Add more information regarding tern on windows 2016-04-28 15:58:12 +02:00
Fabien Dubosson a03aff8fa1 Apply fill-paragraph after previous commit 2016-04-28 15:50:11 +02:00
Liang Zhou d2486e3956 Update tern configuration for windows. 2016-04-28 15:48:38 +02:00
NJBS 32466ca272 Update go README to include goimports prereq
see #5855
2016-04-28 15:40:26 +02:00
Fabien Dubosson ba7d050321 [autohotkey] reorder line alphabetically 2016-04-28 15:33:33 +02:00
krobelus 690d8eaed6 Fix autohotkey documentation 2016-04-28 15:32:08 +02:00
Jeremy Bi 2516703366 Enhance auto-completion support for Idris layer
Now auto-completion will ask Idris process for completions
2016-04-28 15:14:27 +02:00
Xiao Hanyu c93e47028c Set comment-inline-offset to 2 for python-mode.
Since python's PEP8 recommends two spaces for inline spaces.

Ref:
- https://www.python.org/dev/peps/pep-0008/#inline-comments
2016-04-21 22:26:18 -04:00
Christoph Paulik 643553a0fe Only disable semantic-idle-summary in python if anaconda-mode is used.
Some people have problems with anaconda mode and exclude it. This
enables them to at least have the semantic summary in their modeline.
2016-04-21 21:13:53 -04:00
Tu 34e669d49a Fix null error
char-after can return nil. For that reason, we check to ensure it does
not cause error.
2016-04-21 21:10:17 -04:00
Junhui 9d1b574554 Make pylookup.py compatible with Python 2 and 3 2016-04-21 21:08:31 -04:00
Severen Redwood 1fe5f4b6dd Fix broken keybindings in the Rust layer 2016-04-21 21:04:32 -04:00
syl20bnr a025dc8f52 clojure: move functions to funcs.el 2016-04-21 19:08:41 -04:00
sooheon e64c337b82 Remove obsolete clojure-defun-style-default-indent
clojure-defun-style-default-indent has been deprecated in favor of
clojure-indent-style. This is no longer a toggle but one of three
keywords. As it affects the way code is indented, and you should not
need to change your indentation style multiple times while editing, it
should not be a toggle. It's simple enough for the user to setq it to
desired value.

If desired, it may be added back as a completing-read selection (but I
don't think it's necessary).
2016-04-21 18:59:52 -04:00
syl20bnr dd8e845f6e clojure: add docstrings to functions 2016-04-21 18:59:28 -04:00
sooheon 39f424bd45 Fix cider tests error, and improve implementation
Error was caused by unnecessarily wrapping cider test fns in
spacemacs//cider-eval-in-repl-no-focus. Test fns do not move focus to
repl anyways, and it caused a wrong-type-argument error.

The added bindings are to more closely match cider bindings (under C-c
C-t). Now spacemacs cider test fns mirror the cider ones.
2016-04-21 18:56:45 -04:00
sooheon 02ee0f2e54 Setup normal state cider-debug for hybrid mode
Hybrid means vim-like in normal and emacs-like in insert. This is a
normal-state compatibility tweak (has no effect on insert-state
bindings), so it belongs.
2016-04-21 18:55:02 -04:00
Eivind Fonn 7f95d250db python: Move smartparens config to correct place 2016-04-18 15:56:16 +02:00
syl20bnr 9160109110 bibtex: format layer
Remove packages-config.el
Fix format of README
2016-04-17 00:37:47 -04:00
JP-Ellis 97aff9d8db Add BibTeX layer.
Integrates with org mode and LaTeX in order to manage citations.

Signed-off-by: JP-Ellis <josh@jpellis.me>
2016-04-17 00:37:47 -04:00
Matt Jaffee f0f2034a53 support underscores in Go test functions
When trying to run a single test function with LEADER m t t in a Golang
test file, spacemacs failed to find functions which had underscores in
their names. This commit simply adds an underscore to the regular
expression which spacemacs uses when searching for the current test
function.
2016-04-17 00:37:47 -04:00
syl20bnr 47776e8999 python: move semantic config and fix error with semantic-idle-summary-mode
Move all semantic related config to semantic post-init and correctly
fix the error with void function semantic-idle-summary-mode when
opening a python without the semantic layer enabled.
2016-04-17 00:37:47 -04:00
Neal D. Becker 4ca8b55819 set semantic-idle-summary-mode on hook 2016-04-17 00:37:47 -04:00
Fabien Dubosson 0aafaecc4d Revert "Guard idris company setup on the auto-completion layer"
This reverts commit f2f23e6aa1 following
the comment of syl20bnr in
f2f23e6aa1
2016-04-13 11:25:51 +02:00
syl20bnr 07852abad5 Format documenation files with doc-fmt tool 2016-04-12 23:31:38 -04:00
Christoph Paulik a175de5b7a Use py-yapf from MELPA. 2016-04-12 22:58:41 -04:00
Eivind Fonn bcea630826 Make matlab quasi-derived from prog-mode
Also make this a named function.
2016-04-12 22:48:34 -04:00
syl20bnr 6c2665e0f7 python: move disable semantic hook to anaconda init function 2016-04-12 22:38:48 -04:00
Sebastian Wiesner bd4fe19d4d markdown: Add binding for live preview mode 2016-04-11 21:00:24 +02:00
Steven Allen dab234dbd9 Use toml-mode for all cargo configs
Specifically, `Cargo.lock` and `.cargo/config`.
2016-04-11 20:49:42 +02:00
Fabien Dubosson 39eebef067 [rust] Sort keybindings alphabetically 2016-04-11 20:45:47 +02:00
Dmitri Melnikov 8c6d154ffb Add key binding for cargo fmt 2016-04-11 20:43:03 +02:00
Junhui 95be4bce44 Fix 'makefile' for pylookup 2016-04-11 20:40:42 +02:00
Fabien Dubosson ddc831e061 [python] Correct whitespaces in packages.el 2016-04-11 20:38:01 +02:00
Christoph Paulik d38ce800bd Disable semantic-idle-summary in Python mode.
Anaconda provides more useful information but can not do it properly
when this mode is enabled since the minibuffer is cleared all the time.

Fix #5564
2016-04-11 20:35:40 +02:00
Fabien Dubosson 5f93dc364f [clojure] Fix loading of eldoc-mode 2016-04-11 20:30:47 +02:00
sooheon 4c543ee25c Remove depreciated cider-turn-on-eldoc-mode
Use more general 'eldoc-mode instead. Also enable eldoc-mode in the
repl as well.
2016-04-11 20:17:52 +02:00
Amar Sood (tekacs) 14b650e81e cider-turn-on-eldoc-mode is deprecated.
Use (eldoc-mode) instead.
2016-04-11 20:16:15 +02:00
Fabien Dubosson f2f23e6aa1 Guard idris company setup on the auto-completion layer 2016-04-11 10:58:21 +02:00
Fabien Dubosson 247d7cc5bd Add back idris REPL bindings on ,si and ,' 2016-04-11 10:58:14 +02:00
Jeremy Bi ec9c18b832 Improve idris support
Squashing the 3 commits of #5688:

Commit 1
--------

Add prefix doc in idris layer

Also remove `idris-ensure-process-and-repl-buffer` as this is not an
interactive command

Add `SPC m l` keybinding for extracting lemma

Bind `SPC m c` to `idris-case-dwim`

Commit 2
--------

Fix registering idris repl

Commit 3
--------

Add basic auto-completion for idris mode
2016-04-11 10:50:34 +02:00
syl20bnr fdf74897a3 javascript: remove variable javascript-disable-tern-missing-warning
Just log the warning in the message buffer.
2016-04-07 23:13:25 -04:00
Joe Hillenbrand d3922095e2 python: register python language for org-babel 2016-04-07 23:02:55 -04:00
NJBS fa27581af8 Diminish racer since it clutters the mode-line 2016-04-07 23:00:31 -04:00
Muneeb Shaikh dc799401f7 javascript: enhance tern binary detection
Fix #4292

If tern binary isn't found, warn the user of missing binary and do not
enable tern package(else it makes emacs unresponsive).
Allow user to disable missing binary warning via configuration layer
variable `javascript-disable-tern-missing-warning`
2016-04-07 23:00:20 -04:00
Fabien Dubosson 23ce5aee84 Justify a paragraph in the scala README 2016-04-05 12:55:31 +02:00
Channing Walton 12b2de9032 Correcting scala-enable-eldoc-mode to scala-enable-eldoc 2016-04-05 12:54:45 +02:00
Fabien Dubosson 1a45754cad Visualy align some keybindings 2016-04-05 12:53:44 +02:00
Fabien Dubosson 57e91fe035 Correct more <SPC> to SPC 2016-04-05 12:52:54 +02:00
Pablo de Oliveira cc3cfcddfd Fix +lang/markdown documentation on promotion and movement keybindings
Update documentation by removing obsolete keybindings that
were deleted from +lang/markdown layer in 7b6678e.

In particular the ~SPC m =~, ~SPC m -~ and ~SPC m l [h/j/k/l]~
have been superseded by the **Movement** bindings.
2016-04-05 12:29:33 +02:00
Fabien Dubosson 80195d15c7 Justify a paragraph in the go README 2016-04-05 12:28:11 +02:00
james sangho nah 1773cca021 Fix minor typo in Go README 2016-04-05 12:22:01 +02:00
Diogo Biazus a3deae88d0 Setup flycheck-purescript for purescript layer 2016-04-04 22:45:04 -04:00
syl20bnr 74fb719b44 go: make go-tab-width a regular layer variable 2016-04-04 22:36:51 -04:00
james sangho nah 4129264302 go: new variable `go-tab-width' 2016-04-04 22:34:17 -04:00
syl20bnr 99d9993171 Scala: fix ensime-typecheck-current-file to ensime-typecheck-current-buffer 2016-04-04 21:52:45 -04:00
Muneeb Shaikh c9ef2f6f3c python: explicitly autoload py-yapf-buffer
Since it's a local package, there's no autoloads file. Adding it to
:commands to let use-package add autoload for it.
2016-04-04 21:46:23 -04:00
hujianxin fdf73e9234 Clojure: Fix a error caused by mess writing.
In this case, `mode` should be fixed to `m` .
2016-04-04 19:42:57 -04:00
syl20bnr 1243d0096c latex: remove commented code 2016-04-03 00:37:50 -04:00
syl20bnr e511a1211c python: lazy load py-yapf 2016-04-03 00:36:06 -04:00
syl20bnr 07b3bb051e scala: lazy load sbt-mode 2016-04-03 00:35:35 -04:00
syl20bnr 63e1db9923 clojure: move command prefix names and remove some duplicated code 2016-04-03 00:27:44 -04:00
syl20bnr 173e2a5421 Move all prefix names from config.el to init functions 2016-04-03 00:12:28 -04:00
Richard Wei 8a6cfadffb Corrected key bindings for major mode
Key binding behavior are not consistent with the documentation. Since the bindings are under major mode, they should not have the prefix 'm'.
2016-04-01 00:26:20 -04:00
Diego Alvarez 9b460f60e4 Add function to insert types and add yank type at point
- `, i y` Add function to yank type at point but just yank type name without full
package

- `, r a` Add function to insert type for declaration,
see `https://github.com/ensime/ensime-emacs/pull/390/files`
2016-04-01 00:26:20 -04:00
syl20bnr b891e82362 scala: reformat TOC of README.org 2016-04-01 00:26:20 -04:00
Channing Walton 7466fdc678 optionally enable ensime
a new variable, scala-auto-start-ensime, determines if ensime starts
when a scala file is loaded.

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space
2016-04-01 00:26:19 -04:00
syl20bnr 3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
Caleb Jones d983bf7ec7 Improve Leiningen installation instructions in Clojure layer
The previous installation instructions suggested that you install lein
via your OS package manager, but since the minimum required version to
run the plugins is 2.5.2 and some OS package managers are still
packaging versions in 1.x, linking to the official install instructions
is better.

Fixes #5612
2016-03-30 18:52:31 -04:00
Paul Schorfheide 0f76d52166 Add hoogle to list of packages for haskell layer 2016-03-30 18:49:18 -04:00
syl20bnr 6018ce6370 faust: fix image link in README.org 2016-03-30 17:51:16 -04:00
syl20bnr bf9f281269 ruby: use :toggle and fix location or ruby-mode 2016-03-27 15:52:43 -04:00
syl20bnr 6e0a76f8ca go: set location property of go-oracle to site
instead of local
it had no bad side effect but `site` is the correct value for a package
that comes from somewhere else on the system.
2016-03-27 12:22:14 -04:00
syl20bnr 5495c8dff2 python: correctly mark python package as built-in 2016-03-26 03:24:35 -04:00
syl20bnr 16afe67907 core: enhance lazy installation of layer
Now Spacemacs will ask for layer installation when opening a file with
a known file type.
The auto-mode-alist entries are added by the file auto-layer.el in
the layers directory.

Easy insert of forms for lazy initialization can be done with the
interactive function configuration-layer//insert-lazy-install-form.

Change default value of dotspacemacs-enable-lazy-installation to t.
2016-03-25 01:03:37 -04:00
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