Commit Graph

55 Commits

Author SHA1 Message Date
5cb34fa151 refactor!: remove highlight-numbers
BREAKING CHANGE: Numerics will no longer be syntax highlighted in major
modes that don't already have their own (or provided by tree-sitter). No
substitute will be provided because it's trivial for the user to install
themselves.

Ref: https://github.com/orgs/doomemacs/projects/5/views/1?pane=issue&itemId=117610783
2025-06-29 18:53:40 +02:00
df3d64aa07 fix(elixir): unbalanced paren in add-hook call
Amend: 4e2449031e
Amend: #8284
2025-02-25 01:08:33 -05:00
4e2449031e fix(elixir): start lsp when ts and lsp are enabled
LSP will now correctly auto start when you have both +lsp and
+tree-sitter flags on elixir module.
2025-02-24 23:39:36 -05:00
448bc5cae2 refactor: use negated flags
Ref: 7a806521a92c
2024-10-20 02:41:50 -04:00
d3124c4971 nit: add deprecation comments for projectile config
Ref: doomemacs/core#1
2024-08-09 20:42:33 -04:00
4696f0d4ce tweak(syntax): feat gate flycheck in all modules 2023-07-25 00:11:09 +01:00
221e75e739 refactor!(elixir): remove alchemist
BREAKING CHANGE: alchemist appears to be unmaintained and has reportedly
been replaced by elixir-ls and LSP (#5488). To restore your Elixir dev
environemnt, enable :lang (elixir +lsp) and install elixir-ls via your
package manager or 'M-x lsp-install-server'.

Close: #5488
2023-03-22 17:57:38 -04:00
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
a70e634ebd refactor(:lang): move tree-sitter init
Moved add-hook calls (for tree-sitter initialization) into their
respective modes' config blocks, or nearby, to be consistent with how
other, similar tools (like lsp!) are initialized, and does so at
runtime, rather than at expansion/compile time, which eval-when! caused.
2022-07-25 17:34:44 +02:00
152f0e0f91 feat(elixir): add tree-sitter support 2022-05-22 21:26:09 +01:00
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
d8285d9d4c fix(elixir): eval & repl handlers
set-{eval,repl}-handler! operate on major modes, not minor modes (this
should be corrected upstream, but I'll do so later). This doesn't apply
to set-lookup-handlers!, but I'm changing it too for consistency.
2022-01-05 04:02:30 +01:00
f3b71b0495 fix regex in lsp-file-watch-ignored-directories in elixir module 2021-05-14 21:31:41 +02:00
1197d640f1 Defer adding to LSP ignore list
It was attempting to add to the LSP list too early and erroring,
this adds an after! call to make it wait
2021-05-05 12:33:33 -04:00
7955234308 Improve Elixir module keymaps
Added more major-mode keymappings to expose more of the functionality of
Alchemist.el to the user and generally make the Elixir mode a lot more
useful feeling.
2021-05-04 18:15:42 -04:00
80992a0cae Update config.el 2020-11-14 15:35:07 -07:00
3de0d4074d Update modules/lang/elixir/config.el 2020-11-14 15:34:30 -07:00
9d46c212af Updates for formatting and init hook 2020-11-12 08:58:19 -07:00
95ef7f33b1 Add exunit mode modeled after rspec-mode 2020-10-22 18:39:59 -06:00
7081d833f6 Move :ui pretty-code to :ui ligatures
Includes a major refactor of the module.
2020-08-20 02:14:32 -04:00
6a64f37435 Minor refactors & revision across the board 2020-07-31 01:39:24 -04:00
ad6da92fcf Update config.el 2020-07-22 19:05:48 -06:00
03add77b75 Elixir formats long numbers with an underscore 2020-07-22 10:10:05 -06:00
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
5276762daa Update feature check of flycheck in elixir mode
This patch updates the check for enabling flycheck bindings to the new
module location.
2020-01-14 08:53:30 +01:00
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
2d365619cd General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
887a36aacf Add support for Elixir LSP via elixir-ls
- Document Elixir with LSP via elixir-ls
- Add ~+lsp~ flag to ~:lang elixir~
2019-07-26 22:17:01 +03:00
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
d59405b282 Minor comment revision & refactors 2019-07-23 00:30:45 +02:00
7c9e96da87 General module refactor 2019-03-02 02:04:11 -05:00
69ed1a4a99 feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
d6cb0ec5f5 General cleanup & minor refactoring 2018-12-22 04:25:15 -05:00
c2bce8cee4 lang/elixir: src_block{,_end} commented out 2018-12-06 17:09:00 +11:00
1dc3e5289b lang/elixir: add pretty-symbols 2018-12-06 17:05:50 +11:00
3a23ff56cd General formatting & minor refactors 2018-09-02 17:20:19 +02:00
92cfcf3627 lang/elixir: conditionally install flycheck-credo
And register flycheck-credo after elixir-mode loads.
2018-09-01 16:17:52 +02:00
f30a210428 Add flycheck-credo for lang/elixir 2018-08-31 11:28:28 +02:00
cba5270a7c Fix sp-elixir-skip-def-p void-function error #712 2018-06-25 20:19:33 +02:00
8a4f15b01c Refactor smartparens default rules
Move them to config/default, but move single-lang-specific ones to their
respective modules.
2018-06-25 15:54:38 +02:00
c0251aacee Replace :lookup with set-lookup-handlers! autodef
And update all internal references.
2018-06-15 17:27:48 +02:00
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
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
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
80adb9c1f6 General refactor for consistency & idempotency
Also updated comments
2018-05-18 01:26:41 +02:00
8cab2f19fd Remove redundant config & auto-mode-alist entries
Much of this config is done in package autoloads, and now that
auto-mode-alist is cached in doom-package-alist (after reading autoload
files), we can save some space by removing redundant config.
2018-05-14 20:48:14 +02:00
dc33c72d19 Refactor removal of default smartparens rules for certain modes 2018-04-18 18:29:48 -04:00
8c0a4cfbef lang/elixir: refactor smartparens+use-package config 2018-03-27 19:42:56 -04:00
84e98f1bee Add REPL definition for elixir-mode. 2018-03-26 20:19:48 +02:00
42cee2e046 Update :jump => :lookup 2018-01-05 23:57:48 -05:00