# \#emacs

**URL:** https://forum.elixirforum.com/tag/emacs/68.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Emacs' Flycheck only picks up mix credo after running it once from Eshell?](https://forum.elixirforum.com/t/emacs-flycheck-only-picks-up-mix-credo-after-running-it-once-from-eshell/76458)

<div class="topic-metadata">

**Author:** [@psy-q](https://forum.elixirforum.com/u/psy-q)\
**Replies:** 0\
**Last updated:** [August 25, 2026, 11:04am UTC](https://forum.elixirforum.com/t/emacs-flycheck-only-picks-up-mix-credo-after-running-it-once-from-eshell/76458 "2026-08-25T11:04:37Z")

</div>

I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up credo once added to the mix deps, but it can’t seem to start it without some faffing…

---

## [Emacs - Elixir Setup Configuration Wiki](https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 226\
**Last updated:** [January 3, 2025, 12:54pm UTC](https://forum.elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196 "2025-01-03T12:54:22Z")

</div>

This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects concrete information about configuring Emacs to be an Elixir editing environment. Re…

---

## [Can't make dialyzer works on Emacs + LSP setup](https://forum.elixirforum.com/t/cant-make-dialyzer-works-on-emacs-lsp-setup/63676)

<div class="topic-metadata">

**Author:** [@squiter](https://forum.elixirforum.com/u/squiter)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 5:10pm UTC](https://forum.elixirforum.com/t/cant-make-dialyzer-works-on-emacs-lsp-setup/63676 "2024-05-21T17:10:10Z")

</div>

Hey folks, I can’t manage to make my Emacs + LSP setup to work… something is odd… I’m using: elixir 1.16.2-otp-25 erlang 25.3 Emacs 29.3 I’m using asdf to install elixir and erlang. My lsp config: (use-package lsp…

---

## [Emacs Elixir lsp-mode broken](https://forum.elixirforum.com/t/emacs-elixir-lsp-mode-broken/60816)

<div class="topic-metadata">

**Author:** [@xavaav](https://forum.elixirforum.com/u/xavaav)\
**Replies:** 4\
**Last updated:** [February 29, 2024, 12:09pm UTC](https://forum.elixirforum.com/t/emacs-elixir-lsp-mode-broken/60816 "2024-02-29T12:09:07Z")

</div>

Hi All, I’m not sure what happened but my Elixir LSP (in emacs) has stopped working ( I haven’t done anything to my .emacs file), it tries to restart with the error: Server elixir-ls:2340/starting exited (check corresp…

---

## [How to configure emacs so that it indents code within ~H sigil quotes properly?](https://forum.elixirforum.com/t/how-to-configure-emacs-so-that-it-indents-code-within-h-sigil-quotes-properly/58413)

<div class="topic-metadata">

**Author:** [@anuvrat](https://forum.elixirforum.com/u/anuvrat)\
**Replies:** 0\
**Last updated:** [September 21, 2023, 8:20am UTC](https://forum.elixirforum.com/t/how-to-configure-emacs-so-that-it-indents-code-within-h-sigil-quotes-properly/58413 "2023-09-21T08:20:05Z")

</div>

Just that. My current emacs config messes up the indentation for the colocated template code living in .ex files. Has anyone here figured it out yet? Thanks.

---

## [Elixir TS Mode has been marged into Emacs!](https://forum.elixirforum.com/t/elixir-ts-mode-has-been-marged-into-emacs/54543)

<div class="topic-metadata">

**Author:** [@hochata](https://forum.elixirforum.com/u/hochata)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 7:25pm UTC](https://forum.elixirforum.com/t/elixir-ts-mode-has-been-marged-into-emacs/54543 "2023-03-13T19:25:21Z")

</div>

Hi, I just wanted to inform you that the Tree-sitter based mode for Elixir (available here) has just been merged into Emacs. That means that the next Emacs release will have out of the box support for both Elixir and H…

---

## [Need help testing emacs elixir-tree-sitter](https://forum.elixirforum.com/t/need-help-testing-emacs-elixir-tree-sitter/43975)

<div class="topic-metadata">

**Author:** [@wingyplus](https://forum.elixirforum.com/u/wingyplus)\
**Replies:** 6\
**Last updated:** [July 12, 2022, 7:00am UTC](https://forum.elixirforum.com/t/need-help-testing-emacs-elixir-tree-sitter/43975 "2022-07-12T07:00:00Z")

</div>

Hi, I’m working on bringing tree-sitter-elixir to emacs tree-sitter-lang to make support syntax highlighting. The branch that I’m working on is here. You can clone and point to the package via load-path for or use-packa…

---

## [Tips: Syntax highlight for inline ~L liveview code in emacs](https://forum.elixirforum.com/t/tips-syntax-highlight-for-inline-l-liveview-code-in-emacs/26445)

<div class="topic-metadata">

**Author:** [@lukertty](https://forum.elixirforum.com/u/lukertty)\
**Replies:** 5\
**Last updated:** [December 11, 2021, 7:46pm UTC](https://forum.elixirforum.com/t/tips-syntax-highlight-for-inline-l-liveview-code-in-emacs/26445 "2021-12-11T19:46:00Z")

</div>

Install web-mode and mmm-mode first and put this in your config file: (require 'mmm-mode) (require 'web-mode) (setq mmm-global-mode 'maybe) (setq mmm-parse-when-idle 't) (setq mmm-set-file-name-for-modes '(web-mode)) (c…

---

## [How to setup doom emacs elixir yasnippets?](https://forum.elixirforum.com/t/how-to-setup-doom-emacs-elixir-yasnippets/39537)

<div class="topic-metadata">

**Author:** [@eddy147](https://forum.elixirforum.com/u/eddy147)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 8:46pm UTC](https://forum.elixirforum.com/t/how-to-setup-doom-emacs-elixir-yasnippets/39537 "2021-07-16T20:46:05Z")

</div>

I am trying to have a proper setup for Elixir in doom emacs. I have code completion with LSP, the next thing I would like to have is the help of yasnippets. But I have no clue how to set it up, nor can I find any docum…

---

## [Emacs like editor in Elixir](https://forum.elixirforum.com/t/emacs-like-editor-in-elixir/34648)

<div class="topic-metadata">

**Author:** [@achempion](https://forum.elixirforum.com/u/achempion)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 4:45am UTC](https://forum.elixirforum.com/t/emacs-like-editor-in-elixir/34648 "2020-09-30T04:45:41Z")

</div>

Hi, I’m exploring the idea of writing Emacs-like terminal editor in Elixir. The base idea is to run mix run --no-halt and then use libraries like GitHub - ndreynolds/ratatouille: A TUI (terminal UI) kit for Elixir · G…

---

## [Using ElixirLSP with Vagrant](https://forum.elixirforum.com/t/using-elixirlsp-with-vagrant/34413)

<div class="topic-metadata">

**Author:** [@zkessin](https://forum.elixirforum.com/u/zkessin)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 5:47pm UTC](https://forum.elixirforum.com/t/using-elixirlsp-with-vagrant/34413 "2020-09-16T17:47:33Z")

</div>

I have been putting off using ElixirLSP for a while and figure it it is time to jump on the bandwagon. However I have not been able to find one thing. I am running my code inside a vagrant VM and I am not sure how to set…

---

## [Html.eex mode for emacs?](https://forum.elixirforum.com/t/html-eex-mode-for-emacs/34339)

<div class="topic-metadata">

**Author:** [@slouchpie](https://forum.elixirforum.com/u/slouchpie)\
**Replies:** 4\
**Last updated:** [September 14, 2020, 12:23am UTC](https://forum.elixirforum.com/t/html-eex-mode-for-emacs/34339 "2020-09-14T00:23:28Z")

</div>

I am a Spacemacs user. I still have not found a good mode for html.eex files. I’ve been using web-mode but the indentation gets crazy sometimes. Does anyone have any suggestions? Thanks.

---

## [Elixir-ls snippets insert tabs with emacs lsp-mode](https://forum.elixirforum.com/t/elixir-ls-snippets-insert-tabs-with-emacs-lsp-mode/33842)

<div class="topic-metadata">

**Author:** [@tjstankus](https://forum.elixirforum.com/u/tjstankus)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 4:29pm UTC](https://forum.elixirforum.com/t/elixir-ls-snippets-insert-tabs-with-emacs-lsp-mode/33842 "2020-08-19T16:29:06Z")

</div>

I haven’t hit upon the correct setting to solve the annoying problem in the image above: when snippets complete, tabs are inserted instead of spaces. I’ve tried a few things including verifying that indent-tabs-mode i…

---

## [Emacs Elixir syntax checking not working](https://forum.elixirforum.com/t/emacs-elixir-syntax-checking-not-working/16741)

<div class="topic-metadata">

**Author:** [@Pilgrim](https://forum.elixirforum.com/u/Pilgrim)\
**Replies:** 9\
**Last updated:** [July 5, 2020, 12:27am UTC](https://forum.elixirforum.com/t/emacs-elixir-syntax-checking-not-working/16741 "2020-07-05T00:27:11Z")

</div>

I use Emacs and have the following code in my init.el: (use-package elixir-mode :ensure t :hook (elixir-mode . (lambda () (add-hook 'before-save-hook 'elixir-format nil t)))) …

---

## [Using Vim or Emacs for dual-monitor development workflow](https://forum.elixirforum.com/t/using-vim-or-emacs-for-dual-monitor-development-workflow/30310)

<div class="topic-metadata">

**Author:** [@stefanluptak](https://forum.elixirforum.com/u/stefanluptak)\
**Replies:** 3\
**Last updated:** [April 2, 2020, 1:58pm UTC](https://forum.elixirforum.com/t/using-vim-or-emacs-for-dual-monitor-development-workflow/30310 "2020-04-02T13:58:38Z")

</div>

Hi all, I would like to follow up on the topic I posted here. Unfortunately, it seems that VSCode is not able to do this for me, so maybe I should try some other editor. I am playing with the idea of using Vim (NeoVim,…

---

## [How is snippet expansion/code completion supposed to work in Emacs with eglot/elixir-ls](https://forum.elixirforum.com/t/how-is-snippet-expansion-code-completion-supposed-to-work-in-emacs-with-eglot-elixir-ls/19685)

<div class="topic-metadata">

**Author:** [@Pilgrim](https://forum.elixirforum.com/u/Pilgrim)\
**Replies:** 4\
**Last updated:** [January 31, 2020, 12:15am UTC](https://forum.elixirforum.com/t/how-is-snippet-expansion-code-completion-supposed-to-work-in-emacs-with-eglot-elixir-ls/19685 "2020-01-31T00:15:24Z")

</div>

I’ve got elixir-mode and eglot configured in my emacs.d and it mostly works. One thing I can’t figure out though is how to work with the code completion (via company) in elixir code. Say I type defm at this point I get …

---

## [Emacs Web-mode left arrow without the right closing angle bracket](https://forum.elixirforum.com/t/emacs-web-mode-left-arrow-without-the-right-closing-angle-bracket/28378)

<div class="topic-metadata">

**Author:** [@Pilgrim](https://forum.elixirforum.com/u/Pilgrim)\
**Replies:** 7\
**Last updated:** [January 22, 2020, 6:10am UTC](https://forum.elixirforum.com/t/emacs-web-mode-left-arrow-without-the-right-closing-angle-bracket/28378 "2020-01-22T06:10:37Z")

</div>

When using Elixir html template (.eex) in web-mode, I sometimes need to type code like \<%= for bid \<- @bids do %\> . At the moment because the opening left angled bracked is closed immediately with a matching right angled…

---

## [Problems with spacemacs credo and dogma](https://forum.elixirforum.com/t/problems-with-spacemacs-credo-and-dogma/20019)

<div class="topic-metadata">

**Author:** [@ashrafhasson](https://forum.elixirforum.com/u/ashrafhasson)\
**Replies:** 10\
**Last updated:** [February 12, 2019, 8:01pm UTC](https://forum.elixirforum.com/t/problems-with-spacemacs-credo-and-dogma/20019 "2019-02-12T20:01:17Z")

</div>

Hi there, I’m using credo and dogma in my elixir 1.8 project and spacemacs is giving a hard time where it gives me the following error: Error from syntax checker elixir-dogma: JSON readtable error: 61 I understand t…

---

## [How to get code completion in IEx programmatically?](https://forum.elixirforum.com/t/how-to-get-code-completion-in-iex-programmatically/19398)

<div class="topic-metadata">

**Author:** [@xuchunyang](https://forum.elixirforum.com/u/xuchunyang)\
**Replies:** 4\
**Last updated:** [January 18, 2019, 8:24pm UTC](https://forum.elixirforum.com/t/how-to-get-code-completion-in-iex-programmatically/19398 "2019-01-18T20:24:53Z")

</div>

Hi all, I’m new to Elixir. I’m trying to use IEx in Emacs. Right now the code completion isn’t supported, and I don’t know how to get the completion from Elixir/IEx programmatically, I tried IEx.Autocomplete.expand "Str…

---

## [Emacs lsp-mode (language server) + elixir-ls anyone?](https://forum.elixirforum.com/t/emacs-lsp-mode-language-server-elixir-ls-anyone/11834)

<div class="topic-metadata">

**Author:** [@victorolinasc](https://forum.elixirforum.com/u/victorolinasc)\
**Replies:** 19\
**Last updated:** [January 7, 2019, 5:12am UTC](https://forum.elixirforum.com/t/emacs-lsp-mode-language-server-elixir-ls-anyone/11834 "2019-01-07T05:12:22Z")

</div>

Has anyone tried the emacs lsp-mode + elixir-ls? I’ve noticed that the emacs support is starting to get behind other editors. Actually, alchemist and elixir-mode are really nice, but they are lagging behind in terms of …

---

## [Emacs + alchemist - run iex -S mix phoenix.server?](https://forum.elixirforum.com/t/emacs-alchemist-run-iex-s-mix-phoenix-server/9161)

<div class="topic-metadata">

**Author:** [@amnu3387](https://forum.elixirforum.com/u/amnu3387)\
**Replies:** 12\
**Last updated:** [January 5, 2019, 4:46pm UTC](https://forum.elixirforum.com/t/emacs-alchemist-run-iex-s-mix-phoenix-server/9161 "2019-01-05T16:46:34Z")

</div>

Hey, I’m pretty new to emacs (have only used it a bit while reading Clojure for the brave and true). I installed the alchemist package, now by what I understand I should be able to run a repl from inside emacs itself wit…

---

## [Emacs/spacemacs with language server protocol for Elixir, or any solution for emacs guys?](https://forum.elixirforum.com/t/emacs-spacemacs-with-language-server-protocol-for-elixir-or-any-solution-for-emacs-guys/17529)

<div class="topic-metadata">

**Author:** [@clag](https://forum.elixirforum.com/u/clag)\
**Replies:** 3\
**Last updated:** [October 25, 2018, 7:31pm UTC](https://forum.elixirforum.com/t/emacs-spacemacs-with-language-server-protocol-for-elixir-or-any-solution-for-emacs-guys/17529 "2018-10-25T19:31:47Z")

</div>

Hi guys, I have noticed that the support for elixir in visual studio code is quite good, autocomplete is correct, even for installed packages, error suggestions work well, unfortunately vscode consumes too much ram and I…

---

## [Emacs IEX problem](https://forum.elixirforum.com/t/emacs-iex-problem/10921)

<div class="topic-metadata">

**Author:** [@maruks](https://forum.elixirforum.com/u/maruks)\
**Replies:** 2\
**Last updated:** [December 18, 2017, 12:39pm UTC](https://forum.elixirforum.com/t/emacs-iex-problem/10921 "2017-12-18T12:39:51Z")

</div>

Do you use alchemist in emacs? I installed alchemist plugin in emacs. IEX REPL sometimes stops responding after it encounters compilation error. Compilation (C-c a i b) stops working too. I have to kill IEX buffer …
