From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: open file at the end from command line Date: Mon, 02 Dec 2013 19:46:48 -0500 Organization: Still searching... Message-ID: <87li02wykn.fsf@newsguy.com> References: <87txes17p5.fsf@newsguy.com> <35908e9d-39e1-4094-aa7f-029d1abc74c7@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386031638 31436 80.91.229.3 (3 Dec 2013 00:47:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 00:47:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 03 01:47:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vne94-0002zK-Gu for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Dec 2013 01:47:22 +0100 Original-Received: from localhost ([::1]:39630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vne94-0000Jp-2n for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Dec 2013 19:47:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vne8p-0000JO-K7 for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 19:47:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vne8k-0001aY-H6 for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 19:47:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vne8k-0001aR-9D for help-gnu-emacs@gnu.org; Mon, 02 Dec 2013 19:47:02 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vne8h-0002l7-RC for help-gnu-emacs@gnu.org; Tue, 03 Dec 2013 01:46:59 +0100 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Dec 2013 01:46:59 +0100 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Dec 2013 01:46:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:D1InohYoSA7OgPdR7XoedUMjrpc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94798 Archived-At: First to other posters... thanks for some pretty inventive ideas Drew Adams 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.