mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-05 22:32:26 +00:00
Add lexical binding cookies (#389)
* Add lexical binding cookies * multiple-cursors-core.el: Pacify lexical-binding frenzy in master * multiple-cursors-core.el: when saving mc/list-file, prepend a lexical binding flag to avoid emacs master from screaming. When inserting strings, use `\\n' instead of (newline).
This commit is contained in:
committed by
GitHub
parent
89f1a8df9b
commit
9017f3be6b
@@ -1,4 +1,4 @@
|
||||
;;; multiple-cursors-core.el --- An experiment in multiple cursors for emacs.
|
||||
;;; multiple-cursors-core.el --- An experiment in multiple cursors for emacs. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2012-2016 Magnar Sveen
|
||||
|
||||
@@ -885,11 +885,10 @@ for running commands with multiple cursors."
|
||||
"Saves preferences for running commands with multiple cursors to `mc/list-file'"
|
||||
(with-temp-file mc/list-file
|
||||
(emacs-lisp-mode)
|
||||
(insert ";; This file is automatically generated by the multiple-cursors extension.")
|
||||
(newline)
|
||||
(insert ";; It keeps track of your preferences for running commands with multiple cursors.")
|
||||
(newline)
|
||||
(newline)
|
||||
(when (> emacs-major-version 30)
|
||||
(insert ";; -*- lexical-binding: t; -*-\n"))
|
||||
(insert ";; This file is automatically generated by the multiple-cursors extension.\n")
|
||||
(insert ";; It keeps track of your preferences for running commands with multiple cursors.\n\n")
|
||||
(mc/dump-list 'mc/cmds-to-run-for-all)
|
||||
(newline)
|
||||
(mc/dump-list 'mc/cmds-to-run-once)))
|
||||
|
||||
Reference in New Issue
Block a user