help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run ghci on emacs startup?


From: Juanma Barranquero
Subject: Re: Run ghci on emacs startup?
Date: Tue, 24 Jun 2008 06:07:28 +0200

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]