Commit graph

131 commits

Author SHA1 Message Date
Krzysztof Baranowski
5d77d317a3
fix(clojure): obsolete ref to cider-repl-print-length
cider-repl-print-length has been obsolete for a long time.
2024-03-05 01:12:34 -05:00
Ellis Kenyo
e47accb773 fix(modeline): update icons for +light 2023-09-15 01:51:09 +02:00
Ellis Kenyo
23a39b0a14
fix(clojure): remove executable-find formatter check 2023-09-13 20:21:08 +01:00
Ellis Kenyo
79172239a7
fix(clojure): prefer cljfmt now it supports STDIN 2023-09-13 20:21:08 +01:00
Ellis Kenyő
9a7eae77c8
feat(format): add :lang clojure formatter 2023-09-13 20:20:59 +01:00
Jeetaditya Chatterjee
4696f0d4ce
tweak(syntax): feat gate flycheck in all modules 2023-07-25 00:11:09 +01:00
Henrik Lissner
9064287102
fix(clojure): tree-sitter in clojure{c,script}-mode
Fix: #7250
2023-07-24 23:03:13 +02:00
Ellis Kenyo
9d6a7b7d4b fix(clojure): load against the correct package
The cider library is loaded too late for clojure-mode to rely on, so we
load after the cider-mode package instead.

Fix: #7130
2023-03-20 18:29:16 -04:00
Henrik Lissner
719716cf20
fix(clojure): eager localleader keybind
This breaks Doom in scenarios where the user has set a non-standard
doom-localleader-key, because the module is binding a localleader key
too early in the startup process.

Amend: ca90c5e83c
Fix: #7130
Ref: #7136
2023-03-09 18:26:53 -05:00
Ellis Kenyo
99c6949e54 feat(clojure): add support for jet & neil 2023-02-24 02:55:16 -05:00
Ellis Kenyo
ca90c5e83c fix(clojure): improve how cljr is loaded 2023-02-24 02:55:16 -05:00
Jeetaditya Chatterjee
40905d2c5a feat(tree-sitter): add support for more langs
in this case clojure and fennel
2023-02-21 20:51:33 -05:00
Yoav Marco
83a53259fe
fix(clojure): undefined face on +light modeline
Amend: #5730
2023-02-21 03:30:36 -05:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
3239ab8b2e
nit(mu4e): neutralize comments
Some of our comments/docs can come off as disparaging or snide. They're
glimpses of unfiltered frustration or snarky rubber ducking gone too
far, something I can totally sympathize with, as a scatterbrained
tinkerer, unwittingly made responsible for a lot of work that isn't mine
because of Doom's position as a middleman. But now that Doom has a
veritable userbase, I'd like to hold it to a higher standard.

Light-hearted banter and aired grievances in our source code,
documentation, or community are fine if focused on the problem or the
personal/shared experiences of the community (things that offer value or
amusement to others), but it is never acceptable to attack people or
their efforts. Especially not the very people on whose shoulders Doom
stands.

I sincerely apologize if these have offended you.

Amend: b07614037f
2022-08-14 20:36:42 +02:00
Henrik Lissner
9cb4c8b637
fix(:lang): ensure lsp! is always appended to hooks 2022-07-25 18:12:03 +02:00
Henrik Lissner
7d8b7b4fc2
fix(clojure): adjust buffer-local hook, not global
Though the global side-effect likely had no effect, it's better that our
hacks don't overstep their bounds.
2022-06-17 21:58:54 +02:00
Henrik Lissner
77e9932966
bump: :core
Fuco1/smartparens@37f77bf2e2 -> Fuco1/smartparens@ec15aaa748
Wilfred/helpful@67cdd1030b -> Wilfred/helpful@209971ba9f
bbatsov/projectile@f3468e8d20 -> bbatsov/projectile@4d6da873ae
domtronn/all-the-icons.el@65c496d3d1 -> domtronn/all-the-icons.el@ca1ef30004
emacs-straight/project@4fe1eec803 -> emacs-straight/project@c52ec93689
jscheid/dtrt-indent@66fc30af02 -> jscheid/dtrt-indent@57f4072fa8
justbur/emacs-which-key@1217db8c63 -> justbur/emacs-which-key@1ab1d0cc88
raxod502/straight.el@e2de88ea0e -> radian-software/straight.el@0e204d418d

Includes a fix for #5207 (see radian-software/straight.el#955), which
occasionally caused arrayp errors when installing/upgrading packages.

