emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Shortcut for adding text item?
@ 2010-02-18 18:28 Nathan Neff
  2010-02-18 18:59 ` Stephan Schmitt
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Neff @ 2010-02-18 18:28 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

I'm aware of the M-Ret shortcut for inserting a new heading.

Is there a shortcut for adding a text item to the current headline?

For example, I have a headline, with the cursor at <cursor> position:

* Some<cursor>thing

And I want to add a text line under the heading, with proper indentation.

Currently, I press Ctrl-E, then Return, but I'd like to have a shortcut like
M-j or something like that.

Any ideas?  Sorry if I'm missing an easy solution.  I think I've asked this
before, but
can't find my prev. e-mail.

--Nate

[-- Attachment #1.2: Type: text/html, Size: 614 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Shortcut for adding text item?
  2010-02-18 18:28 Shortcut for adding text item? Nathan Neff
@ 2010-02-18 18:59 ` Stephan Schmitt
  2010-02-18 19:26   ` Raffi R
  2010-02-18 23:07   ` Łukasz Stelmach
  0 siblings, 2 replies; 6+ messages in thread
From: Stephan Schmitt @ 2010-02-18 18:59 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

Hi Nathan,

put this in your dotemacs file:

(eval-after-load "org"
   '(org-defkey org-mode-map (kbd "M-j")
	       (lambda () (interactive) (end-of-line) (org-return-indent))))

Hth,
	Stephan

Also sprach Nathan Neff:
> I'm aware of the M-Ret shortcut for inserting a new heading.
> 
> Is there a shortcut for adding a text item to the current headline?
> 
> For example, I have a headline, with the cursor at <cursor> position:
> 
> * Some<cursor>thing
> 
> And I want to add a text line under the heading, with proper indentation.
> 
> Currently, I press Ctrl-E, then Return, but I'd like to have a shortcut 
> like M-j or something like that.
> 
> Any ideas?  Sorry if I'm missing an easy solution.  I think I've asked 
> this before, but
> can't find my prev. e-mail.
> 
> --Nate
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Shortcut for adding text item?
  2010-02-18 18:59 ` Stephan Schmitt
@ 2010-02-18 19:26   ` Raffi R
  2010-02-18 23:07   ` Łukasz Stelmach
  1 sibling, 0 replies; 6+ messages in thread
From: Raffi R @ 2010-02-18 19:26 UTC (permalink / raw)
  To: Stephan Schmitt; +Cc: emacs-orgmode

C-return will also create a new headline from any point. Only seems to
work with headlines proper, though.

HTH,
- Raffi.

On Thu, Feb 18, 2010 at 1:59 PM, Stephan Schmitt
<drmabuse@cs.tu-berlin.de> wrote:
> Hi Nathan,
>
> put this in your dotemacs file:
>
> (eval-after-load "org"
>  '(org-defkey org-mode-map (kbd "M-j")
>               (lambda () (interactive) (end-of-line) (org-return-indent))))
>
> Hth,
>        Stephan
>
> Also sprach Nathan Neff:
>>
>> I'm aware of the M-Ret shortcut for inserting a new heading.
>>
>> Is there a shortcut for adding a text item to the current headline?
>>
>> For example, I have a headline, with the cursor at <cursor> position:
>>
>> * Some<cursor>thing
>>
>> And I want to add a text line under the heading, with proper indentation.
>>
>> Currently, I press Ctrl-E, then Return, but I'd like to have a shortcut
>> like M-j or something like that.
>>
>> Any ideas?  Sorry if I'm missing an easy solution.  I think I've asked
>> this before, but
>> can't find my prev. e-mail.
>>
>> --Nate
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

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

* Re: Shortcut for adding text item?
  2010-02-18 18:59 ` Stephan Schmitt
  2010-02-18 19:26   ` Raffi R
@ 2010-02-18 23:07   ` Łukasz Stelmach
  2010-02-19  9:53     ` Stephan Schmitt
  1 sibling, 1 reply; 6+ messages in thread
From: Łukasz Stelmach @ 2010-02-18 23:07 UTC (permalink / raw)
  To: emacs-orgmode

Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:

> Also sprach Nathan Neff:
>> For example, I have a headline, with the cursor at <cursor> position:
>>
>> * Some<cursor>thing
>>
>> And I want to add a text line under the heading, with proper indentation.
>>
>> Currently, I press Ctrl-E, then Return, but I'd like to have a
>> shortcut like M-j or something like that.
> put this in your dotemacs file:
>
> (eval-after-load "org"
>   '(org-defkey org-mode-map (kbd "M-j")
> 	       (lambda () (interactive) (end-of-line) (org-return-indent))))
>

How about unfolding subtree?

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: Re: Shortcut for adding text item?
  2010-02-18 23:07   ` Łukasz Stelmach
