Skip to content

Commit

Permalink
treewide: add lexical binding directive to *.el files
Browse files Browse the repository at this point in the history
Fixes a bunch of warnings like:
    …/.yas-setup.el:1:1: Warning: file has no ‘lexical-binding’ directive on its first line
  • Loading branch information
Hi-Angel committed Jan 28, 2024
1 parent 8724246 commit cb9fbb8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions snippets/bibtex-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)
(require 'yasnippet-snippets)

Expand Down
1 change: 1 addition & 0 deletions snippets/c++-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

(defun yas-c++-class-name (str)
Expand Down
1 change: 1 addition & 0 deletions snippets/julia-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

(defun yas-julia-iteration-keyword-choice ()
Expand Down
2 changes: 1 addition & 1 deletion snippets/php-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets
;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets -*- lexical-binding: t -*-

;;; Commentary:

Expand Down
1 change: 1 addition & 0 deletions snippets/prog-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
1 change: 1 addition & 0 deletions snippets/python-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)
(defvar yas-text)

Expand Down
2 changes: 1 addition & 1 deletion snippets/rjsx-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets
;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets -*- lexical-binding: t -*-

;;; Commentary:

Expand Down
2 changes: 1 addition & 1 deletion yasnippet-snippets.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; yasnippet-snippets.el --- Collection of yasnippet snippets
;;; yasnippet-snippets.el --- Collection of yasnippet snippets -*- lexical-binding: t -*-

;; Copyright (C) 2017 Andrea Crotti

Expand Down

0 comments on commit cb9fbb8

Please sign in to comment.