Commit graph

18 commits

Author SHA1 Message Date
Ellis Kenyő
c6291ecfc0
fix(erlang): remove executable-find formatter check 2023-09-13 20:21:03 +01:00
Ellis Kenyő
a9b4f6e219
feat(format): add :lang erlang formatter 2023-09-13 20:20:59 +01:00
Jeetaditya Chatterjee
fd7ac6710e feat(tree-sitter): add support for more languages
In this case
- lua
- erlang
- ess-r
- yaml
2023-02-21 20:51:33 -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
d58d084774
tweak(:lang,:tools): start eglot/lsp-mode later
To ensure lsp/eglot settings have precedence over local servers (e.g.
cider and lookup handlers).

Ref: clojure-emacs/cider#3170
2022-03-30 17:32:47 +02:00
GilbertWong
0e99b6b952
refactor!(erlang): remove company-erlang
BREAKING CHANGE: Remove `company-erlang` which depends on
`ivy-erlang-complete`. `company-erlang` and `ivy-erlang-complte` have
not been maintained now. The lsp mode provides much better experience
than `company-erlang` and `ivy-erlang-complete`. The
`ivy-erlang-complete` package also has the defect that slow down the
erlang-mode buffer when the buffer is huge enough. It is not a good
choice to integrate ivy-erlang-complete nowadays even as a non-LSP
option.
2022-01-04 10:44:18 +08:00
Henrik Lissner
62c1e5b6c9
Bump :checkers syntax
flycheck/flycheck@cd8e0a2 -> flycheck/flycheck@79c9245

Fixes #4264: flycheck-rebar3 moved into flycheck
2020-11-13 13:11:34 -05:00
Henrik Lissner
cf180bea92
Remove ivy-erlang-complete
It's redundant with company-erlang, which uses ivy-erlang-complete as a
backend anyhow.

Fixes #2786
2020-03-28 20:08:24 -04:00
Peter Steidel
1d91d9c6d6 Erlang LSP module improvements
- Add README.org
- Make it so other completion frameworks don't compete with the lsp module
- load lsp via erlang-local-vars-hook
2020-01-14 19:11:49 -05:00
Peter Steidel
89dd2f98a4 Add LSP Support to Erlang 2020-01-14 14:18:52 -05:00
Henrik Lissner
12094788d7
Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04: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
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
f6dc6ac74e
Refactor out map.el usage
After some profiling, it turns out map-put and map-delete are 5-7x
slower (more on Emacs 25) than delq, setf/alist-get and add-to-list for
small lists (under 250 items), which is exactly how I've been using
them.

The only caveat is alist-get's signature is different on Emacs 25, thus
a polyfill is necessary in core-lib.
2018-06-23 19:53:54 +02: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
Paul Schoenfelder
b476cda182 Provide erlang language support 2018-04-06 18:36:00 -05:00