unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: $EDITOR to open at file end?
Date: Thu, 5 Mar 2015 00:29:28 -0700	[thread overview]
Message-ID: <20150305002027882961376@bob.proulx.com> (raw)

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?

Thanks,
Bob



             reply	other threads:[~2015-03-05  7:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05  7:29 Bob Proulx [this message]
2015-03-05  7:42 ` $EDITOR to open at file end? Alexis
2015-03-05  7:59 ` Philipp Stephani
     [not found] ` <mailman.1367.1425541338.31049.help-gnu-emacs@gnu.org>
2015-03-06  0:09   ` Emanuel Berg
2015-03-07  0:48     ` Bob Proulx
2015-03-07  0:57       ` Bob Proulx
2015-03-07  2:17         ` Alexis
2015-03-07 14:33       ` Robert Thorpe
2015-03-09  0:18         ` Bob Proulx
2015-03-09  2:52           ` Robert Thorpe
2015-03-09  5:14             ` Bob Proulx
2015-03-09  5:39               ` Alexis
     [not found]     ` <mailman.1547.1425689344.31049.help-gnu-emacs@gnu.org>
2015-03-07 16:17       ` Emanuel Berg
2015-03-08 23:24         ` Bob Proulx
     [not found]         ` <mailman.1714.1425857102.31049.help-gnu-emacs@gnu.org>
2015-03-09  0:11           ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150305002027882961376@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).