branch: elpa/dart-mode
commit 9d7246971d8593fb8634a8813231679afd86b49f
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
Don't set variables globally
---
dart-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index b209d04..fddee29 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -1958,11 +1958,11 @@ Key bindings:
(modify-syntax-entry ?\n "> b")
(modify-syntax-entry ?\' "\"")
(setq-local electric-indent-chars '(?\n ?\) ?\] ?\}))
- (setq comment-start "//")
- (setq comment-end "")
+ (setq-local comment-start "//")
+ (setq-local comment-end "")
(setq fill-column 80)
(setq font-lock-defaults dart-font-lock-defaults)
- (setq indent-line-function 'dart-indent-line-function)
+ (setq-local indent-line-function 'dart-indent-line-function)
(setq indent-tabs-mode nil)
(setq tab-width 2)
(setq-local syntax-propertize-function dart-syntax-propertize-function)