Commit graph

83 commits

Author SHA1 Message Date
Henrik Lissner
9b25582be1
Reduce list of root files projectile searches for
And define them on a per-module basis. This reduces the number of file
checks it performs, particularly for non-project files.

Might help #1317
2019-10-19 22:22:49 -04:00
Henrik Lissner
3181933ed1
Minor refactoring and reformatting 2019-10-08 17:42:36 -04:00
Henrik Lissner
9857b3d481
lang/clojure: fix repl handler #1714 2019-10-08 17:42:36 -04:00
Henrik Lissner
4289df5bc2
lang/clojure: fix repl handler #1714
Also: minor refactor
2019-10-07 20:19:43 -04:00
Henrik Lissner
11a6c03d69
Standardize naming of repl handler commands 2019-10-07 14:08:58 -04:00
Henrik Lissner
051bceb0a8
Refactor localleader keybinds #1270
Introduces a select few of the localleader keybind standards proposed in
issue #1270, corrects a few typos and introduces more localleader
keybinds in general.

Co-authored-by: yuhan0 <>
2019-10-04 22:04:47 -04:00
Henrik Lissner
83c95ddaa0
lang/clojure: general refactor
To optimize load time and conform to new elips conventions introduced
with straight.el integration.
2019-09-13 22:00:34 -04:00
Nollo
50a9faa7c4 [ADD] new clojure/cider bindings 2019-07-29 09:17:14 +02:00
Henrik Lissner
0f9ce4de67
Merge pull request #1591 from nate/straight
Add more cider functions to the clojure keymap
2019-07-29 03:55:42 +02:00
Levi Tan Ong
e213509528
rebind "\"" to cider-jack-in-cljs
Originally `cider-jack-in-clojurescript` but said command was deprecated.
Copy of 1595 because history happened, and I don't know how to fix it. 😅
2019-07-29 01:23:18 +08:00
Henrik Lissner
19ecf8e46a
Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
Nathan Sutton
fdd5137907 Add more cider functions to the clojure keymap 2019-07-24 13:15:07 -05:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
56e1dfe9bb
lang/clojure: copy nrepl-server errors to repl
Makes them easier to notice!
2019-07-22 02:37:45 +02:00
Henrik Lissner
a201409fdd
Minor refactors across the board 2019-07-10 21:27:12 +02:00
Henrik Lissner
1c976dc0e4
Minor, general refactors
Also rename custom lookup handlers for consistency and use the new
inline :async property instead.
2019-05-02 17:57:31 -04:00
Henrik Lissner
237e14ae7b
lang/clojure: fix lookup-def handler #1360 2019-04-24 21:32:26 -04:00
Henrik Lissner
77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
Ivan Kryvoruchko
dfad10e843
Set Clojure lookup handlers for specific minor modes to avoid overwriting
Fixes issue #1357 https://github.com/hlissner/doom-emacs/issues/1357
2019-04-24 18:03:56 +03:00
Thiago Kenji Okada (Nubank)
3eb9caf167 Add some maps in cider-repl major mode 2019-04-18 20:59:46 -03:00
Thiago Kenji Okada (Nubank)
8cce11fc82 Fix SPC m r c in clojure-mode
Map it to 'cider-find-and-clear-repl-output instead of
'cider-repl-clear-buffer (that does not work inside Clojure
buffer).
2019-04-18 20:58:09 -03:00
Henrik Lissner
093dddff4a
lang/clojure: minor refactor 2019-03-12 12:28:57 -04:00
Henrik Lissner
7c9e96da87
General module refactor 2019-03-02 02:04:11 -05:00
Henrik Lissner
69ed1a4a99
feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
Henrik Lissner
ec55884aae
General, minor reformatting & refactor 2019-02-18 00:47:46 -05:00
Henrik Lissner
a9f2aadd94
Merge pull request #1142 from gsnewmark/add-descriptions-to-clojure-mode-map
Add descriptions for clojure-mode map
2019-02-16 01:21:44 -05:00
Ivan Kryvoruchko
bab37d3047
Fix Clojure def/doc lookup handlers, add references one 2019-01-26 15:34:32 +02:00
Ivan Kryvoruchko
6750c84af5
Add descriptions for clojure-mode map 2019-01-26 15:06:14 +02:00
Henrik Lissner
379a45978c
lang/clojure: remove :n from cjr-help-menu hydra
They're ignored anyhow.
2019-01-05 15:05:49 -05:00
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
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