emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define for


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent
Date: Sat, 29 Jan 2022 08:02:26 -0500 (EST)

branch: elpa/forth-mode
commit a7a5d4ba05d86152da7c1e90111271ce57de5d08
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Helmut Eller <eller.helmut@gmail.com>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]