Commit graph

976 commits

Author SHA1 Message Date
syl20bnr 8f1a5d6fd5 coq: fix some configuration
- delete some diminish expressions which are not related to PG and user
  spacemacs|hide-lighter instead of spacemacs|diminish
- move company related configuration to the correct place
- move setq expressions to :init blocks to allow users to easily change them
2017-02-12 23:45:56 -05:00
syl20bnr 3da2f3702e emacs-lisp: don't use custom-set-variables
As it make evil to error when the delq form is written the customize file,
instead we call the set method manually and it works fine.

Would be better and more future proof to curry the set function into a named
function of 0 arity for evil-intercept-maps custom setting.
2017-02-12 22:59:26 -05:00
syl20bnr 76b0d3c48a csharp: comment typo 2017-02-12 22:24:25 -05:00
syl20bnr fe168f07b3 coq: update key bindings and README
README:
- add `SPC m` prefixes to follow the style of the other READMEs
- Sort key bindings alphabetically

Key bindings changes made to be more mnemocnic and/or to better fit the other
key bindings of other layers:

- SPC m p b --> SPC m p p (show prover process buffer)
- SPC m p c --> SPC m p i (interrupt prover process)
- SPC m p x --> SPC m p q (quit prover process, maybe SPC m p k for kill would
  be better ?)

- SPC m a p --> SPC m a a to print query
- SPC m a n p --> SPC m a A to print query showing all
- SPC m a i p --> SPC m a i i to print query showing implicits
- Ask showing all bindings use the same keys as regular Ask but the last key
  is capitalized, example: SPC m a b (ask about) and SPC m a B (ask about
  showing all)
- Ask showing implicits are still on SPC m a i (we could also use Control key,
  for instance SPC m a b (ask about) and SPC m a C-b (ask about show implicit),
  it depends on how frequent showing implicits are used).

- SPC m g . --> SPC m g l (go to end of Locked command)
- SPC m g d --> SPC m g g (using the jump handlers facility of Spacemacs)
- SPC m g a --> SPC m g s (to go to start of command)
2017-02-12 22:24:25 -05:00
Jeremy Bi 8b72130fc5 Add coq layer 2017-02-12 21:31:44 -05:00
syl20bnr d97143be08 emacs-lisp: remove SPC g f as it is already available with SPC j f 2017-02-12 13:49:40 -05:00
syl20bnr aa6cdd938e emacs-lisp: update README and add an interactive edebug quick start 2017-02-12 13:48:23 -05:00
syl20bnr a0bcbbd38a Add conventional evilified key bindings for edebug-mode 2017-02-12 13:48:02 -05:00
syl20bnr 87cd00eac7 conventions: update debug conventions
Step in and Step out are now, i and o respectively.
Inspect a value is now v.
Next step is now s.

These new conventions better fit evilificiation.
2017-02-12 13:02:55 -05:00
syl20bnr 36b6b29cde Fix evilification of edebug-mode-map 2017-02-12 12:50:07 -05:00
syl20bnr 6e713ed89f emacs-lisp: add support for debugger and edebug
Make edebug key bindings work in normal state.
Add evilification of debugger stack trace buffers.
2017-02-11 17:23:14 -05:00
syl20bnr 64e0787123 emacs-lisp: add SPC m g f to go to a selected known function definition 2017-02-11 17:23:14 -05:00
syl20bnr f6ccc1eb6f Add JR programming language layer 2017-02-10 14:48:37 -05:00
Tim Jaeger acaf0e31f5 Implement layer for developing in the Forth language 2017-02-09 18:00:32 -05:00
syl20bnr cbab7cac59 markdown: add SPC m i t key binding to instert toc 2017-02-09 17:02:50 -05:00
d12frosted 57e653a221
minor improvements in elixir README file 2017-02-03 11:10:40 +02:00
denin 52ea26a052
elixir: add support for credo
There was no flycheck-credo package in the layer.
Although it was described in documentation, how to install credo.
This commit fixes documentation and adds flycheck-credo package.
2017-02-03 11:09:07 +02:00
syl20bnr 6c1f221196 restructuredtext: mention auto-complete-rst to README 2017-02-02 15:01:07 -05:00
syl20bnr 42b2c4a144 restructuredtext: fix auto-complete conflicts with flyspell and linum 2017-02-02 14:56:13 -05:00
syl20bnr a1e63424e2 reST: Extract sphinx specific config to a stand alone sphinx layer 2017-02-02 14:55:18 -05:00
syl20bnr 7ced78089d restrucutredtext: rename deprecated extensions folder to local 2017-02-02 14:37:19 -05:00
syl20bnr 56377cf1b3 Rename ReST layer to restructuredtext and clean up layer
rest can be confusing since there is already a restclient layer.
2017-02-02 09:37:34 -05:00
Wei-Wei Guo 9399de0ddc Add ReST layer 2017-02-02 09:09:31 -05:00
d12frosted bb3e5c8289
fix go layer headers 2017-02-01 16:06:00 +02:00
d12frosted 2319bdc350
add note about flymd in markdown layer 2017-02-01 16:00:43 +02:00
Benedek Fazekas 970acddacf Clojure refactor: replace cycle coll with convert to coll
Cycle collection type was recently removed from `clj-refactor` as the
feature was migrated and rewritten in `clojure-mode`. The new feature
lets the user convert a collection into a specific collection type
instead of cycling through them.

