Date: Wed, 25 Sep 2002 01:40:56 +0200 From: Erik Trulsson <ertr1013@student.uu.se> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: thursday <thursday@SDF.LONESTAR.ORG>, freebsd-questions@FreeBSD.org Subject: Re: OT: emacs command line switch Message-ID: <20020924234055.GA5292@falcon.midgard.homeip.net> In-Reply-To: <20020924231613.GC28112@hades.hell.gr> References: <20020924203242.GA10714@SDF.LONESTAR.ORG> <20020924231613.GC28112@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 25, 2002 at 02:16:13AM +0300, Giorgos Keramidas wrote: > On 2002-09-24 20:32, thursday <thursday@SDF.LONESTAR.ORG> 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. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924234055.GA5292>