emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* shorcut for #+BEGIN_xxx ... #+END_xxx
@ 2014-08-14 10:00 Joseph Vidal-Rosset
  2014-08-14 10:03 ` Joseph Vidal-Rosset
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Joseph Vidal-Rosset @ 2014-08-14 10:00 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Hello the list,

I am sorry to ask a so elementary question but I would be happy to get a
mean to have, like with CDlatex or like in LaTeX a shortcut to get

#+BEGIN_my_choice_of_environment


#+END_my_choice_of_environment

I know that there is  <s  TAB for source , <l TAB for latex and so on, but
it would maybe be useful to choice the environment, like with C-e in LateX
+ auctex, or like with C {  with CD latex.

Help and suggestions are welcome.

Best wishes

Jo.

[-- Attachment #2: Type: text/html, Size: 640 bytes --]

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

* Re: shorcut for #+BEGIN_xxx ... #+END_xxx
  2014-08-14 10:00 shorcut for #+BEGIN_xxx ... #+END_xxx Joseph Vidal-Rosset
@ 2014-08-14 10:03 ` Joseph Vidal-Rosset
  2014-08-14 10:13 ` Rasmus
  2014-08-14 13:18 ` Nicolas Richard
  2 siblings, 0 replies; 5+ messages in thread
From: Joseph Vidal-Rosset @ 2014-08-14 10:03 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

2014-08-14 12:00 GMT+02:00 Joseph Vidal-Rosset <
joseph.vidal.rosset@gmail.com>:

> like with C-e in LateX + auctex, or like with C {  with CD latex.



sorry: Cc-Ce   and Cc {   ...

[-- Attachment #2: Type: text/html, Size: 536 bytes --]

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

* Re: shorcut for #+BEGIN_xxx ... #+END_xxx
  2014-08-14 10:00 shorcut for #+BEGIN_xxx ... #+END_xxx Joseph Vidal-Rosset
  2014-08-14 10:03 ` Joseph Vidal-Rosset
@ 2014-08-14 10:13 ` Rasmus
  2014-08-14 13:18 ` Nicolas Richard
  2 siblings, 0 replies; 5+ messages in thread
From: Rasmus @ 2014-08-14 10:13 UTC (permalink / raw)
  To: emacs-orgmode

Hi Joseph,

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

> Hello the list,
>
> I am sorry to ask a so elementary question but I would be happy to get a
> mean to have, like with CDlatex or like in LaTeX a shortcut to get
>
> #+BEGIN_my_choice_of_environment
>
>
> #+END_my_choice_of_environment
>
> I know that there is  <s  TAB for source , <l TAB for latex and so on, but
> it would maybe be useful to choice the environment, like with C-e in LateX
> + auctex, or like with C {  with CD latex.
>
> Help and suggestions are welcome.

Not quite what you are asking for, but have you seen the variable
`org-structure-template-alist'?  It still requires you to add each
completion.  That being said, it probably wouldn't be too hard to
write something like the prompt of cdlatex.

—Rasmus

-- 
And I faced endless streams of vendor-approved Ikea furniture. . .

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

* Re: shorcut for #+BEGIN_xxx ... #+END_xxx
  2014-08-14 10:00 shorcut for #+BEGIN_xxx ... #+END_xxx Joseph Vidal-Rosset
  2014-08-14 10:03 ` Joseph Vidal-Rosset
  2014-08-14 10:13 ` Rasmus
@ 2014-08-14 13:18 ` Nicolas Richard
  2014-08-14 13:53   ` Joseph Vidal-Rosset
  2 siblings, 1 reply; 5+ messages in thread
From: Nicolas Richard @ 2014-08-14 13:18 UTC (permalink / raw)
  To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> I know that there is <s TAB for source , <l TAB for latex and so on,
> but it would maybe be useful to choice the environment, like with C-e
> in LateX + auctex, or like with C { with CD latex. 

See:
https://github.com/fniessen/org-auctex-key-bindings/blob/master/org-auctex-keys.el
The function org-auckeys-environment I think it does what you want.

you also have "C-c C-v C-d" for src blocks and selecting the language
with completion.

-- 
Nico.

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

* Re: shorcut for #+BEGIN_xxx ... #+END_xxx
  2014-08-14 13:18 ` Nicolas Richard
@ 2014-08-14 13:53   ` Joseph Vidal-Rosset
  0 siblings, 0 replies; 5+ messages in thread
From: Joseph Vidal-Rosset @ 2014-08-14 13:53 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

Many thanks Nicolas. I like Fabrice Niessen's work and I'm using
leuven-theme, it is in my opinion very efficient to work with org-mode.
So I have tried immediately this org-acutex-keys-el.
But as I had a message error referring to the variable
org-structure-template-alist ,  I have succeeded to customize this variable
as I want, and in fact I do not need org-acutex-keys-el , all works
perfectly with <key  TAB, and I keep Cc-Ce to export, as usual with
org-mode.
But again, thanks , to you and to Rasmus.

Jo.


2014-08-14 15:18 GMT+02:00 Nicolas Richard <theonewiththeevillook@yahoo.fr>:

> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
> > I know that there is <s TAB for source , <l TAB for latex and so on,
> > but it would maybe be useful to choice the environment, like with C-e
> > in LateX + auctex, or like with C { with CD latex.
>
> See:
>
> https://github.com/fniessen/org-auctex-key-bindings/blob/master/org-auctex-keys.el
> The function org-auckeys-environment I think it does what you want.
>
> you also have "C-c C-v C-d" for src blocks and selecting the language
> with completion.
>
> --
> Nico.
>

[-- Attachment #2: Type: text/html, Size: 1853 bytes --]

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

end of thread, other threads:[~2014-08-14 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14 10:00 shorcut for #+BEGIN_xxx ... #+END_xxx Joseph Vidal-Rosset
2014-08-14 10:03 ` Joseph Vidal-Rosset
2014-08-14 10:13 ` Rasmus
2014-08-14 13:18 ` Nicolas Richard
2014-08-14 13:53   ` Joseph Vidal-Rosset

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