To added shortcuts correspond to the shortcuts of this feature in
`clojure-mode` and placed in the refactor submenu.
2017-01-26 12:09:50 +00:00
d12frosted ab878bd7ac
update cider keybindings doc 2017-01-23 13:25:48 +02:00
Ivan Plyusnin 15e86700ec
Fix number of arguments in calling cider-test- funcs 2017-01-23 13:21:38 +02:00
syl20bnr cf5dac00ad core: move and rename spacemacs//get-package-directory
Move it to core-configuration-layer.el
Rename it to configuration-layer/get-elpa-package-install-directory
2017-01-17 00:20:59 -05:00
syl20bnr 70c6fcef02 common-lisp: add SPC m h i to inspect a definition 2017-01-12 22:33:09 -05:00
Michał Herda e12f469aa2 Layer common-lisp - set jump handler to SLIME-EDIT-DEFINITION
https://github.com/syl20bnr/spacemacs/issues/8043

"Go to definition" should go to the definition - meaning, where the function is defined in the source code.

I am for changing the default keybinding to `slime-edit-definition` because it fulfills this - allows the user to see the source code for a given function.

`slime-inspect-definition` does not open the source code - it opens the SLIME inspector with the function **object** open in the inspector. While the function **object** contains some valuable data, it does not contain the *definition* itself - which is what the user wants in this case.
2017-01-12 22:29:54 -05:00
ilia acb2d379c0 Fix cider and cider-repl modes in company configuration 2017-01-07 00:21:45 +03:00
Eivind Fonn 3bbeaee2b2 Don’t configure company in init-cmake-mode
This is already taken care of in post-init-company
2017-01-06 12:01:18 +01:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
zilongshanren c22991d587
remove un-intended quote in company-anaconda 2017-01-05 08:58:01 +02:00
Brent Taylor 1ff7c10f19
Fix python path with virtualenv on Windows in Python nose package 2017-01-04 22:38:25 +02:00
Saulius Menkevičius 414396595b
Fix issue with jump handler in omnisharp-mode where the handler is async
This fixes an issue where default jump handler, like dump-jump-go runs
in sync and omnisharp-go-to-definition is not able to actually go to
definition until it completes thus slowing down the completion process.

A similar issue (for C++) was fixed in syl20bnr/spacemacs#6904
2017-01-04 22:35:45 +02:00
Steven Allen 9fb2634817
Fix eldoc initialization in typescript layer. 2017-01-04 22:04:25 +02:00
syl20bnr 74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
syl20bnr bdd4e6c23f typescript: move eldoc config to init function 2017-01-02 00:12:51 -05:00
syl20bnr c725823e73 javascript and react: reformat code and move funcs to funcs.el
Some conventional cleanup.
Note that the function `spacemacs/js2-refactor-set-key-bindings` has been
removed since it is not used anywhere.
2017-01-01 22:45:23 -05:00
syl20bnr ab34cc2d9d html: set company min. prefix length to 0 for company-web backend
for more info: https://github.com/osv/company-web/issues/4
2016-12-31 00:14:30 -05:00
syl20bnr e1efeea5d6 html: fix addition of company backends
Move add-company-hook calls to correct init functions (only css backend is from
company package, the others are from company-web).

Correctly add company backends for jade and slim. Jade has been renamed to
Pug , there is no guarantee at all that jade references still work. To check.
2016-12-31 00:01:58 -05:00
ralesi 81b782e5df company-web: defer company-web loading 2016-12-30 23:23:43 -05:00
Koray Al aaefaa3573
Added auto load virtualenv support via .venv file
The `pyvenv-mode` doesn't provide a list of available virtual
environments. So it's not currently possible to check if the
provided virtualenv name is available
2016-12-27 09:55:28 +02:00
syl20bnr a5c87776d1 emacs-lisp: fix eval-last-sexp and add SPC m e C
Important evil advices for eval-last-sexp were removed for smartparens users,
it made eval-last-sexp not working correctly in normal state by evaluating the
sexp before the evil cursor and it was impossible to evaluate an sexp when the
cursor was on the last character of a line.

