From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IFTOHFBYA2WHvQAAG6o9tA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 21:00:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IFTOHFBYA2WHvQAAG6o9tA (envelope-from ) for ; Thu, 14 Sep 2023 21:00:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CD1933F5C for ; Thu, 14 Sep 2023 21:00:31 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694718032; a=rsa-sha256; cv=none; b=LyNXCGRHwl9Ks4ulgjs4oAKaXDreCF0LCu+3wSnnJ7Tf9IYXBCRVcn1pcYKUDV6TG2uQ8R TD6uapYg3AYXONFwDKNjtQvlwX3gSXaN4bXc+Bi7wXbrqe/vSisypk0Zo9ql5ijtmFHhye W/+iwDcRe5XEQjWM9aL+XKaKeuqVa0xIlOPA57/d67yFUQ3vmTv+iJjx/gtYYxw8J1Mv0j Ht1YzvFyJ1qkzVAkS50sr8+DsVdEDyXb726ouc6aZWrfByJfZdMobJKSbVRSROpTUKqC2Y 6EoMTZdV001yomTq/+kgn2Pl6h6FBsPkOkRABIc0jad2399OlOkB/645zvcdOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694718032; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=o93qO5YzbkuoN7MtbPUnsfFP3EEC6bMLRXo01c9+7n8=; b=EVJUUVkouEDeoCrwQMdRhrYNusDMm4AV7nNSFkDsNKnKBrgt63NOcbDkNJ8L1ne9ZGlFYV tFbYAJZGoOWbue7FG11MxJ/kkO1yCyGf3oFh+2bz42AnP5s434xZwImY9RdY9Rs9h8roYR 81ymwe4Bmj3CnNbcr2caclyz445iysE1YP8qM36+Did1bSWzEt6cF0WHbah3A69pogw3Xl UHvMoJ92I7UO1Y/BVSqgaXR8mGuoeflVF5g7fAJaTFW6uqni+AR1fkxDSfm+Z59uS51D3E jvKm8zRibdCjJCHU++zmIZVv7EBgZXGQcdyDGNkJ0fr83TP5++uDP/L3VH1V6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgrYA-0001oF-2L; Thu, 14 Sep 2023 14:58:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgrY8-0001Xi-5h for emacs-orgmode@gnu.org; Thu, 14 Sep 2023 14:58:48 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgrY6-0007op-7t for emacs-orgmode@gnu.org; Thu, 14 Sep 2023 14:58:47 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Rmmn139jjz9s7P; Thu, 14 Sep 2023 18:58:29 +0000 (UTC) X-Riseup-User-ID: 04BCCD9E04389133927FF602C76CFCA3626EA5179E0008A76C2CD51AB0FDD1A4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rmmn05cbCzFq8w; Thu, 14 Sep 2023 18:58:28 +0000 (UTC) From: Hanno Perrey To: lockywolf@gmail.com Cc: Org-Mode Mailing List Subject: How do I enable exports of code only for the whole file? In-Reply-To: 87zg1q16yr.fsf@laptop.lockywolf.net Date: Thu, 14 Sep 2023 20:49:11 +0200 Message-ID: <875y4c4m5q.fsf@hoowl.se> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=198.252.153.6; envelope-from=hanno@hoowl.se; helo=mx0.riseup.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.29 X-Spam-Score: -4.29 X-Migadu-Queue-Id: 0CD1933F5C X-Migadu-Scanner: mx2.migadu.com X-TUID: ZhJk30UjUwLf Dear Vladimir, while I do not have much experience with inline source blocks, at least for regular source blocks, you can define a file-wide header argument by adding a file property. This can be even language specific -- inside my (literate) Emacs config, I have for example at the top of the file for all elisp blocks: #+PROPERTY: header-args:emacs-lisp :tangle yes :results silent :comments link Keep in mind that you have to revert the buffer to update such properties (I believe pressing C-c C-c with the cursor on the modified property should also work). Similarly, you can add ':exports code'. Looking through the manual, I get the impression that the same should be valid for both regular and inline code blocks -- but I have not tested this myself. Best wishes, Hanno -- Hanno Perrey https://hoowl.se