From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: $EDITOR to open at file end?
Date: Fri, 06 Mar 2015 01:09:28 +0100 [thread overview]
Message-ID: <87lhjbf0lj.fsf@debian.uxu> (raw)
In-Reply-To: mailman.1367.1425541338.31049.help-gnu-emacs@gnu.org
Alexis <flexibeast@gmail.com> writes:
>> Is there another way to instruct emacs explicitly
>> to open the file and go to the bottom of the file?
>
> Here's another possible kludge:
>
> $ emacs -Q --eval "(add-hook 'find-file-hook
> (lambda () (goto-char (point-max))))"
>
> :-)
I think you can remove that smiley, because that is
exactly it (or one of many "exactly it" I should say),
only I got the impression that the OP wanted this for
opening a specific file, not every file, and besides
he is likely to want his initialization intact (i.e.,
not the -Q option which I suspected is a leftover from
testing the command).
So:
emacs FILE --eval "(goto-char (point-max))"
In situations like these it is common to say that it
is better to keep Emacs up all the time and open files
from, not with, Emacs. So, let me tell you that it is
better to keep Emacs up all the time and open files
from, not with, Emacs. :)
--
underground experts united
next prev parent reply other threads:[~2015-03-06 0:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 7:29 $EDITOR to open at file end? Bob Proulx
2015-03-05 7:42 ` 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 [this message]
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=87lhjbf0lj.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--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).