From owner-freebsd-questions Tue Sep 24 16:41: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A718937B401 for ; Tue, 24 Sep 2002 16:41:05 -0700 (PDT) Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77C743E77 for ; Tue, 24 Sep 2002 16:41:03 -0700 (PDT) (envelope-from erikt@midgard.homeip.net) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.12.5/8.12.5) with ESMTP id g8ONf1pd002537 for ; Wed, 25 Sep 2002 01:41:01 +0200 (CEST) X-Original-Recipient: Received: from falcon.midgard.homeip.net (h63n1fls20o913.telia.com [212.181.162.63]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id BAA07526 for ; Wed, 25 Sep 2002 01:41:01 +0200 (CEST) Received: (qmail 8764 invoked by uid 1001); 24 Sep 2002 23:40:56 -0000 Date: Wed, 25 Sep 2002 01:40:56 +0200 From: Erik Trulsson To: Giorgos Keramidas Cc: thursday , freebsd-questions@FreeBSD.org Subject: Re: OT: emacs command line switch Message-ID: <20020924234055.GA5292@falcon.midgard.homeip.net> Mail-Followup-To: Giorgos Keramidas , thursday , freebsd-questions@FreeBSD.org References: <20020924203242.GA10714@SDF.LONESTAR.ORG> <20020924231613.GC28112@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020924231613.GC28112@hades.hell.gr> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Sep 25, 2002 at 02:16:13AM +0300, Giorgos Keramidas wrote: > On 2002-09-24 20:32, thursday wrote: > > Ahoy-hoy, > > > > I've been reading the copious Emacs documentation, but cannot find the > > answer to my question, so...I am hoping someone here can help my poor > > frustrated self. > > > > I am wondering if there is a switch available when starting emacs to have > > it put you at the end of the buffer when you open the file, e.g., > > Well, am not sure if that's possible with a command line option, but > you can always hit `ESC >' once you open a buffer. It's not that hard :) > > Writing a hook in your .emacs file text-mode similar to the following > will also accomplish the same thing for the modes that are derived > from text-mode: > > (setq text-mode-hook > '(lambda () > (end-of-buffer))) You can also specify Lisp functions to run directly from the commandline. emacs file.txt -f end-of-buffer seems to work fine. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message