aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-04-20 18:21:24 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-04-20 18:51:19 +0200
commit082532f2b4f78c7f682a2baec17b64b257f0d5b2 (patch)
tree09d5f88b4d6c22595aa900dfd1e7ebcd15dd6549
parent0c976507044d80d8df45c087c0b36a2489d2e785 (diff)
downloaddotfiles-082532f2b4f78c7f682a2baec17b64b257f0d5b2.tar.gz
dotfiles-082532f2b4f78c7f682a2baec17b64b257f0d5b2.zip
emacs: enable lexical binding for the resulting init file
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.emacs.d/init.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index edd79f2..15ebed6 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -45,6 +45,8 @@ Moreover, in order to avoid manually tangling and compiling the =init.org= file
on each change, the following function is provided:
#+BEGIN_SRC elisp
+;;; init.el -*- lexical-binding: t; -*-
+
(defun tangle-init ()
"If the current buffer is 'init.org' the code-blocks are
tangled, and the tangled file is compiled. Morever, an init.html is generated."