[-- Attachment #1.1: Type: text/plain, Size: 585 bytes --] Hi, 1. When I use remember with a template I get a blank line after the text that I type. My template looks like this: (setq org-remember-templates '((?l "* TODO %?" "~/Documents/org/life.org" "New Tasks"))) If I write TODO something I get a blank line after it in my org file even though I didn't put a newline when using remember. Is this default behavior? Is there a way to change it so that a newline isn't inserted? 2. How do I bind a keystroke to start remember with one of the org-remember-templates rather than prompting you for the template name? Thank you, Scott [-- Attachment #1.2: Type: text/html, Size: 703 bytes --] [-- Attachment #2: Type: text/plain, Size: 149 bytes --] _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
"Scott Jaderholm" <jaderholm@gmail.com> writes:
> If I write TODO something I get a blank line after it in my org file even
> though I didn't put a newline when using remember.
Even stranger is that it *doesn't* put a blank line if you have multiple lines
of text in your remember block. I'd vote that if the template has no blank
line, the entry never gets a blank line.
John
The problem is that it is hard to see if a final newline
in a remember buffer is meant to indicate an empty line or not.
I will fix it in the following way: After exiting the remember buffer,
Org-mode will add a newline *if there is none* and insert the resulting
string
into the outline tree. So if your template does end with zero or one
\n,
there will be no empty line after the entry. If it ends with \n\n,
there
will be an empty line.
- Carsten
On Sep 7, 2007, at 0:40, John Wiegley wrote:
> "Scott Jaderholm" <jaderholm@gmail.com> writes:
>
>> If I write TODO something I get a blank line after it in my org file
>> even
>> though I didn't put a newline when using remember.
>
> Even stranger is that it *doesn't* put a blank line if you have
> multiple lines
> of text in your remember block. I'd vote that if the template has no
> blank
> line, the entry never gets a blank line.
>
> John
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
Carsten Dominik wrote:
> The problem is that it is hard to see if a final newline in a
> remember buffer is meant to indicate an empty line or not. I will
> fix it in the following way: After exiting the remember buffer,
> Org-mode will add a newline *if there is none* and insert the
> resulting string into the outline tree. So if your template does
> end with zero or one \n, there will be no empty line after the
> entry. If it ends with \n\n, there will be an empty line.
Thanks - I had this same problem.
-- Naked