Commit graph

55 commits

Author SHA1 Message Date
Henrik Lissner
3f195614d9
Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
Elijah Malaby
a1e8fde75c Removed :select nil from cider-repl popup rules 2018-11-13 21:29:16 -05:00
Henrik Lissner
cb33d96bfa lang/clojure: fix +clojure/repl
cider-jack-in takes one argument.

Reported by @mfiano
2018-10-16 02:49:21 -04:00
Henrik Lissner
036a645058 lang/clojure: move command to autoload.el 2018-10-16 02:49:21 -04:00
Henrik Lissner
bef0f39535
lang/clojure: conform command to naming convention
Interactive commands in doom follow the `+module/name` naming convention. `+module|name` is used for hook functions.
2018-10-16 02:07:00 -04:00
Henrik Lissner
4fc7de442e
lang/clojure: group & update evil integration
Also removes evil-normalize-keymaps on cider-repl-mode-hook, because cider-repl-mode isn't a minor mode. The purpose of evil-normalize-keymaps is to ensure evil is aware of evil keybinds in minor-mode keymaps when it is first enabled.
2018-10-16 02:03:23 -04:00
Henrik Lissner
a25257d8da
lang/clojure: remove fuzzy completion for company
I prefer that fuzzy search is disabled by default, for consistency and performance. Fuzzy search tends to be much significantly slower, and no other company backend offers a fuzzy search mechanism (or should).

Fuzzy search is usually gated behind variables and flags, but since opting in here is a trivial one-liner, I don't think it needs one.
2018-10-16 01:55:38 -04:00
Michael Fiano
bd1f2ec4d6
lang/clojure: More changes
- Add a popup rule for the history buffer, since we want to see the REPL change while it's open
- Add hooks to enable company fuzzy completion
- Add more cider configuration options
- Configure Shift-Return to insert a newline and indent in the REPL without submitting the result
- Bind normal state keybindings for the CIDER history buffer
2018-10-15 23:08:59 -04:00
Michael Fiano
5ad27da2f1
lang/clojure: add binding to switch/set namespace
Add a local leader keybinding to both switch to the CIDER REPL buffer and set the namespace according to the file buffer.
2018-10-15 18:43:56 -04:00
Henrik Lissner
db7632b2b6
lang/clojure: persist cider repl history
Credit to @mfiano
2018-10-15 16:22:53 -04:00
Henrik Lissner
cade77e4a9
lang/clojure: bind cider-jack-in to clojure-mode
cider-quit kills cider-mode, rendering cider-mode-map keybinds
unavailable, so these commands have been moved to clojure-mode-map, to
ensure they're always available.

Reported by @mfiano
2018-10-15 16:22:53 -04:00
Henrik Lissner
1c847402c4
lang/clojure: fix eldoc support in clojure-mode 2018-10-15 00:50:39 -04:00
Michael Fiano
215ef4595c Added cider config and key bindings 2018-10-07 22:20:18 -04:00
Henrik Lissner
cdf745e72a
map!: remove buffer-local :desc properties
which-key labels are registered globally, and will not work for
buffer-local keybinds. Until general is brought in, we'll have to suffer
label-less localleader keybinds.
2018-10-07 21:34:24 -04:00
Henrik Lissner
1535a8d64a
lang/clojure: move flycheck-joker block 2018-09-09 16:35:16 -04:00
Henrik Lissner
59b1f7cd9b
Merge pull request #873 from mattly/clojure-flycheck-joker
Syntax-checking for clojure via joker
2018-09-09 16:34:43 -04:00
Matthew Lyon
ca033e714c Remove +joker flag for clojure layer
Flycheck apparently won't complain if joker isn't installed
2018-09-09 10:15:20 -07:00
Henrik Lissner
533355d7d5
lang/clojure: fix evil keybinds in cider repl 2018-09-09 09:58:21 -04:00
Henrik Lissner
7d3ffdff06
Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
Matthew Lyon
1f581a4e36 Add option for flycheck-joker for clojure
This is provided as a +feature on clojure because joker is not included
in the standard clojure distribution, and I wouldn't assume a given
clojurist has or wants to have it installed. But I think installing it
is the least-fuss option for syntax-checking clojure/script code in
emacs with flycheck.
2018-09-07 20:35:29 -07:00
Ruslan Kamashev
e28fea3777 Fix clj-refactor bindings 2018-09-08 03:55:11 +03:00
hackeryarn
765a078685 Merge branch 'develop' of https://github.com/hlissner/doom-emacs into develop 2018-08-19 14:29:21 -05:00
Henrik Lissner
6d1db77fae
Refactor lang/clojure & fix clojure handlers
Ensure repl/eval/lookup handlers are set soon enough to take effect in
first buffer.
2018-08-19 01:12:24 +02:00
hackeryarn
74e905cb68 added refactor shortcut to clojure 2018-08-09 21:22:55 -05:00
Benjamin Andresen
7b0d57a745 Cut: lang/clojure: unneeded + subjective parts
str => clojure.string is already defined in `cljr-magic-require-namespaces'
re-frame + reagent is subjective (for personal configuration)

fighweel aspect is now handled upstream by giving a prompt
see: `cider-cljs-repl-types'
2018-06-23 18:44:50 +02:00
Henrik Lissner
6808c46b58
💥 Change set-popup-rule! usage
Now accepts a flat plist of all its former parameters, including new
:parameters and :actions properties to increase your control over the
fate of your windows.

