diff options
-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")) |