Commit 41ee24254e7e

Vincent Demeester <vincent@sbr.pm>
2018-09-07 18:06:48
Add lexical-binding to my configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent e75babf
lisp/shortbrain-theme.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 ;;; shortbrain-theme.el --- Shortbrain theme
 
 ;; Copyright (C) 2013-2016 Marian Schubert
lisp/vde-buffers.el
@@ -1,4 +1,4 @@
-
+;;; -*- lexical-binding: t; -*-
 ;; Don't let the cursor go into minibuffer prompt
 (let ((default (eval (car (get 'minibuffer-prompt-properties 'standard-value))))
       (dont-touch-prompt-prop '(cursor-intangible t)))
lisp/vde-company.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package company
   :commands global-company-mode
   :init
lisp/vde-compile.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package compile
   :defer 2
   :config
lisp/vde-dired.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package dired
   :defer t
   :bind (("<C-return>" . vde-open-in-external-app)
lisp/vde-docker.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package dockerfile-mode            ; Edit docker's Dockerfiles
   :mode ("Dockerfile\\'" . dockerfile-mode))
 
lisp/vde-editing.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package aggressive-indent          ; Automatically indent code
   :bind ("C-c t i" . aggressive-indent-mode)
   :hook ((lisp-mode       . aggressive-indent-mode)
lisp/vde-files.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package files                      ; Core commands for files
   :bind (("<f5>" . revert-buffer)))
 
lisp/vde-go.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package go-mode
   :mode "\\.go$"
   :interpreter "go"
@@ -24,7 +25,7 @@
   (if (not (executable-find "goimports"))
       (warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
     (add-hook 'before-save-hook 'gofmt-before-save))
-    (if (not (string-match "go" compile-command))   ; set compile command default
+  (if (not (string-match "go" compile-command))   ; set compile command default
       (set (make-local-variable 'compile-command)
            "go build -v && go test -v && go vet")))
 
lisp/vde-groovy.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package groovy-mode
   :mode "\\.groovy\\'\\|\\.gradle\\'\\|\\jenkinsfile\\'")
 
lisp/vde-hydras.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (defhydra hydra-projects (:color blue)
   "Open projects"
   ("b" (find-file "~/src/github.com/vdemeester/blog/README.md") "blog")
lisp/vde-imenu.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package imenu-list
   :commands (vde/imenu-list-display-toggle)
   :bind (("C-'" . vde/imenu-list-display-toggle))
lisp/vde-ivy.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 ;; This file stores my configuration for Ivy and related packages.
 (use-package ivy
   :bind (:map vde-mode-map
lisp/vde-keybindings.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package key-chord
   :chords
   (("''" . "’")
lisp/vde-media.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package pulseaudio-control
   :defer 5
   :init
lisp/vde-mode.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 ;; My minor mode
 ;; Main use is to have my key bindings have the highest priority
 
lisp/vde-navigating.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package avy                   ; Jump to characters in buffers
   :bind (("C-c j"   . avy-goto-word-1)
          ("C-c n b" . avy-pop-mark)
lisp/vde-nix.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package nix-mode
   :mode "\\.nix\\'"
   :config
lisp/vde-org.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package org
   :defer t
   :mode (("\\.org$" . org-mode))
lisp/vde-projectile.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package projectile                 ; Project management
   :init (projectile-mode)
   :chords (("pf" . projectile-find-file)
lisp/vde-rust.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package rust-mode
   :mode "\\.rs\\'"
   :init
lisp/vde-search.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 ;; Ignore directories during grep
 (with-eval-after-load 'grep
   '(progn
lisp/vde-shells.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package shell                 ; Specialized comint.el for running the shell
   :bind (("<f1>"      . vde-shell-open)
          ("C-c a s s" . vde-shell-open)
lisp/vde-vcs.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package vc-hooks                   ; Simple version control
   :bind (("S-<f5>" . vc-revert)
          ("C-c v r" . vc-refresh-state))
lisp/vde-web.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (use-package web-mode
   :mode
   ("\\.html\\'" . web-mode)
lisp/vde-windows.el
@@ -1,3 +1,4 @@
+;;; -*- lexical-binding: t; -*-
 (setq window-combination-resize t) ; Size new windows proportionally
 
 (use-package fullframe                 ; Generalized execution in a single frame