Fix: #5207
Ref: radian-software/straight.el#955
2022-06-17 18:21:23 +02:00
Eric Dallo
d9e66630b5 feat(clojure): improve default variables when +lsp 2022-04-16 18:12:52 +02:00
Zane Shelby
9db71bb7a5 fix(clojure): add clojurec-mode repl+eval handlers 2022-01-10 02:22:21 +01:00
Henrik Lissner
cbf911289f bump: :lang clojure
borkdude/flycheck-clj-kondo@a558bda44c -> borkdude/flycheck-clj-kondo@d8a6ee9a16
clojure-emacs/cider@7228402c09 -> clojure-emacs/cider@af2e164998
clojure-emacs/clj-refactor.el@4cb75bd6a2 -> clojure-emacs/clj-refactor.el@12af23ad8b
clojure-emacs/clojure-mode@e1dc7caee7 -> clojure-emacs/clojure-mode@e31186843d
2022-01-03 16:51:51 +01:00
Filipe Silva
f18a8ad109 fix(clojure): clojurec-mode -> clojurec-mode-map
See https://github.com/hlissner/doom-emacs/issues/5762#issuecomment-978337753
2021-11-25 00:00:33 +01:00
Henrik Lissner
df64f5f94b fix(clojure): localleader labels in clojurec-mode
Fix: #5762
2021-11-24 22:12:10 +01:00
Eric Dallo
8f816cf8b9 feat(clojure): improve cider repl icon state 2021-11-18 19:05:02 +01:00
Joshua Suskalo
9dc0d10c09
fix(clojure,org): use cider for org-babel
More than a year ago a change was added to ob-clojure that prevented
evaluating a Clojure code block without setting
`org-babel-clojure-backend'. This change sets this to a default value of
CIDER, since that is the main tool used in Doom.

Without this change, manual configuration is required to use Clojure in
org babel documents.

Close #5233
2021-08-01 15:26:55 -04:00
Eric Dallo
f368745406
Fix eval on modeline 2021-05-15 18:35:19 -03:00
Eric Dallo
c224e2e771
Move to global-mode-string 2021-05-15 18:30:59 -03:00
Henrik Lissner
cd33874e41 lang/clojure: don't autokill cider repl buffers 2021-03-27 18:27:02 -04:00
Fredrik Eckardt
b1880372af [feature] Better CIDER debugging
* Maps cider-debug-at-point to "localleader d d"
* Overrides evil keybindings to not interfere with the cider--debug-mode
  bindings during the debug session
2021-02-07 02:38:27 +00:00
Seth Mason
d075081899
Add cider pprint to local map. (#4461)
* Add cider-pprint defuns  to local map.

Add the `cider-pprint-*` defuns to `<localleader> p`.

* Merge hanging paren

Co-authored-by: Seth Mason <seth@sethmason.com>
Co-authored-by: Henrik Lissner <accounts@v0.io>
2021-01-03 18:43:44 -05:00
Eric Dallo
1e46053182
Allow cider highlight deprecated symbols 2020-06-22 19:41:34 -03:00
Henrik Lissner
06d5d5e6c0
General refactors, reformatting & comment revision 2020-04-23 23:56:17 -04:00
Henrik Lissner
71c5ad5000
Move clojure SPC m m {e,E} -> to SPC m {m,M}
To be consistent with CL and elisp keybinds.
2020-04-17 15:47:05 -04:00
Henrik Lissner
5150252595
Prevent premature color calculations on cider-doc 2020-04-16 21:33:02 -04:00
Henrik Lissner
803ba23298
Allow lsp-clojure & cider to work together 2020-02-26 13:02:19 -05:00
Akhil Wali
c3f3f83a79 Fix syntax error in modules/clojure/config.el 2020-02-25 20:00:44 +13:00
Henrik Lissner
993ad257e3
Merge pull request #2580 from yuhan0/change-clj-linter
Change clojure linter to clj-kondo
2020-02-24 20:44:44 -05:00
Henrik Lissner
a65403011e
lang/clojure: add +lsp support 2020-02-23 16:26:10 -05:00
Henrik Lissner
b30f38ac06
Minor refactor & reformatting across the board 2020-02-23 15:42:43 -05:00
yuhan0
3c8520b1fc Change clojure linter to clj-kondo 2020-02-22 15:26:01 +08:00
Henrik Lissner
12094788d7
Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
James Conroy-Finn
21c55b0c43
Use newer cider-ns-refresh in Clojure bindings
Cider deprecated `cider-refresh` in favour of `cider-ns-refresh` in
version 0.18.

https://github.com/clojure-emacs/cider/blob/master/CHANGELOG.md#changes-6
2020-01-06 16:57:26 +00:00
Henrik Lissner
44fcbb52dc
Change format of doom-large-file-size-alist
Instead of mapping major modes to file size thresholds, it maps file
regexps (like auto-mode-alist) since the major mode cannot be known
before set-auto-mode is called (in after-find-file).
2019-12-25 02:13:53 -05:00
Henrik Lissner
322bca710a
General refactors & reformatting 2019-12-20 00:59:52 -05:00
J Hacksworth
f7acdc43f4 lang/clojure: Update to cider-clojuredocs
CIDER removed `cider-grimoire-web` as Grimoire is no longer available,
and now uses ClojureDocs:
- https://metaredux.com/posts/2019/06/29/farewell-grimoire.html
- https://github.com/clojure-emacs/cider/issues/2663
2019-12-18 15:25:35 -05:00
Henrik Lissner
3c90c6994b
lang/clojure: set large-file-size threshold to 0.5mb 2019-12-02 20:22:01 -05:00
yuhan0
17957a666d [clojure] Check for nrepl-server-buffer in advice
When using cider-connect to an external server this function would throw
an exception because nrepl-server-buffer is nil
2019-10-31 10:47:48 +08:00
Henrik Lissner
0b67251159
tools/eval: associate plist with repl handlers
Also consolidates all REPLs (opened through the :tools eval module)
under one popup rule, which inhibits ESC from prematurely closing
them (#1944), and cleans up after their buffers *only* if their handlers
weren't specified to :persist, e.g.

  (set-repl-handler! 'some-mode #'some-repl-handler :persist t)

Also standardized ESS's REPL commands.
2019-10-23 21:41:23 -04:00
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