[Top][All Lists]

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

$EDITOR to open at file end?

From: Bob Proulx
Subject: $EDITOR to open at file end?
Date: Thu, 5 Mar 2015 00:29:28 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

With "the other editor" I can set editor to be "vi + file" and when
opening the file it will automatically jump to the end of the file.
With less there is "less +G file" and it will jump to the end of the
file.  (And also "less +/PATTERN" is useful too.)

    +[num]      For the first file the cursor will be positioned on line
                "num".   If "num" is missing, the cursor will be positioned
                on the last line.

For emacs however there is only:

       +number Go to the line specified  by number (do not insert a
               space between the "+" sign and the number).  This
               applies only to the next file specified.

I don't see a way to do this with emacs.  I am hoping I am simply
missing the obvious.  The best I can come up with is to use a very
large number larger than the number of lines.

  emacs +999999 file

That works but feels like a hack.  Is there another way to instruct
emacs explicitly to open the file and go to the bottom of the file?


reply via email to

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