Commit graph

976 commits

Author SHA1 Message Date
Jim Deville dae860a4b1 add refactor docs 2017-05-24 14:42:17 +02:00
Daniel Luna 34d842c6f5 [ruby-layer] Adding ruby-refactor package and associated keybindings
This commit adds a series of refactoring commands for Ruby under
"ruby/refactor", by use of the `ruby-refactor` package.
2017-05-24 14:41:55 +02:00
Eivind Fonn 4068a3e6a2 Revert "Clean up elixir layer documentation"
This reverts commit 333e921707.
2017-05-24 14:37:39 +02:00
Garrett Johnson 333e921707 Clean up elixir layer documentation
Remove references to removed checkers and their configuration
2017-05-24 14:19:37 +02:00
Víctor Cuadrado Juan a37d4296cf .Add bashate style checker to shell-script layer 2017-05-24 14:02:01 +02:00
Muneeb Shaikh 47cb3e01e0 python: fixes for anaconda-mode-view-mode
* layers/+lang/python/funcs.el (spacemacs/anaconda-view-forward-and-push):
  Added helper function to go forward and hit RET
* layers/+lang/python/packages.el (python/init-anaconda-mode):
   - use new evilification macro
   - use helper function to go ahead and push button when hitting `RET`
   - Add `C-j`, `C-k` for easy navigation in anaconda-view-mode when multiple
   references are displayed. Doesn't conflict with normal `hjkl` navigation in
   other views of `anaconda-view-mode`

Fix #7538
Fix #5737
2017-05-24 13:58:23 +02:00
Swaroop C H ea54e6863e Make python-execute-file use python-shell-interpreter
So that we can customize to use `python3` instead of `python`
2017-05-24 13:41:12 +02:00
Codruț Constantin Gușoi 07c2fccc94 Adds autocomplete for coffeescript 2017-05-24 13:33:57 +02:00
Dietrich Daroch e4e6638d4d Add requirements list for D 2017-05-24 13:03:57 +02:00
Alexey Kotlyarov f27568d8f9 Python: Highlight wdb breakpoints as well as pdb/ipdb/pudb 2017-05-24 12:44:57 +02:00
Alexey Kotlyarov dc3f16b840 Python: search for Pylint and Flake8 in the virtualenvs 2017-05-24 12:44:19 +02:00
Bernhard Schommer 2c193614f7 Ocaml layer init without opam.
Currently the ocaml layer requires opam in order to work. However
opam is only really required for an easy installation of the
required ocaml binaries. The only place where opam is used
instead is to add the merlin files of the merlin installed
via opam instead of the merlin files from melp.

This commit introduces a fallback if opam is not installed but
ocamlmerlin is installed, since the melpa package of merlin
is already installed through packages.
2017-05-24 12:28:58 +02:00
Diego Alvarez dfa18dafc3 Make ensime use stable version as unstable is for ensime devs 2017-05-24 12:22:20 +02:00
Eivind Fonn 94ed135678 Move sp-local-pair call to with-eval-after-load 2017-05-24 12:17:10 +02:00
Erwin Kroon c2c4721ddb Remove backtick from smartparens pairs for Clojure
Single backticks are used for namespaced quotes, there is no purpose for
automatically inserting double backticks.
2017-05-24 12:16:38 +02:00
Eivind Fonn 6ba353a8d8 sql: change blacklist to only accept list 2017-05-24 12:13:13 +02:00
Kepi 7cb9c1924a sql: support for keywords auto capitalization
SQL, by convention, uses upper-case keywords, although lower-case works just as
well. As humans, the separation between upper-case and lower-case helps scan and
parse the code much more quickly.
2017-05-24 12:08:45 +02:00
Corey Ling 21c3e2fc2d Fix Clojure layer cider-repl-mode keybindings
Clojure layer attempted to provide `C-j` and `C-k` keybindings
  to the cider-repl-mode but there was a bug.

  This fixes the bug and adds those keybindings to the documentation.
