<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="379468" data-post-id="379468">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="slouchpie" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/slouchpie/120/34819_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  slouchpie
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I was doing a lot of rebuilding of things with emacs this morning because I was experiencing Emacs crashes during this week at work and it was messing up my whole vibe.<br>
It all started when I switched from <code>elixir-mode</code> to <code>elixir-ts-mode</code> ( <a href="https://github.com/wkirschbaum/elixir-ts-mode" class="inline-onebox" rel="noopener nofollow ugc">GitHub - wkirschbaum/elixir-ts-mode: Elixir mode using Treesitter for fontification, navigation and indentation · GitHub</a> ).<br>
It turns out that older tree-sitter versions has a memory leak in <code>elixir-ts-mode</code> ( <a href="https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-09/msg00546.html" class="inline-onebox" rel="noopener nofollow ugc">bug#72863: 30.0.50; tree-sitter elixir-ts-mode hangs and memory leak on</a> ) and my default linux install of tree-sitter was older than 0.25.<br>
Anyway, just writing my thoughts for future reference because I will forget all this by Monday.<br>
Remove old tree-sitter libs, probably from, e.g. <code>/usr/lib/local</code>.<br>
Install tree-sitter using github repo. Use the 0.25 branch. Usual <code>make</code> and <code>make install</code>.<br>
Check <code>ldconfig -p | grep tree-sitt</code> to make sure you  are using the 0.25 vsn.<br>
Install emacs using github repo. Use the <code>emacs-30</code> branch. Used <code>./configure --with-native-compilation</code> then <code>make</code> and <code>make install</code>.</p>
<p>I think that’s all of it. I am using <code>lsp-mode</code> with Expert LS and everything is finally smooth. Hopefully my scrawled notes will help other lost travellers.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="379468" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/doom-emacs-elixir-wiki/45842/42">Post #41</a>
	                </div>
	            </div>
              <div id="likers-container-379468" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="379468"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #41"></div>
  </section>
</div>
    <div class="postbit" id="380010" data-post-id="380010">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sezaru" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sezaru/120/36113_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sezaru
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’ve been wondering.</p>
<p>Did someone managed to make doom use the latest elixir-ts-mode and heex-ts-mode that enables a bunch of sigils syntax highlighting?</p>
<p>I tried doing that using this code snippet:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">(set-tree-sitter! 'elixir-mode 'elixir-ts-mode
  '((elixir :url "https://github.com/elixir-lang/tree-sitter-elixir"
            :commit "d24cecee673c4c770f797bac6f87ae4b6d7ddec5")
    (heex :url "https://github.com/phoenixframework/tree-sitter-heex"
          :commit "b5a7cb5f74dc695a9ff5f04919f872ebc7a895e9")
    (sql :url "https://github.com/DerekStride/tree-sitter-sql"
         :commit "fe77f6868d6cdea593052a6af390116495093dc1")))
</code></pre>
<p>But it doesn’t seem to work, I think it did fetch the correct versions, but the sigils still don’t work.</p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/c/f/cfc5a8d92ac66aa792ac4e165ba8824efeb7e78b.png" data-download-href="https://forum.elixirforum.com/uploads/default/cfc5a8d92ac66aa792ac4e165ba8824efeb7e78b" title="image" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/c/f/cfc5a8d92ac66aa792ac4e165ba8824efeb7e78b.png" alt="image" data-base62-sha1="tE2jQfI55SyaQP6RilueH9ppbgn" width="406" height="600"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">423×624 39.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<p>Edit: I also created a post about this in the Doom Emacs discord: <a href="https://discordapp.com/channels/406534637242810369/1443271406816333965" class="inline-onebox" rel="noopener nofollow ugc">Discord</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="380010" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/doom-emacs-elixir-wiki/45842/43">Post #42</a>
	                </div>
	            </div>
              <div id="likers-container-380010" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="380010"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #42"></div>
  </section>
</div>
    <div class="postbit" id="382095" data-post-id="382095">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="slouchpie" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/slouchpie/120/34819_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  slouchpie
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I was experiencing an annoying thing where, for example, I was typing <code>"for”</code> but inside, say, a moduledoc and it was being expanded into a <code>for do \n end</code> snippet. This is smartparens not doing the right thing in <code>elixir-ts-mode</code> on Emacs 30.2.50. I am using latest libs of everything.</p>
<p>Anyway, I don’t have the spoons to trawl through github issues and I need to sleep so just writing down what I added to <code>config.el</code> to stop this annoying behaviour.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">;; turn off annoying “for” autofill in new emacs elixir mode
(after! smartparens
(sp-local-pair 'elixir-ts-mode “for” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “if” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “case” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “cond” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “unless” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “with” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “try” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “fn” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “do” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “def” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “defp” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “defmodule” “end” :actions nil)
(sp-local-pair 'elixir-ts-mode “defimpl” “end” :actions nil))
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382095" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/doom-emacs-elixir-wiki/45842/44">Post #43</a>
	                </div>
	            </div>
              <div id="likers-container-382095" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382095"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #43"></div>
  </section>
</div>
    <div class="postbit" id="391332" data-post-id="391332">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="katafrakt" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/katafrakt/120/34763_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  katafrakt
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I fixed a small annoyance with doom-modeline displaying “Elixir 27” as current version. This meant “some Elixir version on OTP 27”. Now it should display both Elixir and OTP version:</p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/1/0/1056adc43660b1f9faa9aa892b2a33251be7c3d2.png" data-download-href="https://forum.elixirforum.com/uploads/default/1056adc43660b1f9faa9aa892b2a33251be7c3d2" title="Screenshot 2026-07-08 at 10.56.21" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/1/0/1056adc43660b1f9faa9aa892b2a33251be7c3d2.png" alt="Screenshot 2026-07-08 at 10.56.21" data-base62-sha1="2kxlzvpUfYLbS90XYCWQZXyPQUa" width="690" height="196" data-dominant-color="21212F"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Screenshot 2026-07-08 at 10.56.21</span><span class="informations">716×204 8.13 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<p>Before it gets into Doom officially, you can get it by pinning package version in <code>packages.el</code>:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">(package! doom-modeline :pin "eb5db7916cff689f8a1115117354998aed32e176")
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="391332" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/doom-emacs-elixir-wiki/45842/45">Post #44</a>
	                </div>
	            </div>
              <div id="likers-container-391332" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="391332"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>