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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I am on vanilla emacs and doom theme too.</p>
<p>I think, tree-sitter and the original elixir-mode were conflicting with each other.<br>
This helped replace elixir-mode with elixir-ts-mode and fix things.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">(setq major-mode-remap-alist
      '((yaml-mode . yaml-ts-mode)
       (elixir-mode . elixir-ts-mode)))
</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="328469" 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/emacs-elixir-setup-configuration-wiki/19196/223">Post #222</a>
	                </div>
	            </div>
              <div id="likers-container-328469" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="328469"
                     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 #222"></div>
  </section>
</div>
    <div class="postbit" id="328474" data-post-id="328474">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I have found that lsp mode is freezing emacs.<br>
happening with anyone else too?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="328474" 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/emacs-elixir-setup-configuration-wiki/19196/224">Post #223</a>
	                </div>
	            </div>
              <div id="likers-container-328474" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="328474"
                     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 #223"></div>
  </section>
</div>
    <div class="postbit" id="328482" data-post-id="328482">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The first time you connect to the LSP server it can take several minutes to build the <code>.elixir_ls</code> file in your project root.</p>
<p>Usually if you have problems with LSP the first thing to do is delete that <code>.elixir_ls</code> file and then connect to the LSP server, so that it will build that file again from scratch.</p>
<p>Also, recent versions of Emacs comes with Eglot included so I use that to connect to the LSP server. This is what I have in my <code>init.el</code> …</p>
<pre data-code-wrap="lisp"><code class="lang-lisp">;; elixir-mode, elixir-ts-mode, heex-ts-mode
;; are setup in the eglot-server-programs variable to look for
;; language_server.sh
;; so just add that to the path in ~/.profile using...
;; PATH="/opt/elixir-ls/release:$PATH"
(require 'eglot)
(add-hook 'elixir-ts-mode-hook 'eglot-ensure)

</code></pre>
<p>The only other thing I can think of is to do a refresh install of the LSP server using an up-to-date version of Elixir.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="328482" 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/emacs-elixir-setup-configuration-wiki/19196/225">Post #224</a>
	                </div>
	            </div>
              <div id="likers-container-328482" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="328482"
                     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 #224"></div>
  </section>
</div>
    <div class="postbit" id="328493" data-post-id="328493">
  <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>Are you able to paste the output from your <code>lsp-log</code> buffer?</p>
<p>Use <code>M-x</code> to find a command like  <code>lsp-workspace-show-log</code> and paste that output here.</p>
<p>Sometimes you might need to specify directories to ignore. Search this forum for “lsp-file-watch-ignored” to see this.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="328493" 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/emacs-elixir-setup-configuration-wiki/19196/226">Post #225</a>
	                </div>
	            </div>
              <div id="likers-container-328493" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="328493"
                     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 #225"></div>
  </section>
</div>
    <div class="postbit" id="349129" data-post-id="349129">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi there. I’m getting close to being 100% happy with my emacs setup for Elixir except for two things, and I thought this might be the thread to finally address those things.</p>
<p>I appreciate any insights!</p>
<p>First is how <code>heex</code> files are handled. Just want to check if that’s everyone’s situation: via <code>heex-ts-mode</code> the major mode is set to HEEx, which I understand is a child-mode of web mode. The syntax highlighting works perfectly, but no flychecking and no lsp completion (both for Elixir and web things). Furthermore, I’d like to eventually hook <code>lsp-tailwiindcss</code> in there… Is this how everyone else is working?</p>
<p>I installed the package with <code>M-x heex-ts-install-grammar</code></p>
<p>Second, I’d like to get <code>dap-elixir</code> working, but haven’t worked with a debugger before… does this makes sense in a Elixir/Phoenix context? How I am assuming this would work is:</p>
<ul>
<li>Instead of running <code>iex -S mix phx.server</code> in a terminal, I would launch the debugger in emacs</li>
<li>I can trigger breakpoints in emacs that will stop execution in this debugger buffer</li>
</ul>
<p>I have created a <code>dap</code> template but it only seems to to launch the runtime within a <code>prod</code> environement and it eventually errors out. I’d like to run it in <code>dev</code>, but also, I do not want to waste time on this if the return is that that great compared to just running <code>iex</code> in a separate tmux session.</p>
<p>Here’s the relevant pieces from my <code>init.el</code></p>
<pre data-code-wrap="elisp"><code class="lang-elisp">(use-package dap-mode
  :defer
  :custom
  (dap-auto-configure-mode t)
  :config
  (require 'dap-elixir)
  (dap-register-debug-template
   "Elixir Debug"
   (list :type "Elixir"
         :cwd nil
         :request "launch"
         :program nil
         :name "Elixir Debug"
         :startApps t
         :dap-server-path '("~/.emacs.d/.cache/lsp/elixir-ls/debug_adapter.sh"))))
</code></pre>
<p>PS. What is the lexer name to use to get lisp highlights in markdown?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="349129" 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/emacs-elixir-setup-configuration-wiki/19196/227">Post #226</a>
	                </div>
	            </div>
              <div id="likers-container-349129" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="349129"
                     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 #226"></div>
  </section>
</div>
    <div class="postbit" id="351595" data-post-id="351595">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Just sharing a short post that I written:</p>
<p><em>At the time of writing Emacs 30 is not yet released, but it might be worth upgrading to this version since it has some nice new features … especially useful is that it comes with elixir-ts-mode and heex-ts-mode, you just need to add the necessary language grammers.</em></p>
<p><a href="https://beamjourney.com/emacs-30-ubuntu-24-04/" rel="noopener nofollow ugc">Installing Emacs 30 from source on Ubuntu 24.04</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="351595" 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/emacs-elixir-setup-configuration-wiki/19196/228">Post #227</a>
	                </div>
	            </div>
              <div id="likers-container-351595" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="351595"
                     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>