branch: elpa/forth-mode
commit a7a5d4ba05d86152da7c1e90111271ce57de5d08
Author: Helmut Eller <[email protected]>
Commit: Helmut Eller <[email protected]>
Use defcustom to define forth-smie-basic-indent
This way M-x set-variable can be used to change it.
---
forth-smie.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/forth-smie.el b/forth-smie.el
index 72b1381f87..3b5809f94f 100644
--- a/forth-smie.el
+++ b/forth-smie.el
@@ -2,6 +2,11 @@
(require 'smie)
+(defcustom forth-smie-basic-indent 2
+ "Basic amount of indentation."
+ :type 'integer
+ :group 'forth-smie)
+
(defvar forth-smie--grammar
(smie-prec2->grammar
(smie-bnf->prec2
@@ -22,8 +27,6 @@
(":noname" words ";"))
(words)))))
-(defvar forth-smie-basic-indent 2)
-
(unless (fboundp 'pcase)
(defmacro pcase (form &rest forms)
0))