all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: open file at the end from command line
Date: Mon, 02 Dec 2013 19:46:48 -0500	[thread overview]
Message-ID: <87li02wykn.fsf@newsguy.com> (raw)
In-Reply-To: 35908e9d-39e1-4094-aa7f-029d1abc74c7@default

First to other posters... thanks for some pretty inventive ideas

Drew Adams <drew.adams@oracle.com> writes:

>> I thought I remembered something similar to vim where you could open a
>> file at the end using '+'
>> 
>> Of course there is `emacs +N file'  (with whatever number=N).  And
>> even find grained enough to bring the cursor to a specific column.
>>   emacs +N:N file
>> But is there not a way to open a file at the end?
>
> The same question was recently answered on Stack Overflow:
>
> http://stackoverflow.com/questions/20262652/how-to-start-emacs-with-cursor-at-the-end-of-a-given-file

(Leaving one of those here for any searched on this group)
That last one:
emacs filename --eval "(goto-char (point-max))"

That will be just the ticket for me since the place I needed it, was in
an ~/.xbindkeyrc script where it allows me to press a C+S+f on my
linux host keyboard to invoke emacs displaying a specific file that I
only ever want to edit or read at the end.

~/.xbindkeysrc syntax looks like this

    "emacsclient -e '(set-background-color "darkslategray")' -e '(set-foreground-color "cornsilk2")' -e '(set-cursor-color "magenta")' -e '(set-default-font "-dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-1")' -s prg -c -e '(find-file "/pub/PERSONAL/.0finAct")'  -e '(goto-char (point-max))'"
    control+shift + f 

And works just dandy.

PS - I wish I liked those gwene groups better, I'd probably like that
emacs group, but unless they've improved quite a lot since a couple
yrs ago... the ones I tried seemed really confusing... not nice and
orderly like the rest of gmane or the regular nntp use-net.




      reply	other threads:[~2013-12-03  0:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-01 23:18 open file at the end from command line Harry Putnam
2013-12-01 23:51 ` Peter Dyballa
2013-12-02  0:12   ` Emanuel Berg
2013-12-02  0:46 ` Drew Adams
2013-12-03  0:46   ` Harry Putnam [this message]

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

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

  git send-email \
    --in-reply-to=87li02wykn.fsf@newsguy.com \
    --to=reader@newsguy.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.