emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)


From: Simao
Subject: Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"
Date: Wed, 11 Jan 2017 15:14:29 +0100

Ah that's what you meant. Yeah but I am activating org-mode for org.txt
files:

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode))

And if I open the journal file it indeed has org-mode active.

Thanks

On Wed, Jan 11, 2017, at 12:10, Nicolas Goaziou wrote:
> Simao <address@hidden> 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,



reply via email to

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