[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Run ghci on emacs startup?
From: |
Bastian . Webster |
Subject: |
Re: Run ghci on emacs startup? |
Date: |
Tue, 24 Jun 2008 04:28:08 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jun 23, 11:07 pm, "Juanma Barranquero" <lek...@gmail.com> wrote:
> > I am trying to get ghci to run and to change the size of the buffer to
> > a height of 5 lines when I startup Emacs. I have not been able to
> > find anything online on how to accomplish this. Any help would be
> > appreciated, and thank you in advance!
>
> You can try something like this in your .emacs:
>
> (setq inhibit-startup-screen t)
>
> (require 'haskell-mode)
> (require 'inf-haskell)
> (setq haskell-program-name "ghci")
> (let ((split-width-threshold nil))
> (run-haskell)
> (set-window-text-height (get-buffer-window "*haskell*") 5))
>
> Good luck,
>
> Juanma
ha ha! Awesome! I had actually just managed to do it, but your method
is much better. Here is what I came up with:
(run-haskell)
(select-next-window)
(enlarge-window 16)
Thanks for the help!