help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: open file at the end from command line


From: Harry Putnam
Subject: Re: open file at the end from command line
Date: Mon, 02 Dec 2013 19:46:48 -0500
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux)

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 via email to

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