From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Subject: Re: Inheriting some local variables from source code block editing buffers Date: Tue, 01 May 2018 14:41:32 +0300 Message-ID: References: <874ljt3bs0.fsf@gnu.org> <87h8nrkbpw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDTfG-0000eR-9m for emacs-orgmode@gnu.org; Tue, 01 May 2018 07:41:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDTfF-0006x6-7j for emacs-orgmode@gnu.org; Tue, 01 May 2018 07:41:46 -0400 In-Reply-To: <87h8nrkbpw.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 01 May 2018 10:43:23 +0200") 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" To: Nicolas Goaziou Cc: Bastien , emacs-orgmode@gnu.org On 2018-05-01 10:43 +02, Nicolas Goaziou wrote: > I think this machinery is not necessary. > > First add a call to `hack-local-variables-apply' somewhere in > `org-src--edit-element'. > > Then, just use regular file-local variables ,e.g., > > #+begin_src emacs-lisp > (foo) > ;; Local Variables: > ;; fill-column: 99 > ;; End: > #+end_src But in my case (which is quite common I think) this would require adding those local variables sections to each code block. My Emacs config alone has upwards of 170 code blocks, which means same three lines repeated 170 times adding up to extra 510 lines, just for setting one variable consistently. --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427