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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="chrismcg" data-post="161" data-topic="19196">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chrismcg/48/671_2.png" class="avatar"> chrismcg:</div>
<blockquote>
<pre data-code-wrap="elixir"><code class="lang-elixir">(push '("*exunit-compilation*" :dedicated t :position bottom :stick t :height 0.4) popwin:special-display-config)
</code></pre>
</blockquote>
</aside>
<p>This is pure gold <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"> Thank you!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="165442" 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/163">Post #162</a>
	                </div>
	            </div>
              <div id="likers-container-165442" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="165442"
                     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 #162"></div>
  </section>
</div>
    <div class="postbit" id="165449" data-post-id="165449">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’ve added the popwin line to the wiki, seems popular! <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Cool, thank you for the suggestion. I’m currently using <a href="https://github.com/hlissner/doom-emacs" rel="noopener nofollow ugc">doom-emacs</a>, I think the snippet should work properly.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="166424" 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/165">Post #164</a>
	                </div>
	            </div>
              <div id="likers-container-166424" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="166424"
                     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 #164"></div>
  </section>
</div>
    <div class="postbit" id="166437" data-post-id="166437">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="axelson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/axelson/120/26351_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  axelson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Scenic Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="chrismcg" data-post="164" data-topic="19196">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chrismcg/48/671_2.png" class="avatar"> chrismcg:</div>
<blockquote>
<p>I’ve added the popwin line to the wiki, seems popular! <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
</blockquote>
</aside>
<p>Thanks for adding it! I promoted it on the slack as well and some people enjoyed it there. I also added <code>:noselect t</code> to the snippet (at the recommendation of someone on the Slack) so that the compilation buffer doesn’t take focus when you run the tests.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="166437" 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/166">Post #165</a>
	                </div>
	            </div>
              <div id="likers-container-166437" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="166437"
                     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 #165"></div>
  </section>
</div>
    <div class="postbit" id="166539" data-post-id="166539">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I actually prefer it to be selected so it’s easier to navigate to failing output and jump to the test. Each to their own though!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="166539" 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/167">Post #166</a>
	                </div>
	            </div>
              <div id="likers-container-166539" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="166539"
                     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 #166"></div>
  </section>
</div>
    <div class="postbit" id="166593" data-post-id="166593">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>If anyone wants to use flycheck with eglot, I wrote a simple wrapper which replaces flymake with flycheck <a href="https://github.com/akash-akya/eglot-flycheck-adaptor" class="inline-onebox" rel="noopener nofollow ugc">GitHub - akash-akya/eglot-flycheck-adaptor: Replaces flymake with flycheck for eglot diagnostics · GitHub</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="166593" 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/168">Post #167</a>
	                </div>
	            </div>
              <div id="likers-container-166593" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="166593"
                     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 #167"></div>
  </section>
</div>
    <div class="postbit" id="167780" data-post-id="167780">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Update: I finally solved my flycheck problems (yes, from July 2019).  I’ve got lsp checking (dialyzer &amp; elixir compiler) and credo working in a chain. The key was this: <code>(setq lsp-flycheck-live-reporting nil)</code>. Disabling that prevents lsp from stomping on the value in <code>flycheck-check-syntax-automatically</code>. I think they are trying to replace that, but at least in a project the size of mine you cannot be running flycheck on idle/new line etc. I’ve long run it only on enable and save. Every now and then I’ll save before the last check finished and things get out of a sync so I do a quick <code>s e b</code></p>
<p>Relevant configs:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  (add-hook 'elixir-mode-hook
    (lambda ()
      (setq lsp-flycheck-live-reporting nil)
      (setq-local flycheck-check-syntax-automatically '(mode-enabled save))))

  (add-hook 'lsp-after-initialize-hook
            (lambda ()
              (lsp--set-configuration `(:elixirLS, lsp-elixir--config-options))
              (elixir/init-flycheck-credo)
              (flycheck-add-next-checker 'lsp 'elixir-credo)))
</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="167780" 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/emacs-elixir-setup-configuration-wiki/19196/169">Post #168</a>
	                </div>
	            </div>
              <div id="likers-container-167780" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="167780"
                     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 #168"></div>
  </section>
</div>
    <div class="postbit" id="168180" data-post-id="168180">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Care, as it can completely bork the checking of lsp (at least it did ~a month ago when I tried to tackle this again).</p>
<p>The core of the issue is how lsp-mode interacts with flycheck.<br>
The idea is that lsp runs the checker when it is needed by lsp specification, and only then.</p>
<p>By disabling that, your dialyzer checkers can stop working properly.</p>
<p>So, as I said earlier, the proper solution is to implement credo linter as part of the elixir-ls (or as a standalone plugin for the elixir-ls. I don’t know if elixir-ls supports plugins). And I am pretty sure such a contribution will be welcome</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="168180" 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/170">Post #169</a>
	                </div>
	            </div>
              <div id="likers-container-168180" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="168180"
                     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 #169"></div>
  </section>
</div>
    <div class="postbit" id="168181" data-post-id="168181">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It is not just credo that doesn’t work for me. The compiler and dialyzer checkers also get stuck and stop updating unless I disable lsp-flycheck-live-reporting. It seems odd they’d document a customizable variable that can “completely bork … lsp” and not document that fact?</p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/f/b/fbb065012a6617620f1f471937e468806c28765b.png" data-download-href="https://forum.elixirforum.com/uploads/default/fbb065012a6617620f1f471937e468806c28765b" title="image" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/f/b/fbb065012a6617620f1f471937e468806c28765b.png" alt="image" data-base62-sha1="zUxLEJs2XEwpKmYpR62tZTH3n6j" width="690" height="189" data-dominant-color="2D3033"><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">724×199 14.2 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> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="168181" 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/171">Post #170</a>
	                </div>
	            </div>
              <div id="likers-container-168181" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="168181"
                     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 #170"></div>
  </section>
</div>
    <div class="postbit" id="168624" data-post-id="168624">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi there!<br>
Thanks for the guide! <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br>
I am using <code>Spacemacs</code> and <code>eglot</code>. The guide is not totally accurate.<br>
<code>package-install</code> is prohibited in Spacemacs.</p>
<ol>
<li>
<p>You should add <code>eglot</code> in <code>dotspacemacs-additional-packages</code> instead.</p>
</li>
<li>
<p>Then you need to add in <code>dotspacemacs/user-config</code>:</p>
</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">(require 'eglot)
(add-to-list 'eglot-server-programs '(elixir-mode "/home/nicolas/elixir-ls/release/language_server.sh"))
</code></pre>
<ol start="3">
<li>To make your life easier and not having to type <code>M-x eglot</code> in any Elixir file, you may add in <code>dotspacemacs/user-config</code> AFTER <code>(require 'eglot)</code>:</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">(add-hook 'elixir-mode-hook 'eglot-ensure)
</code></pre>
<p>Lastly, three things:</p>
<ol>
<li>The <code>elixir</code> layer in Spacemacs does not play well with Eglot. It calls <code>lsp-mode</code> from the Spacemacs <code>lsp</code> layer. If you want to use <code>eglot</code> in Spacemacs, you should add directly <code>elixir-mode</code> in  <code>dotspacemacs-additional-packages</code>. Do not add the <code>elixir</code> layer.</li>
<li>If you fail to add the <code>require 'eglot</code> instruction appropriately, <code>eglot</code> will randomly stop working on Emacs restart, and you will be prompted the error described <a href="https://github.com/joaotavora/eglot/issues/238#issuecomment-604736804" rel="noopener nofollow ugc">in this GitHub issue</a>.</li>
<li>You can find my full .spacemacs dot file for more guidance <a href="https://github.com/NicoGim/setup/blob/master/spacemacs/.spacemacs" rel="noopener nofollow ugc">on my GitHub</a>.</li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="168624" 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/emacs-elixir-setup-configuration-wiki/19196/172">Post #171</a>
	                </div>
	            </div>
              <div id="likers-container-168624" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="168624"
                     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 #171"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/19196/load_more?page=18">Load more posts (56 remaining)</a>
</div></template></turbo-stream>