Commit graph

115 commits

Author SHA1 Message Date
nijohando d4ae5a3c2b fix: Rename deprecated cider function
"cider-jump-to-resource" has been renamed "cider-find-resource" in
CIDER 0.9.0
2018-02-17 16:09:06 -05:00
Adam Frey 5da932541b Fix typo in clojure/README 2018-02-17 16:09:06 -05:00
Dieter Komendera 5f6f9d2333 clojure: Enable safe structural editing for cljs, cljx and cljc
clojurescript-mode, clojurec-mode and clojurex-mode are used for .cljs, .cljc
and cljx files respectively, which should always be balanced and thus have safe
structural editing enabled.
2018-01-29 00:15:32 -05:00
syl20bnr 3cb9fea0ff Reset useful and useless buffers to empty lists
I feel like we should start from scratch on this one and carefully choose the
defaults.

Also this settings is a very personal setting so if we make some buffers
useless we must have a consensus on it. Marking all special buffers starting
with `*` as useless is too aggressive and make Spacemacs less POLA since two
consecutive press on SPC TAB may not revert to the original buffer.
2018-01-10 10:59:15 -05:00
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
syl20bnr 5700fc5b0a Fix typos in doc for safe structural editing 2018-01-04 01:55:54 -05:00
syl20bnr 2cb98447af Move evil-cleverparens to spacemacs-evil with major mode toggle
Delete layer evil-cleverparens and move the package to spacemacs-evil layer.

The feature is called "Safe structurral editing" for lisp dialects. Support for
it is added via pre-init functions in each of the concerned layer and proper
documentation is added to their README.org files.

This also removes the recently added package evil-smartparens. The goal is
to choose the best package for evil safe structural editing. For now we use
evil-cleverparens as we supported it first, if evil-smartparens is shown to be
a better package we will be able to switch to it.
2018-01-04 01:40:52 -05:00
Robbert van der Helm c61ae1a1c1 Add ivy support to the gtags layer
It would be much better to have a single function for each layer that
initializes ggtags, helm-gtags and counsel-gtags for a mode.
2017-12-17 22:03:01 -05:00
bfay 5bb9dc1320 fix cider-inspector-prev-page binding, also add 'p' as another key binding 2017-12-17 21:54:50 -05:00
Ag Ibragimov 2be8400975 Improves jump-to-definition for Clojure modes 2017-12-17 21:53:59 -05:00
syl20bnr 19b42377bb clojure: document clojure-cheatsheet in README.org 2017-12-17 19:51:13 -05:00
Michael van der Nest e3e94b8568 Added clojure-cheatsheet to clojure documentation.
see https://github.com/clojure-emacs/clojure-cheatsheet
2017-12-17 19:43:59 -05:00
syl20bnr 98ca4821a1 clojure: add missing file header to packages.el 2017-08-28 10:44:59 -04:00
J. Patrick Lanigan df7af0ad20 Fix features format in misc README.org's
See #9346
2017-08-22 21:27:13 +03:00
JAremko 06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
John Stevenson 2ecfbef20a Add keybinding to toggle between a keyword & a string
The function `clojure-toggle-keyword-string` will convert a string to a keyword,
or keyword to a string.

The keybinding is added under the Clojure refactor menu, in the
"cycle/clean/convert" section.

`SPC m r c :`

As this is a `clojure-mode` function, it is defined in the clojure-mode
refactoring keybinding section of packages.el.
2017-07-21 14:46:12 +03:00
syl20bnr e2e532bb49 core: change <function>p to <function>-p suffixes for consistency
Also defined aliases for backward compatibility with `usedp` functions.
2017-07-02 10:09:39 -04:00
Tim Jäger 2985a26901 Add keybinding for cider-pprint-eval-last-sexp 2017-06-21 09:34:37 +02:00
Eivind Fonn 9014197722 clojure: fix spacefmt tests 2017-05-30 12:34:31 +02:00
James Conroy-Finn c56c927641 Bind <leader>msX to restart Cider 2017-05-30 12:00:35 +02:00
Eivind Fonn dce3cd4c0e clojure: define keys in :init 2017-05-30 11:58:17 +02:00
Eivind Fonn 7fd8caa344 Bugfix: missing -hook suffix 2017-05-29 16:52:39 +02:00
Eivind Fonn fab3b2a4e4 Clean up parinfer layer
- Move to misc instead of vim
- Move add-hook calls into dependent layers
- Improve readme
2017-05-29 11:36:46 +02:00
Ivan Kryvoruchko 1d2392ad1d Fix sayid clojure debugger documentation typo 2017-05-26 10:47:34 +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
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 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
Ryan Fowler 5d613b63d2 store cider repl history in spacemacs cache 2017-05-23 15:18:21 +02: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
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
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
syl20bnr 78f098ae46 Revert go-coverage to SPC m g c and move create-tages to SPC m g C
SPC m g C is only used in Clojure whereas SPC m g c is used in various layers.
This is simpler to just move create tags to SPC m g C and move the clojure
bindings to SPC m g c (since it is not used in the clojure layer).
2017-03-30 22:07:16 -04:00
Juraj Martinka c48921ab2d Fix typo in Clojure layer README 2017-03-02 16:12:37 +01: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
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
ilia acb2d379c0 Fix cider and cider-repl modes in company configuration 2017-01-07 00:21:45 +03:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05: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
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
drew.okane 197eb982b2 Add Clojure to org-babel-load-languages 2016-10-08 19:30:05 +02:00
syl20bnr a3750146c3 clojure: move SPC m s k to SPC m s C 2016-10-03 00:23:52 -04:00
syl20bnr 5f759f6df0 clojure: add SPC m = key binding
per convention
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
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