From bf94cd7ac5102ac26033ee64ef40148696676d62 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Thu, 28 Jul 2016 01:07:54 +1000 Subject: [PATCH] lexical binding --- init.el | 2 ++ lisp/my-backups.el | 2 ++ lisp/my-completion.el | 2 ++ lisp/my-defuns.el | 2 ++ lisp/my-file-modes.el | 2 ++ lisp/my-flycheck.el | 2 ++ lisp/my-gui.el | 2 ++ lisp/my-keys.el | 2 ++ lisp/my-minor-modes.el | 2 ++ lisp/my-other-modes.el | 2 ++ lisp/my-recentf.el | 2 ++ 11 files changed, 22 insertions(+) diff --git a/init.el b/init.el index d8cedf2..8e1296b 100644 --- a/init.el +++ b/init.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (add-to-list 'load-path "~/.emacs.d/lisp/") (dolist (name (directory-files "~/.emacs.d/packages/")) diff --git a/lisp/my-backups.el b/lisp/my-backups.el index 649be4a..360586b 100644 --- a/lisp/my-backups.el +++ b/lisp/my-backups.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (setq create-lockfiles nil) diff --git a/lisp/my-completion.el b/lisp/my-completion.el index 47b75f4..63b066d 100644 --- a/lisp/my-completion.el +++ b/lisp/my-completion.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'counsel) (require 'ivy) (require 'swiper) diff --git a/lisp/my-defuns.el b/lisp/my-defuns.el index 3c51d9b..176da08 100644 --- a/lisp/my-defuns.el +++ b/lisp/my-defuns.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'cl-lib) (defun my/copy-line (arg) diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 326e6ee..0060892 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (setq-default indent-tabs-mode nil) (setq-default c-basic-offset 4) (setq-default python-indent-offset 4) diff --git a/lisp/my-flycheck.el b/lisp/my-flycheck.el index d0a1959..a0256d5 100644 --- a/lisp/my-flycheck.el +++ b/lisp/my-flycheck.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'flycheck) (global-flycheck-mode 1) diff --git a/lisp/my-gui.el b/lisp/my-gui.el index 3552709..7376d1b 100644 --- a/lisp/my-gui.el +++ b/lisp/my-gui.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'pastels-on-dark-theme) (menu-bar-mode -1) diff --git a/lisp/my-keys.el b/lisp/my-keys.el index e3538f1..fb33ded 100644 --- a/lisp/my-keys.el +++ b/lisp/my-keys.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + ;; Disable suspend-frame, it's annoying (global-set-key (kbd "C-z") nil) diff --git a/lisp/my-minor-modes.el b/lisp/my-minor-modes.el index ad140c2..925b691 100644 --- a/lisp/my-minor-modes.el +++ b/lisp/my-minor-modes.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'avy) (setq avy-background t) (setq avy-all-windows nil) diff --git a/lisp/my-other-modes.el b/lisp/my-other-modes.el index 62b7e7f..ea16f6d 100644 --- a/lisp/my-other-modes.el +++ b/lisp/my-other-modes.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'autorevert) (global-auto-revert-mode 1) (setq global-auto-revert-non-file-buffers t) diff --git a/lisp/my-recentf.el b/lisp/my-recentf.el index 977d153..5d41f17 100644 --- a/lisp/my-recentf.el +++ b/lisp/my-recentf.el @@ -1,3 +1,5 @@ +;;; -*- lexical-binding: t -*- + (require 'recentf) (setq recentf-exclude '("recentf")) -- 2.39.2