branch: elpa/scad-mode
commit 3609ca3ee173de22f896488c9d92e264c0a9313d
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Use setq-local
---
scad-mode.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/scad-mode.el b/scad-mode.el
index 391841ba00..87d6bc8349 100644
--- a/scad-mode.el
+++ b/scad-mode.el
@@ -5,7 +5,7 @@
;; Created: 2010
;; Keywords: languages
;; Homepage: https://github.com/openscad/emacs-scad-mode
-;; Package-Requires: ((emacs "26.1"))
+;; Package-Requires: ((emacs "27.1"))
;; Version: 92.0
;; This file is not part of GNU Emacs.
@@ -374,21 +374,21 @@ Key bindings:
(define-derived-mode scad-preview-mode image-mode "SCAD Preview"
"Major mode for SCAD preview buffers."
- (setq buffer-read-only t
- line-spacing nil
- cursor-type nil
- cursor-in-non-selected-windows nil
- left-fringe-width 1
- right-fringe-width 1
- left-margin-width 0
- right-margin-width 0
- truncate-lines nil
- show-trailing-whitespace nil
- display-line-numbers nil
- fringe-indicator-alist '((truncation . nil))
- revert-buffer-function #'scad--preview-reset
- mode-line-position '(" " scad--preview-mode-camera)
- mode-line-process '(" " scad--preview-mode-status)))
+ (setq-local buffer-read-only t
+ line-spacing nil
+ cursor-type nil
+ cursor-in-non-selected-windows nil
+ left-fringe-width 1
+ right-fringe-width 1
+ left-margin-width 0
+ right-margin-width 0
+ truncate-lines nil
+ show-trailing-whitespace nil
+ display-line-numbers nil
+ fringe-indicator-alist '((truncation . nil))
+ revert-buffer-function #'scad--preview-reset
+ mode-line-position '(" " scad--preview-mode-camera)
+ mode-line-process '(" " scad--preview-mode-status)))
(defun scad--preview-reset (&rest _)
"Reset camera parameters and refresh."