[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] What is a good way to get some source blocks to inherit file local v
[O] What is a good way to get some source blocks to inherit file local variables? lexical-binding specifically
Mon, 17 Aug 2015 20:26:19 -0500
I am working on an Org document. It is mostly Emacs Lisp source blocks.
I set `lexical-binding' to `t' in the Org document. My goal was that
when I entered source-block-buffers that they would inherit that
property. They don't. I wanted that setting to get inherited because the
document is tangled into Emacs-Lisp files that have the property set.
Org-Mode: `8.3.1'. Obtained from Git. Latest.
The init file looks like this:
;; -*- lexical-binding: t -*- (setq load-prefer-newer t) (add-to-list
'load-path "~/src/org-mode/lisp") (add-to-list 'load-path
"~/src/org-mode/contrib/lisp") (setq org-list-allow-alphabetical t)
(require 'org) (setq org-babel-noweb-wrap-start "«") (setq
I start it like this: `open /Applications/Emacs.app --args --quick
A file that I am working on for example follows:
# -*- lexical-binding: t -*-
When I enter the source block and evaluate it with
`org-babel-execute-src-block' the result it is nil. That is consistent
with inspecting it's value.
What is a good way to get some source blocks to inherit file local
|[Prev in Thread]
||[Next in Thread]|
- [O] What is a good way to get some source blocks to inherit file local variables? lexical-binding specifically,
Grant Rettke <=