Also add SPC m e C which will execute the first defun or setq sexp encountered
before point.
2016-12-24 12:06:17 -05:00
Michal Muskala 831b01fd8e
Prevent from inserting too many "end"s in Elixir
Closes #8030
2016-12-23 14:02:52 +02:00
syl20bnr 5d73a500c0 markdown: hide MMM linter in mode-line 2016-12-19 10:50:14 -05:00
syl20bnr cb98c42ed8 markdown: correctly enable mmm-mode and add support for ini files 2016-12-19 10:46:46 -05:00
Corey Grunewald b67118c8ca
Mark tern command as async. Fixes #7591. 2016-12-18 11:44:32 +02:00
d12frosted 628562f0f7
add glsl-company to shaders layer 2016-12-14 20:21:28 +02:00
Danny Navarro 6288b28bb0
Remove sbt-hydra rename wrapper
It has been already renamed as expected upstream.
2016-12-12 08:56:06 -03:00
Swaroop C H a0aad96050 Add key binding to run current Rust file
Meant for a quick-prototype flow only - use `spacemacs/open-junk-file' to
open a junk Rust file, type in some code and quickly run it.
2016-12-09 18:14:22 +02:00
d12frosted 20741006b3
add missing header in lua/packages.el file 2016-12-02 20:42:11 +02:00
Justin Burkett 7bf00ad878 which-key: Update usage of replacement alists
See 19186917eb
2016-11-25 12:32:10 +02:00
Svyatoslav Gryaznov 32f9f97970 Fix typo in Agda's packages.el 2016-11-14 14:40:23 +02:00
bmag 58c8fd515a rust: respect help-window-select, small fixes
- spacemacs/racer-describe to respect help-window-select
- replace evilified-state-evilify{,-map} and move to :config
- change funcs.el from dos format to unix format (newlines)
- modify spacemacs-jump-handlers-rust-mode only once
2016-11-12 16:20:28 +02:00
NJBS f786c1fa88 Rust: Add binding for describing symbol at point 2016-11-12 16:20:28 +02:00
Dennis Brakhane a13471447f
Update ensime variable name
user-emacs-ensime-directory was renamed to ensime-startup-dirname
2016-11-12 14:58:17 +02:00
ksjogo 12284e16b0 Removed deprecated insert-string and replace by insert 2016-11-11 15:23:49 +02:00
pnagy bee9ecc858 fix void-variable company-backends-scheme-mode 2016-11-04 10:40:39 +01:00
Francesc Elies 29049dd3ac
Update README.org
Uses flycheck instead of flycheck-typescript-tslint
2016-11-03 19:00:53 +02:00
Eivind Fonn f94ca2a8cc go-guru on MELPA 2016-10-26 09:48:24 +02:00
yangguang760 67ac25c80a fix debug string for python3
fix debug string for python3:
ipdb  ->  ipdb3
pudb  -> pudb3
2016-10-23 19:44:35 +02:00
Romanos Skiadas fa16fa90e0 Fix eclim documentation in Java layer
`eclim-eclipse-dirs` is a list, not a string.
2016-10-23 19:44:35 +02:00
Aldric Giacomoni 81388bc1e4 Scala readme: code block for scala-enable-eldoc 2016-10-23 19:44:35 +02:00
Chen Zhang 9da665dd82 ipython: Update matplotlibrc
It comes from an offical "UserWarning":
> axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter

But axes.prop_cycle receive a new format of parameters, this will fix it.
2016-10-23 19:44:35 +02:00
Eivind Fonn 9c966a8d8f Simplify python test runner setup 2016-10-23 19:44:35 +02:00
syl20bnr 7ee75bb752 nim: fix key bindings in README 2016-10-18 22:49:34 -04:00
YeJun Su 2f263e998c
Remove check for GOPATH when init go-guru
go-guru.el has been moved to https://github.com/dominikh/go-mode.el

FYI, 69f6f5b782
2016-10-18 10:47:40 +03:00
syl20bnr fd07fd47ef New package insert-shebang 2016-10-17 15:32:43 -04:00
Jacob Lewallen cbb195141c Match entire path after -I for passing to expand-file-name.
Otherwise I was seeing these transformations:

invocation-dir = C:/Some/Directory

-I../another/directory
-IC:/another/directory

Became

-Ic:/Some/Directory./another/directory
-IC:/SOME/DIRECTORY/C:/another/directory
2016-10-17 20:11:49 +02:00
Shanavas M 5d8f7bd7c6 Add missing prefices for js2-mode 2016-10-17 20:08:08 +02:00
Aaron Jensen 96022308d1 elixir: flycheck on idle
`flycheck-mix` now uses `flycheck-buffer-saved-p` so it is safe to
flycheck on idle: https://github.com/tomekowal/flycheck-mix/pull/2
2016-10-17 20:07:23 +02:00
JAremko fa93c84cab Describe scss-lint setup 2016-10-17 20:05:16 +02:00
Tu Do 866d95baaf Common Lisp: enable fuzzy matching with comapny 2016-10-17 19:51:06 +02:00
carbohydratesn ca5ea34196 Completed instructions for a quick start with boot
Moved to develop branch, original pull request -

https://github.com/syl20bnr/spacemacs/pull/7003

As an absolute beginner, this took a while to figure out, and eventually required reading through Cider's source files.

Currently, there must be a build.boot file present - an empty one works - if you want to start a repl through cider with boot.

https://github.com/clojure-emacs/cider/issues/1835
2016-10-17 19:46:45 +02:00
Eivind Fonn b54b61e926 CSS-mode derives from prog-mode in Emacs 25 2016-10-17 14:38:50 +02:00
bmag 699e78f38a python: really start REPL also in emacs 25.1
Make `python-start-or-switch-repl` start a REPL when necessery also in
Emacs 25.1. Previously in Emacs 25.1 it wouldn't do anything if the REPL
wasn't started already.
2016-10-17 14:12:46 +02:00
Zhang Chen eec4f00147 axes.color_cycle is deprecated
It comes from an offical "UserWarning": axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter
2016-10-17 14:04:19 +02:00
Eivind Fonn f2acb02a92 Fix whoopsie from previous commit 2016-10-17 14:01:36 +02:00
Eivind Fonn 48dc7776ae Some nim layer fixes
- Define nimscript backend list
- Use jump handlers API
2016-10-17 14:00:15 +02:00
Tu Do 763d6f5555 Improve Nim layer
- Add support for better completion using Nim's IDE tool, `nimsuggest`.
- Add key binding for goto definition and jump back.
- Eldoc integration (with the nimsuggest-mode)
- Update documentation.
2016-10-17 13:58:12 +02:00
Rudi Grinberg 889b68110c OCaml layer: add ignored extension
Add cmti extension to list of ignored completion exts
2016-10-17 13:55:17 +02:00
Corin 73ff3de8d2 Fix typo
feature -> features
2016-10-17 13:47:49 +02:00
Diego Alvarez 2279c2c80e scala - update scalastyle-flycheck instructions 2016-10-17 13:41:19 +02:00
Jim Deville 194113a6eb update docs with go-guru info 2016-10-17 13:36:40 +02:00
Eric Drechsel f609a25585 go: replace deprecated oracle with guru
change to prefix for guru commands from `mr` to `mf`
to separate from rename commands. Better prefix?

Fixes #6772.
2016-10-17 13:36:31 +02:00
deb0ch 6a6cf57713 better-defaults layer: update emacs logo 2016-10-17 13:34:40 +02:00
Stephen Sugden 119972ab81 Fix usage of gorename on symlinked projects
I often work on Go projects under a symlink, e.g. ~/Code/project points to
$GOPATH/src/github.com/grncdr/...

This works fine 99% of the time, but gorename doesn't follow symlinks in order
to get the "truename" of a file, so it will complain about
~/Code/project/somefile.go not belonging to any package. This fixes that
situation by ensuring that gorename is only passed the true filename.
2016-10-17 13:33:35 +02:00
bmag bbd812991a Refactor spacemacs/python-execute-file 2016-10-17 13:26:40 +02:00
yanchengyang 9e52974e90 remove invalid keybindings of ensime 2016-10-17 13:22:10 +02:00
bmag 6e896d3796 Restore fix for #2569 2016-10-17 13:19:46 +02:00
Alexey Kotlyarov a7d8a4f3db Support wdb for debugging Python
wdb (https://github.com/Kozea/wdb) is a Web-based debugger
for Python. Use it if installed for python-toggle-breakpoint.
2016-10-17 13:15:54 +02:00
Carlo Sciolla 9d3710a05f Updated the plantuml plugin to use plantuml-mode instead of the now deprecated puml-mode 2016-10-17 08:11:11 +03:00
Robert O'Connor 22809a8dfa Fix a typo introduced in 42a33f3ae8 2016-10-17 08:00:33 +03:00
syl20bnr d15050b512 python: update anaconda dependencies and reorganised the deps section 2016-10-16 23:05:56 -04:00
syl20bnr 42a33f3ae8 elixir: add support for org-babel
Closes #1918
2016-10-16 22:25:04 -04:00
Tu Do 6cb349e70c Add more features for D language
Add `company-dcd` package that uses DCD (a completion daemon for D) to
provide better IDE features:

- Better code completion.
- Jump to definition.
- Search symbol references.
2016-10-14 12:33:13 +03:00
Romanos Skiadas b27a073f7f Yaml layer: enable flycheck 2016-10-14 12:32:30 +03:00
d12frosted e15fb35bd8 add docs for ruby minitest mode 2016-10-14 12:20:26 +03:00
Eivind Fonn f0803bc7f9 Explicitly add company-tide as backend 2016-10-13 10:55:17 +02:00
Eivind Fonn 7869154e9d Define typescript company backends 2016-10-13 08:49:13 +02:00
Pawan Dubey f592beda02
Add Minitest support to Ruby Layer
Added support for Minitest to the Ruby layer with the
minitest-mode package. Defined appropriate keybindings.

Fixes syl20bnr/spacemacs#6969
2016-10-11 22:18:22 +03:00
Eivind Fonn 200fb764aa Make python tab-width configurable 2016-10-11 20:01:24 +02:00
syl20bnr 703f78c2b8 Cleanup pass on file spacemacs-base/funcs.el
- Apply `/` and `//` rules (double / is for private functions)
- Add missing `spacemacs/` prefixes
- Move functions used outside of spacemacs-base layer to
  core/core-funcs.el
