diff options
author | Case Duckworth | 2021-04-20 16:24:06 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-20 16:24:06 -0500 |
commit | 2d364b5c899a163106f9703ca703862a455b8c3b (patch) | |
tree | d9eab759e0c5418bc76a7466f9ad91dc86e2d66e | |
parent | Rename functions in acdw-org.el (diff) | |
download | emacs-2d364b5c899a163106f9703ca703862a455b8c3b.tar.gz emacs-2d364b5c899a163106f9703ca703862a455b8c3b.zip |
Advise setup to use lexical-binding
-rw-r--r-- | init.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/init.el b/init.el index d3a4111..d073708 100644 --- a/init.el +++ b/init.el | |||
@@ -19,6 +19,14 @@ | |||
19 | ;; Let's use lexical binding by default, shall we? | 19 | ;; Let's use lexical binding by default, shall we? |
20 | (setq-default lexical-binding t) | 20 | (setq-default lexical-binding t) |
21 | 21 | ||
22 | ;; For some reason, the above setting doesn't translate to the *scratch* | ||
23 | ;; buffer, where I try out packages. | ||
24 | (advice-add 'setup :around | ||
25 | (defun acdw/setup-lexical-advice (orig-fun &rest args) | ||
26 | "Wrap `setup' in a `lexical-binding' form." | ||
27 | (let ((lexical-binding t)) | ||
28 | (apply orig-fun args)))) | ||
29 | |||
22 | 30 | ||
23 | ;;; Necessary packages | 31 | ;;; Necessary packages |
24 | 32 | ||
@@ -371,7 +379,7 @@ | |||
371 | t))) | 379 | t))) |
372 | 380 | ||
373 | 381 | ||
374 | ;; Applications | 382 | ;;; Applications |
375 | 383 | ||
376 | (setup (:straight (org :host nil | 384 | (setup (:straight (org :host nil |
377 | :repo "https://code.orgmode.org/bzg/org-mode.git")) | 385 | :repo "https://code.orgmode.org/bzg/org-mode.git")) |