emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Is there some kind of verbatim environment for org?


From: Tassilo Horn
Subject: [Orgmode] Re: Is there some kind of verbatim environment for org?
Date: Thu, 09 Oct 2008 16:53:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Sebastian Rose <address@hidden> writes:

Hi Sebastian,

> with a current version of Org-mode you may press C-c ' to create such
> a region or edit an existing one.  Not shure when this feature made it
> into org. But 6.09 has this feature.

Here it is:

,----[ C-h k C-c ' ]
| C-c ' runs the command org-edit-special, which is an interactive compiled Lisp
| function in `org.el'.
| 
| It is bound to C-c ', <menu-bar> <Org> <Editing> <Edit Source Example>,
| <menu-bar> <Tbl> <Calculate> <Edit Formulas>.
| 
| (org-edit-special)
| 
| Call a special editor for the stuff at point.
| When at a table, call the formula editor with `org-table-edit-formulas'.
| When at the first line of an src example, call `org-edit-src-code'.
| When in an #+include line, visit the include file.  Otherwise call
| `ffap' to visit the file at point.
`----

I guess, that's what you mean.  But at least in my version, that's no
too big improvement.  Let's say I have this:

#+BEGIN_SRC artist
                         +-----+             (Abb. 23b)
 ENABLE------------------|  &  |
       +-----+           |     |
       | >=1 |     +-----|     |---RUN
       |     |     |     |     |
 X-----|     |-----+     +-----+
 Y-----|     |
 RUN---|     |
       +-----+
#+END_SRC

If I hit `C-c '' in that block, it'll open the graphic in artist mode.
That's great, but still the graphic is font-locked like in the
screenshot of my previous posting, because org thinks it's a table.

And TAB in the first line moves point one line up and messages "Should
not happen...".  On other positions in the block, it indents like in
text-mode, and on even other positions it acts like in org tables (Jump
to the next "cell").

While I can live with TAB freaking out (Hey, `C-c '' switches to artist
mode. Yay!), the broken font-locking is disturbing me.  Is it possible
to fontify everything in #+BEGIN...#+END blocks with some special face
which takes precedence over the usual org font-locking?

Bye,
Tassilo





reply via email to

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