From e329582f54f85069d2adb47578c580fb7a3071e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peric=20Tavares?= Date: Sun, 15 Jul 2018 15:17:14 -0300 Subject: [PATCH] Use lexical binding in dotfile template Lexical binding is easier to reason about and it's generally recommended for new code. It's faster too. Dynamic scoping can lead to tricky situations. Example: https://emacs.stackexchange.com/questions/10394/scope-in-lambda This probably won't break existing code. Most people don't even know the default is dynamic binding. --- core/templates/.spacemacs.template | 1 + 1 file changed, 1 insertion(+) diff --git a/core/templates/.spacemacs.template b/core/templates/.spacemacs.template index 211d8d224..8beeb5614 100644 --- a/core/templates/.spacemacs.template +++ b/core/templates/.spacemacs.template @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t -*- ;; -*- mode: emacs-lisp -*- ;; This file is loaded by Spacemacs at startup. ;; It must be stored in your home directory.