- Remove unused functions

Commit originally intented to only rename linum-update-window-scale-fix
to spacemacs/linum-update-window-scale-fix :-)
2016-10-09 13:14:41 -04:00
Eivind Fonn 669dce7c2d Handle typescript FIXME 2016-10-08 19:36:50 +02:00
drew.okane 197eb982b2 Add Clojure to org-babel-load-languages 2016-10-08 19:30:05 +02:00
Jeremy Bi 927cccbd99 Enable auto-completion in Agda layer 2016-10-08 19:25:08 +02:00
Eivind Fonn ff95f2a9ab typescript: Fix potential nil buffer-file-name 2016-10-07 12:14:29 +02:00
Robert O'Connor 405e90d69a
Remove support for jade-mode; add pug-mode
Jade has been deprecated and there is little need to support jade to
support jade anymore. If people need jade-mode, they can install the
package themselves and configure it. Pug is the renamed Jade project.
2016-10-03 21:15:17 +03:00
Robert O'Connor 8aa42a0719
Enable orgtbl-mode in markdown-mode
This makes working with tables much nicer.
2016-10-03 21:12:23 +03:00
syl20bnr a3750146c3 clojure: move SPC m s k to SPC m s C 2016-10-03 00:23:52 -04:00
syl20bnr 0477a4dd4c shaders: fix readme and add an image 2016-10-03 00:23:15 -04:00
syl20bnr ffc312b2b1 scala: move SPC m b h to SPC m b .
Per convention for transient states
2016-10-03 00:23:15 -04:00
syl20bnr 5f759f6df0 clojure: add SPC m = key binding
per convention
2016-10-03 00:23:15 -04:00
syl20bnr ade1c7d70f elm: move SPC m h d to SPC m h h 2016-10-03 00:23:15 -04:00
mahinshaw cf951a5114 Update bindings. Add toggle clojure-enlighten-mode 2016-09-23 22:50:09 +02:00
Tim Jäger 2181decd81
Add clear REPL keybinding for Clojure 2016-09-23 10:48:48 +03:00
Eivind Fonn 7cfb93d601 Define jump handlers for common-lisp-mode 2016-09-12 11:45:05 +02:00
Eivind Fonn 107fe46d6e Fix latex-mode jump handler definition 2016-09-05 09:48:54 +02:00
syl20bnr 317694b160 Define missing jumper handler variables for helm-gtags 2016-09-05 02:38:13 -04:00
syl20bnr 9066d073b2 Fix (void-variable spacemacs-jump-handlers-....)
Move the variable definitions to config.el and eval-after-load the
key binding on SPC m g g.
2016-09-04 22:31:47 -04:00
syl20bnr c6a6c41d92 Replace hooks by regular list for jump lists
Hook semantic is to be used with run-hooks API and run all hooks
sequentially, jump list semantic is different since the running
functions are not guaranteed to be executed so we prefer using regular
list API to manage jump-lists.
2016-09-04 12:28:40 -04:00
Christian Kjær 622938c757
Haskell: Add support for intero-apply-suggestions
As per #6233 add support for `intero-apply-suggestions` behind `SPC m r s`,
and move the prefix declaration for "haskell/refactor" to the other prefix declarations,
since it is no longer only relevant for hlint.
2016-09-04 11:50:00 +03:00
Christoph Paulik 4029679584 Fix Python jumping with async anaconda mode function.
Without this dumb-jump-go is often used if anaconda-mode-find-defintions
takes a little to return a result.

