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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="AstonJ" data-post="115" data-topic="109">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/astonj/48/15_2.png" class="avatar"> AstonJ:</div>
<blockquote>
<p>Anyone know how to get them to show with each window?</p>
</blockquote>
</aside>
<p>What you’re describing reminds me of <a href="https://github.com/abo-abo/ace-window" rel="noopener nofollow ugc">ace-window</a>, but I don’t know if it’s been configured for Spacemacs or there’s a preferred alternative.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21302" 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/spacemacs-general-discussion-blog-posts-wiki/109/116">Post #115</a>
	                </div>
	            </div>
              <div id="likers-container-21302" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21302"
                     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 #115"></div>
  </section>
</div>
    <div class="postbit" id="21346" data-post-id="21346">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AstonJ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AstonJ/120/15_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AstonJ
                    <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>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I must be going blind because the numbers are already there <img src="https://forum.elixirforum.com/uploads/default/original/2X/3/35766b1a01a84df440f412d59b52c782808258f0.gif?v=15" title=":043:" class="emoji emoji-custom" alt=":043:" loading="lazy" width="20" height="20"> (in the bottom left corner of each window <img src="https://forum.elixirforum.com/uploads/default/original/2X/8/8aa2b2d8a8f5cfcd5648f8d158ddf6835c8bcd49.gif?v=15" title=":icon_redface:" class="emoji emoji-custom" alt=":icon_redface:" 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="21346" 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/spacemacs-general-discussion-blog-posts-wiki/109/117">Post #116</a>
	                </div>
	            </div>
              <div id="likers-container-21346" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21346"
                     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 #116"></div>
  </section>
</div>
    <div class="postbit" id="21355" data-post-id="21355">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Forseth" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Forseth
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Been looking through this over the weekend and I have been trying a lot of weirdness (good thing I took backup of the config file before starting) I am still no closer I have been moving around stuff removing layers and so on, I would really like to have this solved myself. so I will look into it after work tomorrow. let me know if you solve it somehow.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21355" 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/spacemacs-general-discussion-blog-posts-wiki/109/118">Post #117</a>
	                </div>
	            </div>
              <div id="likers-container-21355" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21355"
                     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 #117"></div>
  </section>
</div>
    <div class="postbit" id="21356" data-post-id="21356">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="Forseth" data-post="118" data-topic="109">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/f/bcef8e/48.png" class="avatar"> Forseth:</div>
<blockquote>
<p>Been looking through this…</p>
</blockquote>
</aside>
<p>Are you referring to ace-window or the problem <a class="mention" href="/u/dwahyudi" rel="nofollow">@dwahyudi</a> was having? Maybe you meant to quote something else.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21356" 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/spacemacs-general-discussion-blog-posts-wiki/109/119">Post #118</a>
	                </div>
	            </div>
              <div id="likers-container-21356" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21356"
                     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 #118"></div>
  </section>
</div>
    <div class="postbit" id="21357" data-post-id="21357">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Forseth" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Forseth
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>There Should not be a quote there at all <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"> fixed it.</p>
<p>Now you know how 90% of my bugs are made !</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21357" 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/spacemacs-general-discussion-blog-posts-wiki/109/120">Post #119</a>
	                </div>
	            </div>
              <div id="likers-container-21357" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21357"
                     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 #119"></div>
  </section>
</div>
    <div class="postbit" id="21358" data-post-id="21358">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AstonJ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AstonJ/120/15_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AstonJ
                    <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>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Does anyone know how to get the shell (<code>SPC '</code>) to open in the project root, or the user’s own root? Currently it opens in the directory of whichever file you have open.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21358" 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/spacemacs-general-discussion-blog-posts-wiki/109/121">Post #120</a>
	                </div>
	            </div>
              <div id="likers-container-21358" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21358"
                     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 #120"></div>
  </section>
</div>
    <div class="postbit" id="21363" data-post-id="21363">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>You need to override the <code>default-directory</code> variable. I discovered that by…</p>
<ol>
<li>Pressing <code>C-h k SPC '</code> to learn <code>SPC '</code> is bound to <code>(spacemacs/default-pop-shell)</code> which is defined in <code>../layers/+tools/shell/funcs.el</code>.</li>
<li>Opening the link to that file and seeing <code>spacemacs/default-pop-shell</code> calls the <code>shell</code> function.</li>
<li>With the cursor over <code>shell</code>, press <code>C-h f RET</code> to see docs for <code>shell</code>.</li>
<li>Notice mention of <code>default-directory</code>.</li>
</ol>
<blockquote>
<p>If ‘default-directory’ is a remote file name, it is also prompted<br>
to change if called with a prefix arg.</p>
</blockquote>
<p>Hopefully all those keybindings work. I’m currently using the hybrid keybinding mode since I don’t know many Vim commands yet.</p>
<p>Then I tinkered with ielm to come up with a strategy for calling <code>shell</code> with a custom <code>default-directory</code> and came up with:</p>
<pre><code>(defun shell-in-directory (dir)
     (let ((default-directory dir))
       (shell)))

(shell-in-directory "/usr/local/bin")
;; opens a shell window at /usr/local/bin when evaluated
</code></pre>
<p>Let me know if you could use help integrating that with your keybindings.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21363" 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/spacemacs-general-discussion-blog-posts-wiki/109/122">Post #121</a>
	                </div>
	            </div>
              <div id="likers-container-21363" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21363"
                     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 #121"></div>
  </section>
</div>
    <div class="postbit" id="21366" data-post-id="21366">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AstonJ" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AstonJ/120/15_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AstonJ
                    <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>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Nice one - thanks <a class="mention" href="/u/jmitchell" rel="nofollow">@jmitchell</a> <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>
<aside class="quote no-group quote-modified" data-username="jmitchell" data-post="122" data-topic="109">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jmitchell/48/3435_2.png" class="avatar"> jmitchell:</div>
<blockquote>
<p>(defun shell-in-directory (dir)<br>
(let ((default-directory dir))<br>
(shell)))</p>
<p>(shell-in-directory “/usr/local/bin”)<br>
;; opens a shell window at /usr/local/bin when evaluated</p>
</blockquote>
</aside>
<p>Where would I put the above? When I put it in <code>defun dotspacemacs/user-config</code> or <code>dotspacemacs/user-init</code> and reload it it immediately opens a shell and when I close the shell window and try to open another with <code>SPC '</code> it just ignores your code and opens it in the directory like it would have previously.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21366" 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/spacemacs-general-discussion-blog-posts-wiki/109/123">Post #122</a>
	                </div>
	            </div>
              <div id="likers-container-21366" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21366"
                     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 #122"></div>
  </section>
</div>
    <div class="postbit" id="21367" data-post-id="21367">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="jmitchell" data-post="122" data-topic="109">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jmitchell/48/3435_2.png" class="avatar"> jmitchell:</div>
<blockquote>
<p>it is also prompted to change if called with a prefix arg.</p>
</blockquote>
</aside>
<p>This part about <code>default-directory</code> suggests there may be a way to do this without adding any custom configuration, but I haven’t figured out how to pass the directory as a prefix argument in Spacemacs.</p>
<p>I’m also not sure yet whether <code>spacemacs/default-pop-shell</code> would have to be patched to pass through the prefix argument to <code>shell</code>.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21367" 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/spacemacs-general-discussion-blog-posts-wiki/109/124">Post #123</a>
	                </div>
	            </div>
              <div id="likers-container-21367" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21367"
                     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 #123"></div>
  </section>
</div>
    <div class="postbit" id="21374" data-post-id="21374">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="AstonJ" data-post="123" data-topic="109">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/astonj/48/15_2.png" class="avatar"> AstonJ:</div>
<blockquote>
<p>Where would I put the above?</p>
</blockquote>
</aside>
<p>I’m still getting used to Spacemacs’ configuration, so I’ll focus less on where it should go and more on what Emacs needs.</p>
<pre><code>(defun shell-in-directory ()
  (interactive)
  (let* ((orig-default-dir default-directory)
         (default-directory (read-string "Directory: " orig-default-directory)))
    (spacemacs/default-pop-shell)))
</code></pre>
<p>Then <code>M-x shell-in-directory</code> will prompt you for the desired directory, defaulting to the current <code>default-directory</code>.</p>
<p>I tried adding a custom keybinding for <code>SPC "</code> like this, but it fails saying SPC isn’t a prefix key.</p>
<pre><code>(global-set-key (kbd "SPC \"") #'shell-in-directory)
</code></pre>
<p>Adapt as necessary to Spacemacs conventions for adding or overriding leader bindings.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="21374" 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/spacemacs-general-discussion-blog-posts-wiki/109/125">Post #124</a>
	                </div>
	            </div>
              <div id="likers-container-21374" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="21374"
                     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 #124"></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/109/load_more?page=13">Load more posts (83 remaining)</a>
</div></template></turbo-stream>