The old usage of set-popup-rule! is deprecated and may not work right!

The :ui popup module has also seen a major refactor to improve
efficiency and load times.

Sorry! This is the last "big" change before 2.1!
2018-06-18 02:34:16 +02:00
Henrik Lissner
c0251aacee
Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
Henrik Lissner
588359cc5f
Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler!
+ :repl => set-repl-handler!
+ Updates all internal references.
2018-06-15 16:20:20 +02:00
Henrik Lissner
d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
Henrik Lissner
1afc5965df
add-hook! -> add-hook for one-to-one hook 2018-06-10 22:25:29 +02:00
Marcelo dos Santos
ad5afa1ab2 Fix the hook variable 2018-06-09 13:26:36 -03:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
80adb9c1f6
General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
Henrik Lissner
5b80fce905
Merge pull request #473 from jcf/patch-1
Fix magic require of clojure.string
2018-03-24 06:38:34 -04:00
James Conroy-Finn
025ef9a7f8
Add Boot patterns to Clojure's modes 2018-03-24 09:20:22 +00:00
James Conroy-Finn
2d0d41fc1e
Add edn to Clojure mode extensions 2018-03-23 19:19:06 +00:00
James Conroy-Finn
a14b544559
Fix magic require of clojure.string 2018-03-23 19:03:01 +00:00
Henrik Lissner
5570fbb353
lang/clojure: refactor & add :eval/:repl support 2018-03-22 06:54:18 -04:00
Henrik Lissner
5ad4246cb9
lang/clojure: refactor; rainbow-delimiters-mode; :lookup
Also add auto-mode-alist entry for clojurec-mode
2018-02-14 06:08:30 -05:00
Henrik Lissner
08b479b06f
Rename popup parameter escape-quit => quit 2018-01-06 02:42:53 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00
Henrik Lissner
12c2208c53
lang/clojure: minor refactor 2017-12-08 01:05:44 -05:00
teesloane
dd0d568694 Remove unecessary keywords in clojure popup config 2017-12-06 13:56:16 -05:00
teesloane
26c16d431b PR review updates: fix repl, remove unidiomatic use-package things. 2017-12-05 09:58:46 -05:00
teesloane
fd40dee579 Add eval buffer shortcut. 2017-11-28 19:37:34 -05:00
teesloane
af5d0d3e4b Add eval at point to clojure mode 2017-11-28 19:29:37 -05:00
teesloane
9317c9bc39 fix broken clj 2017-11-26 17:26:24 -05:00
teesloane
bf9eb03558 add rainbow delimiters when loading clojure mode 2017-11-24 14:45:16 -05:00
teesloane
c10b01ba65 name space auto completion 2017-11-21 13:25:00 -05:00
teesloane
acded8c533 Add clj refactor 2017-11-18 14:54:05 -05:00