fix #6985
2016-09-03 12:04:31 +02:00
syl20bnr 3290c8a94f Fix possible infinite appending to golden-ratio-exclude-buffer-names
Each time the config is reloaded with SPC f e R we were appending new
strings to the variable.
2016-08-31 22:42:58 -04:00
Eoin Houlihan 77a4c4a203 Include *idris-holes* and *idris-info* in golden ratio exclude 2016-08-30 16:25:15 +02:00
Christoph Paulik 28b8572eb0 Python: Fix link in layer Readme. 2016-08-30 16:11:57 +02:00
Eivind Fonn 2f4b05ddf5 Fix java layer after eclim package refactor 2016-08-30 16:03:19 +02:00
Sebastian Poeplau 781532d4d2
Improve README of the Clojure layer
Explicit configuration of leiningen or boot is not necessary anymore as
of CIDER 0.11.
2016-08-27 14:41:57 +03:00
d12frosted 44a792f83c
rename glsl layer to shaders layer
Also removed redundant `mode` entries and instead added ones that are
missing in original package. Updated README to represent this change and
fixed typo in installation message about the layer name.
2016-08-27 12:29:23 +03:00
Alan Love e7f113fc49
Added glsl layer for OpenGL shader syntax highlighting 2016-08-27 11:52:57 +03:00
syl20bnr c1c2d06f36 Remove SPC j F and SPC j V and add SPC m g G in Emacs Lisp
SPC j F and SPC j V don't fit the SPC j prefix because they require
the thing under point to be an Emacs lisp thing, which means that these
bindings should be major mode specific.
To replace them and accordingly to the convention the key bindings
SPC m g G in Emacs Lisp buffers has been added to go to definition
in other window.

