From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: insert automatically row number in tables. Date: Mon, 07 Mar 2016 11:24:45 +0000 Message-ID: <87io0y1qf6.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actHf-0007AN-AF for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:25:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1actHb-0005eo-2G for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:25:07 -0500 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:38505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actHa-0005dc-OJ for emacs-orgmode@gnu.org; Mon, 07 Mar 2016 06:25:03 -0500 Received: by mail-wm0-x22e.google.com with SMTP id l68so66426959wml.1 for ; Mon, 07 Mar 2016 03:25:01 -0800 (PST) Received: from Gilgamesch (gilgamesch.quim.ucm.es. [147.96.12.99]) by smtp.gmail.com with ESMTPSA id v2sm13215882wmd.24.2016.03.07.03.24.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 07 Mar 2016 03:25:00 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hi I would like to insert row in a table, and then hitting C-c C-c, the leftmost column gets filled by the row number. Such as in | row | data | |-----+------| | | 0303 | | | 5123 | | | 41 | | | 4234 | #+TBLFM: magic command C-c C-c gives | row | data | |-----+------| | 2 | 0303 | | 3 | 5123 | | 4 | 41 | | 5 | 4234 | #+TBLFM: magic command Then | row | data | |-----+------| | 2 | 0303 | | 3 | 5123 | | 4 | 41 | | 5 | 4234 | | | 17 | #+TBLFM: magic command C-c C-c gives | row | data | |-----+------| | 2 | 0303 | | 3 | 5123 | | 4 | 41 | | 5 | 4234 | | 6 | 17 | #+TBLFM: magic command I googled around and found solutions such as: https://stackoverflow.com/questions/9267050/how-to-achieve-a-row-index-column-in-emacs-org-mode-using-a-calc-column-rule Or https://lists.gnu.org/archive/html/emacs-orgmode/2008-08/msg00054.html But none of them worked for me the way I described it. Any comments or help? thanks Uwe Brauer