Skip to content

Commit bb33ed3

Browse files
committed
Enable lexical binding in environment-modules-init.el
Fixes the following unsightly warning in Emacs 31: ``` ⛔ Warning (files): Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/environment-modules-init.el". You can add one with ‘M-x elisp-enable-lexical-binding RET’. See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ for more information. ``` While we’re here, keep `checkdoc` happy. Signed-off-by: Peter Oliver <git@mavit.org.uk>
1 parent 963c542 commit bb33ed3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
;; Activate modulefile-mode
1+
;;; environment-modules-init.el --- Autoload modulefile-mode -*- lexical-binding: t; -*-
2+
3+
;;; Commentary:
4+
;;
5+
;; Activate modulefile-mode. Use first line of file to recognize file type.
6+
7+
;;; Code:
28

3-
;; Use first line of file to recognize file type
49
(add-to-list 'magic-mode-alist '("#%Module" . modulefile-mode))
510

611
(autoload 'modulefile-mode "modulefile-mode"
712
"Major mode for editing Modulefile scripts." t)
13+
14+
;;; environment-modules-init.el ends here

0 commit comments

Comments
 (0)