@ 2010-02-19  9:53     ` Stephan Schmitt
  2010-02-19 22:11       ` Nathan Neff
  0 siblings, 1 reply; 6+ messages in thread
From: Stephan Schmitt @ 2010-02-19  9:53 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

Hi Łukasz,

> Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:
> 
>> Also sprach Nathan Neff:
>>> For example, I have a headline, with the cursor at <cursor> position:
>>>
>>> * Some<cursor>thing
>>>
>>> And I want to add a text line under the heading, with proper indentation.
>>>
>>> Currently, I press Ctrl-E, then Return, but I'd like to have a
>>> shortcut like M-j or something like that.
>> put this in your dotemacs file:
>>
>> (eval-after-load "org"
>>   '(org-defkey org-mode-map (kbd "M-j")
>> 	       (lambda () (interactive) (end-of-line) (org-return-indent))))
>>

Also sprach Łukasz Stelmach:
> 
> How about unfolding subtree?
> 

good point...

(org-defkey org-mode-map (kbd "M-j")
	    '(lambda () (interactive)
	       (org-show-subtree) (end-of-line) (org-return-indent)))

Greetings,
	Stephan

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

* Re: Re: Shortcut for adding text item?
  2010-02-19  9:53     ` Stephan Schmitt
@ 2010-02-19 22:11       ` Nathan Neff
  0 siblings, 0 replies; 6+ messages in thread
From: Nathan Neff @ 2010-02-19 22:11 UTC (permalink / raw)
  To: Stephan Schmitt; +Cc: Łukasz Stelmach, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1364 bytes --]

2010/2/19 Stephan Schmitt <drmabuse@cs.tu-berlin.de>

> Hi Łukasz,
>
> > Stephan Schmitt <drmabuse@cs.tu-berlin.de> writes:
> >
> >> Also sprach Nathan Neff:
> >>> For example, I have a headline, with the cursor at <cursor> position:
> >>>
> >>> * Some<cursor>thing
> >>>
> >>> And I want to add a text line under the heading, with proper
> indentation.
> >>>
> >>> Currently, I press Ctrl-E, then Return, but I'd like to have a
> >>> shortcut like M-j or something like that.
> >> put this in your dotemacs file:
> >>
> >> (eval-after-load "org"
> >>   '(org-defkey org-mode-map (kbd "M-j")
> >>             (lambda () (interactive) (end-of-line)
> (org-return-indent))))
> >>
>
> Also sprach Łukasz Stelmach:
> >
> > How about unfolding subtree?
> >
>
> good point...
>
> (org-defkey org-mode-map (kbd "M-j")
>            '(lambda () (interactive)
>                (org-show-subtree) (end-of-line) (org-return-indent)))
>
>
Thanks a million.  I'm getting the hang of the macro-style stuff
 (e.g. using (end-of-line) followed by  (org-return-indent))

--Nate


> Greetings,
>         Stephan
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 2385 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-02-19 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 18:28 Shortcut for adding text item? Nathan Neff
2010-02-18 18:59 ` Stephan Schmitt
2010-02-18 19:26   ` Raffi R
2010-02-18 23:07   ` Łukasz Stelmach
2010-02-19  9:53     ` Stephan Schmitt
2010-02-19 22:11       ` Nathan Neff

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).