SPC j f and SPC j v (minus letters) don't require the current buffer
to be Emacs Lisp and thus I only updated the documentation about them
mentioning that they're about Emacs Lisp variables and functions.
2016-08-25 21:19:21 -04:00
deb0ch 0191a81ad2 fix c-c++/post-init-ycmd: activate ycmd-mode in c files as well.
fix jump to definition refactor
2016-08-24 18:17:31 +02:00
Eivind Fonn 734c87fb24 Don’t break asynchronous jumpers (fix #6898) 2016-08-24 13:11:57 +02:00
Eivind Fonn b8ca74e4b3 scala: fix sbt-hydra config and move to “bh” 2016-08-22 21:32:38 +02:00
Danny Navarro 3263860669 scala: add SPC m x for sbt-hydra
sbt-hydra:hydra renamed to sbt-hydra in key binding.
2016-08-22 21:22:31 +02:00
km e39df3d17f Add binding for merlin-occurrences
Also fix typo for binding prefix
2016-08-22 21:03:53 +02:00
zilongshanren 7a05260136 fix gtags enhancement 2016-08-23 00:08:25 +08:00
Eivind Fonn 5a869764dd Further improve gtags layer
- Add option to disable by default
- Use local-vars hook to allow per-project enable/disable
- Don’t enable helm-gtags-mode (no need)
- Move emacs bindings from helm-gtags-mode-map to ggtags-mode-map
2016-08-22 15:11:25 +02:00
Eivind Fonn 928983da47 Refactor jump to definition
This commit defines:

- spacemacs-default-jump-handlers: a list of functions that can jump to
  definition in ALL modes.

- spacemacs-jump-handlers-MODE: a list of functions that can jump to
  definition in MODE.

- spacemacs-jump-handlers: a buffer-local list of functions that can
  jump to definition. This is made up of the values of the two previous
  variables whenever a given major mode is activated.

- spacemacs/jump-to-definition: a function that tries each function in
  spacemacs-jump-handlers in order, and stops when one of them takes us
  somewhere new.

- spacemacs|define-jump-handlers: a macro that
  * defines spacemacs-jump-handlers-MODE, possibly filled with initial
    functions
  * defines a function that is added to the hook of the given MODE
  * binds “SPC m g g” of that MODE to spacemacs/jump-to-definition

This is an attempt to harmonize all the different approaches to jumping.
Specifically,

- Existing intelligent jump packages that work for only a single mode
  should go to the beginning of spacemacs-jump-handlers-MODE. E.g.
  anaconda for python, ensime for scala, etc.

- Packages like gtags that work for several modes (but potentially not
  all) and which is dumber than the intelligent jumpers should go the
  the END of spacemacs-jump-handlers-MODE.

- Packages like dumb-jump that work for all modes should go to
  spacemacs-default-jump-handlers.

In all cases the order of the jump handlers in each list should be from
most to least intelligent.

Fixes #6619
2016-08-22 15:08:25 +02:00
Antonis Kalou 27098315e8 Added support for extra cider commands
Also moved enlighten-mode toggle to toggles
2016-08-22 15:07:25 +02:00
Eivind Fonn d365a2410a Re-fix SPC : -> SPC SPC 2016-08-22 14:51:33 +02:00
Marlin NA bc3a9fd1a0 Fix description: command of generating TOC 2016-08-22 14:50:54 +02:00
Shaun Taheri 5c1c15bbd8 Fix asciidoc demote function name 2016-08-22 10:22:20 +02:00
Eivind Fonn d94d0d9f71 Some improvements to py-isort config
- Rename variable
- Wrap the save function to check condition variable at runtime
- Add keybinding
2016-08-21 17:49:20 +02:00
Swaroop C H a2d7461bb1 [python] Add py-isort package
py-isort sorts the imports to keep it tidy.

Disabled by default.
2016-08-21 17:41:43 +02:00
Christoph Paulik 83ec3afc7e Fix Python layer loading on emacs master branch.
The member function works slightly different on the master branch of
emacs than in emacs 24.5 or emacs 25 release candidates. This might be a
bug in emacs but for now we can add a check if python-test-runner is a
list to work around that.

Fix #6246.
2016-08-21 15:16:56 +02:00
d12frosted c7384638b1
fill paragraphs in scala layer readme 2016-08-21 10:55:25 +03:00
james sangho nah 6b71e168b2
Fix typo in Scala README 2016-08-21 10:53:54 +03:00
Diego Berrocal 219d891475 Update emacs-eclim package name
I think MELPA has an `old-names` back
[compatibility](https://github.com/melpa/melpa/issues/4159) measure for
cases like this, but for now it isn't working. And it's breaking all new
installs that use the java layer.
2016-08-18 21:12:15 +02:00
Eivind Fonn da2af5c1fd Extract golden-ratio config to package fns 2016-08-18 21:10:43 +02:00
Eoin Houlihan 1fc2be3863 Don't use golden ratio mode in Idris holes buffer 2016-08-18 21:07:24 +02:00
Christoph Paulik 6b41426d8d Python: Set breakpoints correctly when pyenv is used.
pyenv shims fool executable-find into thinking that ipdb is always
installed if it is installed in one environment.
2016-08-18 21:06:56 +02:00
Christoph Paulik 7504ec2309 SML: Improve indentation. 2016-08-18 21:05:51 +02:00
deb0ch 9c4a0657d0 activate ycmd-mode in c files as well
ycmd-mode was only activated when entering c++-mode, making syntax
checking unavailable in c-mode, as flycheck-ycmd-mode is hooked to
ycmd-mode.
2016-08-17 20:21:50 +02:00
Eivind Fonn dbbdca7d5d Fix agda indentation and README 2016-08-17 20:20:20 +02:00
FreeSalad 5096202b6b Fix Agda layer for users without 'agda-mode' executable. 2016-08-17 20:13:01 +02:00
Eivind Fonn 2651f67c48 Fix cargo config
- Move cargo bindings to init-cargo
- Move bindings to init phase
- Swap spacemacs/rust-cargo-fmt with cargo-process-fmt
2016-08-17 20:10:05 +02:00
Kevin van Rooijen 0bbb88814e New add cargo package to rust layer 2016-08-17 20:05:37 +02:00
Shanavas M 56d820a1e1 Add missing prefices for web-mode menu 2016-08-17 20:02:41 +02:00
Shanavas M 83e5d41042 Add "documentation" prefix for js-doc menu 2016-08-17 20:01:43 +02:00
Antonis Kalou 9bafae3f9c Added mention of PEP-8 syntax checkers to README 2016-08-16 21:06:45 +03:00
Eivind Fonn 3c18a4a6bb Tweak yapfify config
- No need to use :commands
- Remove SPC m y binding
2016-08-07 16:33:12 +02:00
Joris Engbers e0aac5c170 Replace py-yapf with yapfify.
Yapfify uses project settings applicable to the file that yapf is called
on. Also it shows an error if yapf fails.
2016-08-07 16:31:50 +02:00
Bryan Gilbert 62199bfb94 Fix dot completion bug in scala mode 2016-08-07 16:29:28 +02:00
Diego Alvarez 3dfd5fa4fb Disable Ensime autostart 2016-08-07 16:19:45 +02:00
Christoph Paulik ebbfbaf2d1 Use --simple-prompt for IPython 5 and set correctly on env switch.
IPython 5 does no longer use readline and so the emacs integration is
broken. See also
http://ipython.readthedocs.io/en/stable/whatsnew/version5.html#id1

Fix #6622 and related to #6580

This also works if different environments have different IPython
versions since the shell parameters are setup on every environment
switch.
2016-08-06 18:18:25 +02:00
Graeme Coupar f7d2f3f0ad elm: Add 'SPC m h d' keybinding for doc-at-point. 2016-08-05 21:29:56 +02:00
Eivind Fonn 269916e908 Shorter lines in java/README.org 2016-08-05 21:18:32 +02:00
Ellis Kenyo 229ef0c05c Update the Java layer to support eclimd
Signed-off-by: Ellis Kenyo <elken@mykolab.com>
2016-08-05 21:15:58 +02:00
d12frosted 7280a46554
[haskell] add note about auto-completion layer
Fixes #6733
2016-08-04 13:38:54 +03:00
Tim Jäger 853945c722 Fix typos in Haskell layer README 2016-08-01 09:04:27 +02:00
d12frosted c42a08a842
js layer readme minor improvements
- fill paragraphs
- hide url under descriptive text
- fix wording for linters
2016-07-31 13:05:40 +03:00
Steve Dignam a2df27e71a
Add flycheck info to javascript layer README.org
Added info about available flycheck checkers for Javascript.
Also added install info for ESLint.
2016-07-31 13:02:45 +03:00
Laverne Schrock b1e45cc2bb
Update racket-layer README.org
This is in response to issue #3870.
2016-07-31 12:56:01 +03:00
Leon Isenberg be6fd0e8d0
Swap haskell layer specific keys f and F 2016-07-29 14:30:20 +03:00
Eivind Fonn 6bb73f193f Fix emmet expansion if yas isn’t turned on 2016-07-27 15:52:51 +09:00
Aaron Jensen 141be7f8c2 elixir: fix smartparens hook
Fixes #6660
2016-07-25 19:36:07 +09:00
Eivind Fonn bef1295094 Scala: README line lengths 2016-07-25 14:11:17 +09:00
Diego Alvarez 80f8c84d64 Improve documentation for scalastyle 2016-07-25 14:09:22 +09:00
Diego Alvarez 1b5bc13d35
Update ensime logo 2016-07-22 13:18:33 +03:00
Christoph Hegemann 985a07b71c add keybindings for goto definition functionality 2016-07-21 12:13:34 +02:00
Eivind Fonn 9773ad611f Clean up gtags readme 2016-07-17 17:36:07 +02:00
Christian E. Hopps b22702bc9e Expand gtags use to many more languages 2016-07-17 17:31:59 +02:00
Eivind Fonn 7a440195a8
Fix some intero functions 2016-07-17 10:00:34 +03:00
bja a308eef060 Fix bug with Autocomplete in elm
Adds company-elm to company-backends-elm-mode
2016-07-06 22:11:33 -04:00
syl20bnr 7df72331e6 elm: move format buffer to SPC m = b to follow conventions 2016-07-06 22:09:25 -04:00
Daniel 17a0c5dac2 Add a key combination to format elm files 2016-07-06 22:04:04 -04:00
syl20bnr 0ca8d2f87c elm: respect max 80 characters per line in README 2016-07-06 21:59:47 -04:00
bja 3bcb84f3e9 Adds elm-format section and advice for absolute paths with npm 2016-07-06 21:58:40 -04:00
Jeremy Bi 149f6c0530 ocaml: Remove outdated config of utop
The old config overrides `exec-path` blindly, updated as per the
instructions on the official site of `utop`.
2016-07-06 21:27:01 -04:00
Ayush Goyal 1fdc2f8fe2 Fix yaml layer autocompletion
Autocompletion was not working with yasnippets for yaml layer. This also
fixes autocompletion for ansible layer.
2016-07-06 21:24:33 -04:00
ralesi c2a0a5670f Provie additional filetypes for windows scripts. 2016-07-05 00:23:16 -04:00
syl20bnr c2c0bfa969 ahk: move SPC m h r to SPC m h H 2016-07-05 00:23:16 -04:00
ralesi 51a49cbdcd Define ahk lookup options. 2016-07-05 00:23:16 -04:00
hehe ac0e988588 Fix #5966, slime-eval-last-sexp is not defined 2016-07-05 00:23:16 -04:00
syl20bnr b093598e45 python: avoid code duplication with hy-mode 2016-07-05 00:23:16 -04:00
Danny Freeman fa28afb02f Add keybindings for hy-mode in python layer
These changes will allow users to evaluate hy code in a repl using an
inferior-lisp process. It requires that users have hy installed via pip
in their local python enviornment.

Add smartparens-mode and documentation

I moved the add-hook for smartparens call to
python/post-init-smartparens. Keybindings were also updated to match
the ones for the Inferior REPL process for Python. Also added some
documentation for required hy pacakge, and the keybindings to
README.org.
2016-07-05 00:23:16 -04:00
Fabien Dubosson 5df76ed1d1 Fix the loading of vmd for daemon mode
When Spacemacs is used in daemon mode, the `PATH` is not always filled
up with user-defined run paths when Spacemacs load the packages. The
`toggle` of the `vmd` package is checking for the `vmd` executable which
may be in one of the user path, what prevent the package to be loaded,
even if the executable is available at execution time.

If people want to use `vmd`, setting `markdown-live-preview-engine`
should be enough, there is no need for checking for the executable to be
present, this is the responsability of the user to ensure this.
2016-07-05 00:23:16 -04:00
zilongshanren bbfb4a0ea7 typescript: swap c-j/c-k in tide reference mode 2016-07-05 00:23:16 -04:00
syl20bnr 482277dad5 purescript: reorganize README.org 2016-07-05 00:23:16 -04:00
Christoph Hegemann 72515135dc incorporate new functionality from psc-ide 2016-07-05 00:23:16 -04:00
Jeremy Bi de680bb5a0 Don't auto-close apostrophes in SML 2016-07-05 00:23:16 -04:00
Jeremy Bi 4eb9ce41d9 Cleanup ocaml layer
- Remove `merlin-refresh` keybinding
  This function is obsolete since merlin 2.0.
- Remove unused flycheck config
  Merlin is capable of doing all that
2016-07-05 00:23:16 -04:00
syl20bnr 136e1ee237 scala: defer ensime package and add note for scala-mode-hook 2016-07-05 00:23:16 -04:00
Diego Alvarez e677682d1a Remove unnecessary command
as this upstream commit is already doing it:
706aa5e40b
2016-07-05 00:23:16 -04:00
Tony Lotts 768371b6fb Load Scala for org-babel 2016-07-05 00:23:16 -04:00
Christoph Paulik e93e7ba279 ESS: Add R to org babel languages. 2016-07-05 00:23:16 -04:00
syl20bnr 15c392b891 haskell: remove unnecessary backquote 2016-07-05 00:23:16 -04:00
Koray Al 8d0f76b259 haskell: replace quotes with backquotes inside pcase 2016-07-05 00:23:16 -04:00
Jeff Schnurr a6d6a53501 Fix dependency in readme
If only ipython is installed, command $ ipython notebook fails with ImportError: No module named 'notebook'.  Correct to specify dependency to include the notebook server.
2016-07-05 00:23:16 -04:00
d12frosted d114ef6e51 [shell-scripts] add note about shellcheck 2016-07-05 00:23:16 -04:00
Jeremy Bi 644cddca27
Enable auto-complete in Idris repl
Add keybinding to kill Idris process
2016-07-02 12:41:49 +03:00
syl20bnr 89dc1af9a6 Remove spacemacs/add-to-local-vars-hook and use (format ...)
It is better to directly hook function using the conventional hook
functions.

Replace usage of (concat ...) by a (format ...) from which is more
readable.
2016-06-26 14:04:13 -04:00
d12frosted a8b0eaacec fix support of conditional config in ruby layer 2016-06-26 13:51:12 -04:00
d12frosted 45dd381fd2 conditionally enable haskell completion backend 2016-06-26 13:51:11 -04:00
d12frosted 6798af57e3 implement API for local-vars-hook 2016-06-26 13:51:11 -04:00
syl20bnr 93d01704a6 haskell: align tables in documentation 2016-06-23 00:50:03 -04:00
d12frosted a8e569d3b2 refine haskell completion backends
- add haskell-completion-backend variable that should be used to select
  desired completion backend
- add support for intero (based on @cydparser layer)
- remove ghci-ng support
- update readme file:
  - document haskell-completion-backend variable
  - remove installation notes for ghc-mod as they are not relevant
    anymore
  - remove ghci-ng section
  - overall readme file fixes and improvements
2016-06-23 00:47:23 -04:00
syl20bnr 85ace24553 react: fix tern setup
The init function should be a post-init instead of an init function.
Also simplified the configuratin quite a bit.
2016-06-21 19:04:59 -04:00
d12frosted 7de26d5a2d
clarify installation notes on scala readme 2016-06-21 20:05:21 +03:00
Tony Lotts 9f46d563b8
Update README.org
Refer to Ensime's SBT plugin installation instructions.
2016-06-21 19:59:17 +03:00
km d7820aafd6 Remove even more 24.3 related configuration
Helm-flx, which is included as a core package, requires a minimum Emacs
version of 24.4. As it stands attempting to install Spacemacs on Emacs
24.3 or below will break on helm-flx.
2016-06-20 22:26:53 -04:00
syl20bnr 2738724ed4 erc, html and pdf-tools: use :evil-leader-for-mode in transient states 2016-06-17 23:40:06 -04:00
syl20bnr d66b5c0a93 iptyhon-notebook: evilify notebooklist buffer
Move eval-after-load to :init block.
2016-06-17 23:22:12 -04:00
syl20bnr 3768374488 ipython-notebook: resize images in readme 2016-06-17 23:21:45 -04:00
syl20bnr 4ff26b3f27 ipthon-notebook: move transient state binding to SPC m .
Or `,.` with the shortcut, this is a more standard approach.
Use the :evil-leader-for-mode keyword to bind the transient state

Add space in the :doc of the transient state because auto-indent of
elisp code is broken otherwise.
2016-06-17 22:55:19 -04:00
Eivind Fonn 074ac8f756 ipython-notebook: fix loading of keymap 2016-06-17 18:40:13 +02:00
NJBS b6432e1efe Add prefixes to the LaTex layer 2016-06-12 21:57:14 -04:00
Ben Gamari 7b1430e9d5 haskell: Don't enable haskell-tags-on-save
This is a very opinionated option and works very poorly on even
moderately large projects as it invokes `hasktags` synchronously,
freezing the editor for several seconds on every save. Users who want
this behavior should enable it manually.

Fixes #6292.
2016-06-12 21:51:28 -04:00
Eivind Fonn 0b2a438aa7 clojure: enable smartparens in cider
cider-repl-mode doesn’t derive from comint
2016-06-12 21:50:34 -04:00
kr5x 07864f50d9 common-lisp: Remove <tab> key binding
'indent-command-for-tab' that already bound to <tab> globally is more useful.
2016-06-12 21:44:52 -04:00
Wieland Hoffmann 78bfe65e62 Python: Don't remove ':' from electric-indent-chars in emacs >= 24.5
According to the conversation in [0] ':' is removed from
electric-indent-chars in python-mode because typing ':' in

> for i in range(10):
>    print(i)
> for i in range(10)_

with the point at _ indents the third line. This is not happening in
Emacs 24.5 anymore.

[0] aed0fc8ef8
2016-06-12 21:42:40 -04:00
d12frosted 9df123c40c haskell: remove structured-haskell-mode 2016-06-12 21:11:32 -04:00
syl20bnr cb6754f231 Remove packages without any init functions 2016-06-10 20:53:24 -04:00
syl20bnr 81fbb9a292 Format README files with spacefmt 2016-06-10 00:09:42 -04:00
syl20bnr 89d5aad0a5 Various tweaks to golden-ratio configuration
- Prefer add-to-list function to alter golden-ratio variables so the lists
are less likely to grows as users reload their spacemacs config.
- Move some config to layers when appropriate
- Sort alphabetically the values
- Remove some duplicates in exclude-modes
2016-06-08 10:17:08 -04:00
syl20bnr 84aee08b6f elixir: improve documentation for flycheck-mix 2016-06-07 23:51:33 -04:00
Tomasz Kowal 194813961b Replace local elixir-flycheck-mix-compile package with flycheck-mix from melpa 2016-06-07 23:37:53 -04:00
syl20bnr a1d60c0c82 haskell: unify key bindings for debugging 2016-06-07 23:36:06 -04:00
d12frosted adec65cc2b evilify haskell-debug-mode 2016-06-07 23:31:17 -04:00
Paul Wise 90c09f94bc Add hlint-refactor to haskell layer 2016-06-07 23:28:21 -04:00
syl20bnr ea77a5d764 markdown: new layer variable markdown-live-preview-engine 2016-06-06 23:39:41 -04:00
Jeremy Bi c267c36be1 Add vmd support in markdown mode 2016-06-06 23:01:06 -04:00
syl20bnr 14c4b7e6c4 ruby: fix possible activation of both rspec-mode and ruby-test-mode 2016-06-06 22:55:28 -04:00
syl20bnr f1cb1f4ef9 ruby: move function spacemacs//inf-ruby-auto-center to funcs.el 2016-06-06 22:55:28 -04:00
Daniel Luna af3f053235 Automatically switch from RSpec compilation mode to interact with a debugger
This commit adds the 'inf-ruby-auto-enter method to
'compilation-filter-hook, automatically entering inf-ruby-mode when it
hits a breakpoint (see the
[inf-ruby-manual](https://github.com/nonsequitur/inf-ruby/#manual) for
more details).

The hook is added locally to the rspec-compilation-mode-hook to avoid
global slowdown, as the compilation-filter-hook is called whenever a
new line is entered.
2016-06-06 22:55:28 -04:00
syl20bnr 7506024684 ruby: apply conventions for use-package a move functions to funcs.el 2016-06-06 22:55:28 -04:00