<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Customizing the size of the tex-shell window</title>
	<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window/</link>
	<description>Comments on Ask MetaFilter post Customizing the size of the tex-shell window</description>
	<pubDate>Thu, 25 Jan 2007 12:14:26 -0800</pubDate>
	<lastBuildDate>Thu, 25 Jan 2007 12:14:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Customizing the size of the tex-shell window</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window</link>	
		<description>I want to make a very small but critical change in the way emacs behaves in latex-mode.  Can I force the tex-shell window to be a different size than half the current window? &lt;br /&gt;&lt;br /&gt; When I&apos;m editing a *.tex file, I hit C-c C-f to typeset it.  The first result of this is that the window splits vertically into two equal windows, of which the top is the *.tex file and the bottom is the tex-shell buffer.  Then various typesetting stuff happens (which I don&apos;t care about at the moment).    What I&apos;d like is for the new tex-shell window to be only about 5 lines tall, rather than taking up half of the current window.  I found &lt;a href=&quot;http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_428.html&quot;&gt;the emacs manual section about splitting windows&lt;/a&gt;, which indicates that &apos;split-window&apos; accepts optional arguments for the size of the new window, but I can&apos;t figure out how to change the way &apos;C-c C-f&apos; calls the split-window command.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.55743</guid>
		<pubDate>Thu, 25 Jan 2007 11:31:16 -0800</pubDate>
		<dc:creator>gleuschk</dc:creator>
		
			<category>emacs</category>
		
			<category>latex</category>
		
			<category>tex-shell</category>
		
			<category>latex-mode</category>
		
			<category>software</category>
		
			<category>lisp</category>
		
	</item> <item>
		<title>By: Zed_Lopez</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#838932</link>	
		<description>C-c C-f is bound to the function tex-file in tex-mode.el (which includes latex-mode). tex-file doesn&apos;t call split-window, at least not directly.&lt;br&gt;
&lt;br&gt;
I don&apos;t see any built-in hooks that would make this easy.&lt;br&gt;
&lt;br&gt;
Probably the easiest thing to do would be to write an elisp function  that calls tex-file and then resizes the buffers, then bind C-c C-f in latex-mode to this new function. If you&apos;re not already an elisp hacker, that&apos;s probably not a very attractive value for easiest, but there you are.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-838932</guid>
		<pubDate>Thu, 25 Jan 2007 12:14:26 -0800</pubDate>
		<dc:creator>Zed_Lopez</dc:creator>
	</item><item>
		<title>By: Rhomboid</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#838949</link>	
		<description>Well, you can enarge/shrink a window vertically with the &apos;enlarge-window&apos; command, and you can set a tex-mode hook, so maybe something like:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;(setq tex-mode-hook&lt;br&gt;   &apos;(lambda ()&lt;br&gt;      (enlarge-window -8)&lt;br&gt;      ))&lt;/pre&gt;&lt;br&gt;
(where -8 is the adjustment to be made to the height; I don&apos;t know which window this will apply to, so maybe you&apos;d have to enlarge one instead of shrinking the other.)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-838949</guid>
		<pubDate>Thu, 25 Jan 2007 12:29:54 -0800</pubDate>
		<dc:creator>Rhomboid</dc:creator>
	</item><item>
		<title>By: beniamino</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#838967</link>	
		<description>You want sticky-repl.el&lt;br&gt;
&lt;br&gt;
Download this file:&lt;br&gt;
&lt;br&gt;
http://twb.ath.cx/~twb/canon/sticky-repl/sticky-repl.el&lt;br&gt;
&lt;br&gt;
and put it somewhere like ~/.emacs_addons/sticky-repl.el&lt;br&gt;
&lt;br&gt;
Then add the following to ~/.emacs:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
(load &quot;~/.emacs_addons/sticky-repl.el&quot;)&lt;br&gt;
(setq special-display-function &apos;sticky-repl-display)&lt;br&gt;
(setq compilation-window-height 5)&lt;br&gt;
(setq same-window-buffer-names nil)&lt;br&gt;
(setq special-display-buffer-names&lt;br&gt;
         &apos;(&quot;*Apropos*&quot;&lt;br&gt;
           &quot;*Backtrace*&quot;&lt;br&gt;
           &quot;*Calculator*&quot;&lt;br&gt;
           &quot;*Compile-log*&quot;&lt;br&gt;
           &quot;*Help*&quot;&lt;br&gt;
           &quot;*Messages*&quot;&lt;br&gt;
           &quot;*Occur*&quot;&lt;br&gt;
           &quot;*Shell Command Output*&quot;&lt;br&gt;
           &quot;*compilation*&quot;&lt;br&gt;
           &quot;*grep*&quot;&lt;br&gt;
           &quot;*ielm*&quot;&lt;br&gt;
           &quot;*inferior-lisp*&quot;&lt;br&gt;
           &quot;*scheme*&quot;&lt;br&gt;
           &quot;*vc*&quot;&lt;br&gt;
           &quot;*vc-diff*&quot;&lt;br&gt;
	   &quot;*tex-shell*&quot;))&lt;br&gt;
(setq special-display-regexps&lt;br&gt;
         &apos;(&quot;\\*shell\\(&lt; [0-9]+&gt;\\)?\\*&quot;&lt;br&gt;
           &quot;\\*slime-repl .*\\*&quot;&lt;br&gt;
           &quot;\\*sldb .*\\*&quot;))&lt;br&gt;
&lt;/&gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Now, every time a buffer called &quot;*tex-shell*&quot; (or any of those other names) is opened, it will be given special characteristics.  You can set the buffer height to something else than 5 by changing compilation-window-height.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-838967</guid>
		<pubDate>Thu, 25 Jan 2007 12:44:45 -0800</pubDate>
		<dc:creator>beniamino</dc:creator>
	</item><item>
		<title>By: gleuschk</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#839038</link>	
		<description>That works perfectly, beniamino, thanks.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-839038</guid>
		<pubDate>Thu, 25 Jan 2007 14:06:37 -0800</pubDate>
		<dc:creator>gleuschk</dc:creator>
	</item><item>
		<title>By: RustyBrooks</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#839074</link>	
		<description>That is awesome.  I hate my perforce windows  taking over half the display.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-839074</guid>
		<pubDate>Thu, 25 Jan 2007 14:46:54 -0800</pubDate>
		<dc:creator>RustyBrooks</dc:creator>
	</item><item>
		<title>By: Aidan Kehoe</title>
		<link>http://ask.metafilter.com/55743/Customizing-the-size-of-the-texshell-window#839677</link>	
		<description>&lt;a href=&quot;http://ask.metafilter.com/mefi/55743#838949&quot;&gt;Rhomboid,&lt;/a&gt; it doesn&apos;t actually matter for that example, but lambda expressions are self-quoting--so this is equivalent to what you wrote:&lt;pre&gt;(setq tex-mode-hook &lt;br&gt;      (lambda ()&lt;br&gt;        (enlarge-window -8)&lt;br&gt;        ))&lt;/pre&gt;with the ocasionally important difference that it will be byte-compiled, while the version quoted with &lt;code&gt;&apos;&lt;/code&gt; won&apos;t be. If you still want to explicitly quote the lambda expression, use &lt;pre&gt;#&apos;(lambda ...)&lt;/pre&gt;which allows byte-compilation.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55743-839677</guid>
		<pubDate>Fri, 26 Jan 2007 02:08:05 -0800</pubDate>
		<dc:creator>Aidan Kehoe</dc:creator>
	</item>
	</channel>
</rss>
