branch: externals/show-font
commit d3a51209eb201600a62a4006098673203069d771
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Use setq-local consistency in the major mode definition
Yes, I know that 'setq' in those variables has the same meaning, but I
prefer this self-evident approach.
---
show-font.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/show-font.el b/show-font.el
index a819587288..dfa4d35c9d 100644
--- a/show-font.el
+++ b/show-font.el
@@ -220,11 +220,11 @@ buffer."
(define-derived-mode show-font-mode special-mode "Show Font"
"Major mode to preview a font file's character set."
(set-buffer-multibyte t)
- (setq buffer-read-only t)
+ (setq-local truncate-lines t
+ buffer-undo-list t
+ auto-save-default nil
+ buffer-read-only t)
(visual-line-mode -1)
- (setq truncate-lines t)
- (setq buffer-undo-list t)
- (setq-local auto-save-default nil)
(show-font--add-text))
;; FIXME 2024-08-25: Do we want to autoload this or does it belong