2017-05-24 12:04:13 +02:00
Kristoffer Haugsbakk 6583251ef6 Use proper markup to preserve meaning of code
Mark up code that is mentioned in the documentation of some readmes.

In the case of “long options”, like for example `--with-emacs`, this is not just
cosmetic.  On GitHub, Org files are apparently rendered in such a way that
strings like `--` in non-verbatim text (i.e. not verbatim-quoted nor
code-quoted) is transformed to `–` (EN DASH U+2013).  So the string:

    … --with-emacs option:

Will show up like this:

    … –with-emacs option:

Also mark up nearby not-marked-up code mentions.  But this pattern was what was
searched for, so this mostly changes the abovementioned kind of thing.
2017-05-24 11:59:40 +02:00
Kristoffer Haugsbakk 79ed1a6b4b Use proper markup for code in readmes
By convention, code markup (`~`) is reserved for keybindings in Org-based
documentation in Spacemacs.  Verbatim markup (`=`) is reserved for code and
other code-like things.  So change several readmes to reflect this convention.

Use verbatim markup for things like (non-exhaustive list):

- Emacs Lisp functions, modes, buffers, etc.
- Environment variables
- Directory paths
- Code in general
2017-05-24 11:57:17 +02:00
Ian Clark 249c3b87b0 Configurable extra arguments to go test
ADD:
  - layers/+lang/go/config.el Added new variable `go-use-test-args` to allow
    specifying additional arguments being passed to `go test.

CHANGE:
  - layers/+lang/go/packages.el Updated `go-run-tests` to automatically concat
    the new variable `go-use-test-args` to args passed to `go test`.
2017-05-24 11:52:10 +02:00
Alexander Berezovsky 00a6e3d5c2 Documentation: Highlight ruby debugger keywords 2017-05-24 10:26:31 +02:00
Rand01ph c71d482012 fix python layers anaconda-mode requirements 404
the anaconda-mode requirements has change to wiki
2017-05-24 10:04:33 +02:00
Eivind Fonn b1f1674109 Ruby debug highlighting: dynamic check
Move check into function, and add to local-vars hook instead of the mode hook.
This makes the variable changeable at runtime and also as part of local vars.
2017-05-24 09:43:06 +02:00
Alexander Berezovsky 26bb5912f0 Highlight ruby debugger keywords 2017-05-24 09:42:47 +02:00
Eivind Fonn 144c37955f Remove unnecessary function 2017-05-23 15:34:24 +02:00
Benno Fünfstück 0d9c56cefc haskell: disable electric indent for cabal-mode 2017-05-23 15:33:01 +02:00
Ryan Fowler 5d613b63d2 store cider repl history in spacemacs cache 2017-05-23 15:18:21 +02:00
Victor Andrée 110419fd01 Call tsfmt with extension of current buffer for TSX formatting
Addresses #8297 for the tsfmt backend. However, does not fix tide issue, and
automatic major mode formatting (`SPC m =`) does not work in TSX files as they
are opened in web mode.
2017-05-23 15:08:12 +02:00
MadAnd 62a4a60510 javascript: leverage js-doc Yasnippet integration if available
js-doc provides an alternative function for generating function doc comments
that makes use of Yasnippet to easily jump between the comment sections/tags.

This commit enables use of that function, if Yasnippet package is active.
2017-05-23 12:52:18 +02:00
Ben Mabey aa83ed0249 adds ein:notebooklist-login as app command
The login is required for most jupyter installs these days.

change ipython command keybinding for open from 'n' to 'o'

Unless I'm violating some Spacemacs convention using 'o' for 'open'
seems to the right choice instead of 'n'. Better mnemonics, IMO.
2017-05-23 12:49:53 +02:00
Eivind Fonn a5e6509695 Wrap markdown :mode as list 2017-05-23 11:00:09 +02:00
Han Wang fbb5908a3e Render Madoko document using markdown mode
Madoko is a fast markdown processor with a special .mdk extension
from microsoft research. emacs should use markdown-mode to render
a .mdk file as markdown file.
2017-05-23 10:58:50 +02:00
JAremko 6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
Daniel Manila cfe0295875 Add sayid, a debugger, to the clojure language
"Sayid (siy EED) is a tool for debugging and profiling clojure code."
(https://bpiel.github.io/sayid/) it allows viewing the results of each line of
code in a clojure function, without editing the code at all.

This commit evilifies the plugin and adds its commands to the "debug" submenu
of the main clojure mode menu.
2017-05-22 17:25:25 +02:00
Alexander Miller f4fafa9a51 Shell scripts: add new company-shell environment variable backend. 2017-05-19 11:12:22 +02:00
Dietr1ch ff43db919b Add SPARQL-mode to +lang/extra-langs 2017-05-18 23:12:56 -04:00
WillianPaiva e1e091eee8 add a keybind for the function eclim-java-run-run 2017-05-18 23:12:56 -04:00
Robert (Robby) O'Connor 097f341eac Fix typo in java layer README 2017-05-18 18:53:08 +02:00
Eivind Fonn 3dde988212 Lambda -> named function 2017-05-18 18:20:05 +02:00
Codruț Constantin Gușoi 59d45d10d8 Fixes org table cleanup 2017-05-18 18:16:48 +02:00
syl20bnr bff206af37 Fix last documentation errors
Should be good now :-)
2017-05-14 23:05:26 -04:00
syl20bnr 8ece2fd1f2 Fix documentation error reported by Travis 2017-05-14 22:56:42 -04:00
Evan Niessen-Derry e6048e0863 Add an example for non-standard node bin locations
If you install your node bins in places outside of the system path, you
need to add those locations to the exec path before packages are loaded
or else spacemacs won't recognize them as existing when it initializes
the layers.
2017-05-14 22:18:43 -04:00
James Hicks e246ac1957 Fix error message about no eldoc support 2017-05-14 22:17:54 -04:00
Wieland Hoffmann 4c009f4721 Use verbatim markup for the flake8 package name 2017-05-14 22:07:21 -04:00
Swaroop C H 80d2a0d99d [docs] Fix parentheses 2017-05-14 22:06:08 -04:00
syl20bnr 5ecd3c9fa9 lua: use new add-company-backends macro 2017-05-14 21:26:41 -04:00
zhuyan 210106b7b3 lua: Add company-lua package
Lua-mode it self has poor completion support and company-lua will enhance it.
2017-05-14 21:24:14 -04:00
Diego Alvarez 6a55eba49b evilify ensime search in insert/normal mode 2017-05-14 13:44:44 -04:00
Fangrui Song 6fe2348013 Haskell: use intero-goto-definition for jump handler if intero-mode is enabled. 2017-05-14 13:32:28 -04:00
syl20bnr 7d215cb089 c-c++: move realgud config to c-c++ layer and delete debug layer
For now realug is used only to C and C++ so it makes more sense to add it to
the c-c++ layer for now.
Later if we can generalize the support of realgud for other languages and we
can start a debugger layer.
2017-05-14 13:20:10 -04:00
Joao Azevedo 81aed5a423 Allow customizing if ENSIME should print types at point
The `scala-enable-eldoc` variable should be used to determine whether or not
ENSIME should print types at point. This makes sure that the hook is only set if
the variable is non-nil.
2017-05-14 13:07:09 -04:00
syl20bnr 714b82f7fb emacs-lisp: revert factorization of evilified macro calls 2017-05-14 12:46:31 -04:00
Keith Wygant 08734cb595 Fix key binding `dolist's
Dolists for `spacemacs/set-leader-keys-for-major-mode' were using
'emacs-lisp-mode instead of the loop variable 'mode'. Hopefully using the loop
variable was the intention.

I also updated the redundant bindings for `edebug-mode-map' and
`edebug-eval-mode-map' to use `dolist'. It probably makes more sense to put the
whole thing after :bindings rather than around it, but I wasn't sure if that
might break something.
2017-05-14 12:38:12 -04:00
Keith Wygant 22a0bf1e52 Switch `spacemacs/eval-current-form' docstring to imperative
I also capitalized 'Idea' in the comment above.
2017-05-14 12:38:06 -04:00
syl20bnr 352a06ee50 graphviz: always setq graphviz-dot-indent-width 2017-05-14 12:35:14 -04:00
Tu Do efff24475a Fix graphviz erroneous usage of default-tab-width
default-tab-width is obsolete since Emacs 23 and is removed in Emacs 26. Better
adapt it properly.
2017-05-14 12:34:32 -04:00
syl20bnr 17ac76869c chrome: define markdown key bindings for gmail-message-mode 2017-05-07 22:02:03 -04:00
LdBeth e17460f0e6 Fix init-slime-company
used `:pre-config` instead `:post-init`, otherwise `slime-company` won't be
initialized because `common-lisp/init-slime-company` is called after
`common-lisp/init-slime`, and `:post-init` probably won't make effect.

Fixes #8796
2017-05-04 00:29:08 -04:00
John Stevenson 18a244269b New Keybinding for cider-eval-defun-to-comment
Added a Spacemacs style keybinding for the function cider-eval-defun-to-comment

This function evaluates and expression and displays the result as a comment
on the following line.

The CIDER keybinding is `C-C M-;` so the Spacemacs binding uses the `;`
convention, which is also the general character for comments in Emacs.

As this is an evaluation function, the keybinding is placed under the evaluation
part of the major mode menu.

Included documentation in the README.org file
2017-05-03 22:47:10 -04:00
syl20bnr afcef9e34f markdown: suppress mmm-global-mode
had bad side effects on magit buffers, like removing faces etc...
2017-05-01 12:51:10 -04:00
syl20bnr 4fd895a917 markdown: cleanup auto-modes for mmm and add support ini files 2017-04-29 11:08:03 -04:00
Christian Brassat 7fc758e3c2 markdown-mmm-auto-modes defines pairs of language and mode names
where the mode name is different from the language name
2017-04-29 10:57:04 -04:00
Christian Brassat 7caa91bf6c Credit where credit's due 2017-04-29 10:55:16 -04:00
Christian Brassat e3307d0b17 Generate mmm-modes automatically based on a list.
Includes a config variable for use in `dotspacemacs-configuration-layers`
2017-04-29 10:55:12 -04:00
Christian Brassat 1f9fd7077e Add markdown-scala support to MMM
Fixes  #6571
2017-04-29 10:52:42 -04:00
JAremko 94205a3e81 Fix css links and various org links 2017-04-29 10:45:52 -04:00
JAremko f805d0ebd9 Fix spacefmt test on deleted files
Also fix some links
[ci skip]
2017-04-28 23:29:43 -04:00
JAremko c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
Muneeb Shaikh 50f5a04f9a ruby: add to org-babel-load-languages 2017-04-28 23:04:13 -04:00
syl20bnr fe564eade5 ess: move functions to new funcs.el file 2017-04-28 23:02:18 -04:00
Jack Kamm c33a587a8e ess: help.start() causes read-only problem with comint-prompt-read-only
Fixes #5395
based on https://github.com/emacs-ess/ESS/issues/300#issuecomment-231314374
2017-04-28 22:55:48 -04:00
firemiles b8c17cf3c5 docs: Install goimports from new repository. 2017-04-28 22:50:12 -04:00
tutysara f4a7c939a4 Enable company backed - ipython-notebook
EIN added a company backend recently.
This will add support for completion in spacemacs using ein's company backend.
2017-04-28 22:49:42 -04:00
Tomasz Cichocinski 3ea4f49877 Add on save usage section to elm layer
According to official elm-format documentation there is elm-format-on-save option. I've added it to layer documentation and introduced "On save usage" section which now contains info about elm format on save and imports sort on save.
2017-04-23 19:23:40 -04:00
syl20bnr 177da95904 common-lisp: move evil related configuration to evil pre-init 2017-04-23 13:25:04 -04:00
Boris Avdeev a6f8ebe94b common-lisp: make SPC m e keys behave like in elisp
* Make `SPC m e e` (eval last sexp) work in normal evil mode.
 * Add `SPC m e l` - go to end of line and eval last sexp.
2017-04-23 13:18:24 -04:00
syl20bnr 619609c8d7 common-lisp: move company related config to init-slime-company 2017-04-23 13:09:46 -04:00
dineshbhosale 0c91ad7acb Go : Update documentation for fixing autocomplete issues
Workaround for https://github.com/syl20bnr/spacemacs/issues/7784
2017-04-20 23:03:34 -04:00
Swaroop C H c376b3c98b [elixir] Update fn names - update to new names and remove extinct fns 2017-04-19 23:05:20 -04:00
Kevin van Rooijen 9a69d45107 Fix elm to not switch to root directory 2017-04-17 23:35:11 -04:00
Matthew J. Berger e1c5e87238 Add binding to open cargo docs in Rust layer. 2017-04-17 23:15:38 -04:00
Denis Bernard 9468599ea4 Improve go test output buffer behavior.
- Use compilation-start to get highlighting of compilation or runtime errors.
- Configure output window in popwin and window-purpose (so that it can be closed
  with C-g for example).
- Configurable buffer name.
2017-04-17 23:07:49 -04:00
Josh Greenwood 02d383255a elm layer docs: Adds note about indentation
Indentation in the elm layer was confusing to me at first so I thought it would be a good idea to add a note.  I stole the section from elm-modes docs: https://github.com/jcollard/elm-mode#indentation
2017-04-17 22:58:45 -04:00
YiLiu6240 b8a483721e Fix keybindings for ess layer
Change keybindings for sending function to REPL to be in line with
[Spacemacs convention](https://github.com/syl20bnr/spacemacs/blob/develop/doc/CONVENTIONS.org#send-code)
2017-04-17 22:35:41 -04:00
Pedro Algarvio 9c226d8201 .python-version can contain more than one version specified.
https://github.com/yyuu/pyenv/blob/master/COMMANDS.md#pyenv-local-advanced
2017-04-17 22:31:50 -04:00
Codruț Constantin Gușoi be33df7dc8 Fixes keybindings for gfm-mode 2017-04-17 21:49:20 -04:00
d12frosted 2ce65095ba use go-rename from MELPA 2017-04-17 20:03:53 -04:00
Codruț Constantin Gușoi 6b4900940f Fixes markdown org table saving 2017-04-17 19:48:13 -04:00
syl20bnr 7554affd49 Remove additional CUSTOM_IDs from docs 2017-04-17 19:36:38 -04:00
Remco Verhoef 8a69e08365 added dollar to match only function name
the check.f and run functions use regular expressions, without the dollar sign it will run not only function _2, but also _21, etc.
2017-04-17 17:52:47 -04:00
Robert O'Connor df6333d55c When using the meghanada backend with java, there is a small typo
In the compile prefix, there is a typo.
2017-04-16 11:14:59 -04:00
syl20bnr ea1c0d3e14 emacs-lisp: change edebug-go-mode key binding to c
As per convention.
2017-04-12 23:46:01 -04:00
hodge 32587a2458 fix spacemacs/edebug-instrument-defun-off and add a shortcut 2017-04-12 23:40:36 -04:00
syl20bnr 184a530596 python: hide YAPF lighter in modeline
Circled lighters in modeline are reserved for toggles under SPC t and SPC T
2017-04-12 23:18:42 -04:00
Robbert van der Helm 7af8321587 Diminish the YAPF minor mode indicator 2017-04-12 23:17:01 -04:00
tinysong 550eddd368 update go layer README.md 2017-04-11 23:57:57 -04:00
Benjamin Reynolds e09cb1beda Fix documentation for bundler keybindings in ruby layer 2017-04-11 23:56:24 -04:00
syl20bnr bf2892b198 csharp: use spacemacs/enable-flycheck 2017-04-09 23:03:07 -04:00