Skip to content

Commit 9afe997

Browse files
committed
Declare rust-buffer-project' and require json' at runtime.
1 parent c00c8a9 commit 9afe997

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rust-mode.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616

1717
(eval-when-compile (require 'rx)
1818
(require 'compile)
19-
(require 'url-vars)
20-
(require 'json))
19+
(require 'url-vars))
20+
21+
(require 'json)
2122

2223
(defvar electric-pair-inhibit-predicate)
2324
(defvar electric-indent-chars)
2425

26+
(defvar rust-buffer-project)
27+
(make-variable-buffer-local 'rust-buffer-project)
28+
2529
;; for GNU Emacs < 24.3
2630
(eval-when-compile
2731
(unless (fboundp 'setq-local)

0 commit comments

Comments
 (0)