emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to collect multiple source blocks with the same name at the


From: Thomas S. Dye
Subject: Re: [O] How to collect multiple source blocks with the same name at the same level
Date: Wed, 05 Mar 2014 11:39:25 -1000

Aloha Grant,

I'm not certain what you're after.

>From the Org mode manual:

     * outline header
       :PROPERTIES:
       :header-args:    :cache yes
       :END:

Perhaps

  :header-args: :tangle myfile.el

All the best,
Tom

Grant Rettke <address@hidden> writes:

> Hi,
>
> My goal is to intersperse code blocks with comments about them like this:
>
> ==================================
> Menu bars are not required [fn:38]
> #+NAME: uxo-decision1
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+NAME: uxo-decision2
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> ==================================
> And replace it with something like this:
> ==================================
> *** Setup
>   :PROPERTY:
>   :name: uxo-decision
>   :END
>
> Menu bars are not required [fn:38]
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> ==================================
>
> Basically I'm going through a config file and want write a lot but to be
> able to refer to all of the
> snippets as a single ended and tangle them accordingly. What is the right
> way to do this?
>
> My apologies for having to ask this; for some bizarre reason I am not
> finding the example
> to do this though I know I have read it.
>
> Regards,
>
> -- 
> Grant Rettke | ACM, AMA, COG, IEEE
> address@hidden | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
> Hi,
>
> My goal is to intersperse code blocks with comments about them like
> this:
>
> ==================================
> Menu bars are not required [fn:38]
> #+NAME: uxo-decision1
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+NAME: uxo-decision2
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> ==================================
> And replace it with something like this:
> ==================================
> *** Setup
> :PROPERTY:
> :name: uxo-decision
> :END
>
> Menu bars are not required [fn:38]
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> ==================================
>
> Basically I'm going through a config file and want write a lot but to
> be able to refer to all of the
> snippets as a single ended and tangle them accordingly. What is the
> right way to do this?
>
> My apologies for having to ask this; for some bizarre reason I am not
> finding the example
> to do this though I know I have read it.
>
> Regards,

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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