From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Subject: Tangle with conditional statement Date: Sat, 24 Aug 2013 13:51:04 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01493d824d36fc04e4b0233e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDCN2-0000u9-21 for emacs-orgmode@gnu.org; Sat, 24 Aug 2013 07:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDCN0-0004tX-B2 for emacs-orgmode@gnu.org; Sat, 24 Aug 2013 07:51:08 -0400 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:58883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDCN0-0004tK-3e for emacs-orgmode@gnu.org; Sat, 24 Aug 2013 07:51:06 -0400 Received: by mail-lb0-f172.google.com with SMTP id v1so271046lbd.31 for ; Sat, 24 Aug 2013 04:51:04 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e01493d824d36fc04e4b0233e Content-Type: text/plain; charset=ISO-8859-1 Hello mailing list, First time poster to this mailing list. I was hoping i could get some pointers to a question I have not yet found a solution or example of. I use orgmode and tangled elisp src blocks to initiate emacs. I also use el-get to install packages, however sometimes these packages fail for various reasons and I would like to skip them so that the hall emacs initailisation doesn't brake. However for important packages i have them hardcoded in my init files so that the settings I have doesn't complain. But as I use org-mode to tangle this I can just flip the :tangle to "no" to to not tangle a specific section. my question: Is it possible to have a conditional statement for a tangled block so that only if a package is installed or a directory exist does the block tangle? Meaning that I wouldn't need to hard code all the el-get fetches in my init file. Is this a good idea? or should I work in conditions in the emacs src blocks instead? I realize now when I'm typing it out that it might come with some other issues like first time running it I would have to reinitialize emacs after package installs to get my settings but after that I guess it would be fine. Hope to get some pointers, Regards, Andreas --089e01493d824d36fc04e4b0233e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello mailing= list,

First time poster to this mailing list.
I was= hoping i could get some pointers to a question I have not yet found a solu= tion or example of.

I use orgmode and tangled elisp src blocks to initiate emacs. I a= lso use el-get to install packages, however sometimes these packages fail f= or various reasons and I would like to skip them so that the hall emacs ini= tailisation doesn't brake. However for important packages i have them h= ardcoded in my init files so that the settings I have doesn't complain.=
But as I use org-mode to tangle this I can just flip the :tangle to &= quot;no" to to not tangle a specific section.

my question= : Is it possible to have a conditional statement for a tangled block so tha= t only if a package is installed or a directory exist does the block tangle= ? Meaning that I wouldn't need to hard code all the el-get fetches in m= y init file.
Is this a good idea? or should I work in conditions in the emacs src = blocks instead?
I realize now when I'm typing it out that= it might come with some other issues like first time running it I would ha= ve to reinitialize emacs after package installs to get my settings but afte= r that I guess it would be fine.

Hope to get some pointers,
Regards,
= Andreas

--089e01493d824d36fc04e4b0233e--