From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-capture exists with "Capture abort: (wrong type argument...)" Date: Wed, 11 Jan 2017 12:10:24 +0100 Message-ID: <87pojtua1r.fsf@nicolasgoaziou.fr> References: <1484058449.3606814.843112001.3FF9BB31@webmail.messagingengine.com> <87eg0aug5d.fsf@nicolasgoaziou.fr> <1484132639.3858670.844150624.40282A96@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRGnU-0000LO-6N for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:10:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRGnT-0004Eu-BJ for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:10:28 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52890) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRGnT-0004ES-5K for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:10:27 -0500 In-Reply-To: <1484132639.3858670.844150624.40282A96@webmail.messagingengine.com> (Simao's message of "Wed, 11 Jan 2017 12:03:59 +0100") 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" To: Simao Cc: emacs-orgmode@gnu.org Simao writes: > I only changed the location of the journal file. Worse, you changed the extension, which means the major mode used after opening the file is different. > org-mode actually creates the file and the right heading: > > * 2017 > ** 2017-01 January > *** 2017-01-11 Wednesday > > But then this error is thrown. This error means `org-todo-line-regexp' is not defined, because the major mode in this file is not `org-mode' > What do you mean the file is not in org mode? How do I add it to org > mode? See (info "(org) Activation") You can use Org as a major-mode file-wise or for every file with ".txt" extension. Regards,