[Top][All Lists]
[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
- [Orgmode] Is there some kind of verbatim environment for org?, Tassilo Horn, 2008/10/09
- Re: [Orgmode] Is there some kind of verbatim environment for org?, Sebastian Rose, 2008/10/09
- [Orgmode] Re: Is there some kind of verbatim environment for org?,
Tassilo Horn <=
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Eric Schulte, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Tassilo Horn, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Eric Schulte, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Tassilo Horn, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Eric Schulte, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Sebastian Rose, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Tassilo Horn, 2008/10/10
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Sebastian Rose, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Carsten Dominik, 2008/10/09
- Re: [Orgmode] Re: Is there some kind of verbatim environment for org?, Tassilo Horn, 2008/10/09