From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Run ghci on emacs startup? Date: Tue, 24 Jun 2008 06:07:28 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214280474 13550 80.91.229.12 (24 Jun 2008 04:07:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2008 04:07:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bastian.Webster@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 06:08:39 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 1KAzpe-0002G7-Ts for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2008 06:08:39 +0200 Original-Received: from localhost ([127.0.0.1]:53192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAzop-0002tk-NE for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jun 2008 00:07:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAzoY-0002tN-NH for help-gnu-emacs@gnu.org; Tue, 24 Jun 2008 00:07:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAzoY-0002t9-0M for help-gnu-emacs@gnu.org; Tue, 24 Jun 2008 00:07:30 -0400 Original-Received: from [199.232.76.173] (port=58190 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAzoX-0002t6-Tg for help-gnu-emacs@gnu.org; Tue, 24 Jun 2008 00:07:29 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.174]:45991) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAzoX-00066G-Fd for help-gnu-emacs@gnu.org; Tue, 24 Jun 2008 00:07:29 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so551654ugc.48 for ; Mon, 23 Jun 2008 21:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=j8Acuun4MpcuE7Mi+6bA3e7r1o3YbIZWEj0PAWOD0rM=; b=spn1jL1JXAQRY/dBEZ70hF4N+snVgZ7NMxLzkMCOo+lNxr03uTxa6byF29+DZwgeCD PF4tljHd+naMRTkYNznbVRumSAle1A9xX6Zth8ncqQ16ZoDvoNSPQewP47jsDfFqplVF L5G8bSRL4xjelkvSLCWPwv6zl0xC7UAxOkAJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jnjWQmIRnQExtsf2yKi/1zefxSK18Yp28YC5/4+ZIx0lHtBZOzEaDuyWN9yAoDaD0g flqclD4NnYCWa9B0Nmw5keJImwi30EvPB5ske2U40Xv7CMvepRJH+25x2G1lkQE5E3e0 JdWLCuiFjhy2GN8YwOEby3s87ErzB4s84VC2g= Original-Received: by 10.210.120.7 with SMTP id s7mr34820ebc.76.1214280448351; Mon, 23 Jun 2008 21:07:28 -0700 (PDT) Original-Received: by 10.210.23.12 with HTTP; Mon, 23 Jun 2008 21:07:28 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:55060 Archived-At: > 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