Skip to content

Commit

Permalink
[emacs] Replace erlang-mode with erlang-ts-mode
Browse files Browse the repository at this point in the history
This uses tree-sitter for highlighting and doesn't have to download
the whole erlang source code
  • Loading branch information
erickgnavar committed Oct 27, 2024
1 parent 1af1a01 commit 14bbb54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 7 additions & 15 deletions .emacs.d/bootstrap.org
Original file line number Diff line number Diff line change
Expand Up @@ -2215,21 +2215,13 @@ Show a list of the available django commands and run the selected one using a co

** Erlang

Clone erlang source code into =~/Code/erlang/src/=

#+BEGIN_SRC sh
git clone https://github.com/erlang/otp.git ~/Code/erlang/src/
#+END_SRC

#+BEGIN_SRC emacs-lisp
(use-package erlang
:ensure t
:defer t
:if (executable-find "erl")
:config
(setq erlang-root-dir (expand-file-name "~/Code/erlang/src"))
(require 'erlang-start))
#+END_SRC
#+begin_src emacs-lisp
(use-package erlang-ts-mode
:straight (erlang-ts-mode
:type git
:host github
:repo "sebastiw/erlang-ts-mode"))
#+end_src

** Elixir

Expand Down
2 changes: 1 addition & 1 deletion .emacs.d/straight/versions/default.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
("embark" . "b9f2b3b9a5b9c72cf1416097b9941c4f275dae94")
("emmet-mode" . "0d03a59201383f37632f718012bd835222d11a8d")
("envrc" . "532ecdab48d073963ba5b581c06f3c0b83db05a6")
("erlang-ts-mode" . "ba5a01a2d7731a6fbf6129c6c8556fbceeb7d8a9")
("esup" . "c9c95e245068d15d8e2732098af9a5d2bc8ec931")
("evil" . "0b134d3bbf73c93f5fed2bb89a35f408a9d627ed")
("evil-collection" . "e49d8e96ccc83d2bf7583c124582fc1ef076b15c")
Expand Down Expand Up @@ -108,7 +109,6 @@
("orderless" . "6936fe46ef07df168a423f04efeda130b4e69753")
("org-modern" . "96cd1dc2c8f523f1f4f02b927375deaa924368b4")
("org-tree-slide" . "7126a4365072a32898f169ead8fb59265dabc605")
("otp" . "44a56d6759b162a0f99e5cd92e2b1398604accac")
("package-lint" . "4ea8318c1bf79ccb1b4658d58917bbd9f990c432")
("paredit" . "814999bb320e6d5aaa9c8ff663b1933157129571")
("parrot" . "13757524f1c708b866f4aaab5a9fb3599a1c4f56")
Expand Down

0 comments on commit 14bbb54

Please sign in to comment.