emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Code blocks in lists?


From: Nicolas Goaziou
Subject: Re: [O] Code blocks in lists?
Date: Fri, 18 May 2012 15:44:02 +0200


Hello,

address@hidden writes:

> * Before command
>
> 1. Download and install color-theme.
>
>    #+begin_src emacs-lisp
>    (add-to-list 'load-path "/path/to/color-theme-6.6.0")
>    (require 'color-theme)
>    #+end_src
>
> 2. Download and install color-theme-leuven.
>
>    #+begin_src emacs-lisp
>    (add-to-list 'load-path "/path/to/color-theme-leuven")
>    (require 'color-theme-leuven)
>    #+end_src
>
> 3. Restart Emacs.
>
> * Command to execute
>
> (let ((org-current-export-file (current-buffer)))
>   (org-export-blocks-preprocess))
>
> * After command
>
> 1. Download and install color-theme.
>
> #+BEGIN_SRC emacs-lisp 
>    (add-to-list 'load-path "/path/to/color-theme-6.6.0")
>    (require 'color-theme)
> #+END_SRC
>
> 2. Download and install color-theme-leuven.
>
> #+BEGIN_SRC emacs-lisp 
>    (add-to-list 'load-path "/path/to/color-theme-leuven")
>    (require 'color-theme-leuven)
> #+END_SRC
>
> 3. Restart Emacs.
>
> * Summary of the changes
>
> The code blocks "meta data":
> - is indented in column 0

`org-export-blocks-preprocess' shouldn't do that. I assume you want to
preserve indentation in your blocks, but block boundaries shouldn't be
moved in any case.

Eric Schulte may have an opinion about this. I CC him. There's nothing
to do as far as lists are concerned, unfortunately.


Regards,

-- 
Nicolas Goaziou




reply via email to

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