emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* blank lines and keystrokes for org remember templates
@ 2007-09-06 21:16 Scott Jaderholm
  2007-09-06 22:40 ` John Wiegley
  0 siblings, 1 reply; 4+ messages in thread
From: Scott Jaderholm @ 2007-09-06 21:16 UTC (permalink / raw)
  To: org-mode


[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: blank lines and keystrokes for org remember templates
  2007-09-06 21:16 blank lines and keystrokes for org remember templates Scott Jaderholm
@ 2007-09-06 22:40 ` John Wiegley
  2007-09-07  8:04   ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: John Wiegley @ 2007-09-06 22:40 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: blank lines and keystrokes for org remember templates
  2007-09-06 22:40 ` John Wiegley
@ 2007-09-07  8:04   ` Carsten Dominik
  2007-09-09 14:15     ` Nuutti Kotivuori
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2007-09-07  8:04 UTC (permalink / raw)
  To: John Wiegley; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: blank lines and keystrokes for org remember templates
  2007-09-07  8:04   ` Carsten Dominik
@ 2007-09-09 14:15     ` Nuutti Kotivuori
  0 siblings, 0 replies; 4+ messages in thread
From: Nuutti Kotivuori @ 2007-09-09 14:15 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-11  4:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 21:16 blank lines and keystrokes for org remember templates Scott Jaderholm
2007-09-06 22:40 ` John Wiegley
2007-09-07  8:04   ` Carsten Dominik
2007-09-09 14:15     ` Nuutti Kotivuori

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).