From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastian.Webster@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Run ghci on emacs startup? Date: Tue, 24 Jun 2008 04:28:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1214307642 28049 80.91.229.12 (24 Jun 2008 11:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2008 11:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 13:41:27 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KB6tq-0006tv-Nr for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2008 13:41:27 +0200 Original-Received: from localhost ([127.0.0.1]:52748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB6t1-0002gP-8Z for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2008 07:40:35 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l42g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 209.131.228.27 Original-X-Trace: posting.google.com 1214306888 29225 127.0.0.1 (24 Jun 2008 11:28:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 24 Jun 2008 11:28:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l42g2000hsc.googlegroups.com; posting-host=209.131.228.27; posting-account=lSfpDAoAAABDrn__yUzbqmQsEdvD9mm7 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159709 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55062 Archived-At: On Jun 23, 11:07=A0pm, "Juanma Barranquero" 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. =A0I have not been able to > > find anything online on how to accomplish this. =A0Any 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)) > =A0 (run-haskell) > =A0 (set-window-text-height (get-buffer-window "*haskell*") 5)) > > Good luck, > > =A0 =A0Juanma 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!