summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-19 22:35:31 +0200
committerGravatar Tom Willemse2014-04-19 22:35:43 +0200
commitb8b6e1685db72fc1c3b6a031c5ec64b54ae0f1a1 (patch)
treeea93f0fe95861a7bd63faacce7f108a84e3bd01b
parent809098108470a81831602d55e6b97c9519eab1bf (diff)
downloademacs-b8b6e1685db72fc1c3b6a031c5ec64b54ae0f1a1.tar.gz
emacs-b8b6e1685db72fc1c3b6a031c5ec64b54ae0f1a1.zip
Use lexical binding in org-generated init
-rw-r--r--.emacs.d/init.org10
1 files changed, 9 insertions, 1 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index 2cd3696..d49ce55 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -5,6 +5,14 @@
#+MACRO: key @@html:<kbd>$1</kbd>@@@@ascii:`$1'@@
#+HTML_HEAD: <link href="https://ryuslash.org/org.css" rel="stylesheet" type="text/css">
+* Use lexical binding
+
+ For some of these functions lexical binding is a must.
+
+ #+BEGIN_SRC emacs-lisp :padline no
+ ;; -*- lexical-binding: t -*-
+ #+END_SRC
+
* Cleanup basic UI
The tool-bar, menu-bar and scroll-bar aren't particularly
@@ -13,7 +21,7 @@
with {{{key(M-x)}}}. The scroll-bar is almost just as informative as
the current line number and buffer position information.
- #+BEGIN_SRC emacs-lisp :padline no
+ #+BEGIN_SRC emacs-lisp
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)