[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 3c89a0a 054/468: Reorder customizations better.
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 3c89a0a 054/468: Reorder customizations better. |
Date: |
Thu, 5 Aug 2021 04:58:07 -0400 (EDT) |
branch: elpa/lua-mode
commit 3c89a0a2ba8bf51955463f7a315fc49efab57977
Author: Reuben Thomas <rrt@sc3d.org>
Commit: Reuben Thomas <rrt@sc3d.org>
Reorder customizations better.
Add lua-comment-start and lua-comment-start-skip, and change their
default values.
---
lua-mode.el | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 487b260..f862b8a 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -95,6 +95,21 @@
:prefix "lua-"
:group 'languages)
+(defcustom lua-indent-level 3
+ "Amount by which Lua subexpressions are indented."
+ :type 'integer
+ :group 'lua)
+
+(defcustom lua-comment-start "-- "
+ "Default value of `comment-start'."
+ :type 'string
+ :group 'lua)
+
+(defcustom lua-comment-start-skip "-- "
+ "Default value of `comment-start-skip'."
+ :type 'string
+ :group 'lua)
+
(defcustom lua-default-application "lua"
"Default application to run in lua subprocess."
:type 'string
@@ -143,7 +158,7 @@ Should be a list of strings."
(defcustom lua-traceback-line-re
"^\\(?:[\t ]*\\|.*>[\t ]+\\)\\([^\n\t ]+\\):\\([0-9]+\\):"
"Regular expression that describes tracebacks and errors."
- :type 'regexp
+ :type 'regexp
:group 'lua)
(defcustom lua-jump-on-traceback t
@@ -163,11 +178,6 @@ traceback location."
(defvar lua-region-end (make-marker)
"End of special region for Lua communication.")
-(defcustom lua-indent-level 3
- "Amount by which Lua subexpressions are indented."
- :type 'integer
- :group 'lua)
-
(defvar lua-mode-menu (make-sparse-keymap "Lua")
"Keymap for lua-mode's menu.")
@@ -266,8 +276,8 @@ The following keys are bound:
(setq comint-prompt-regexp lua-prompt-regexp)
(make-local-variable 'lua-default-command-switches)
(set (make-local-variable 'indent-line-function) 'lua-indent-line)
- (set (make-local-variable 'comment-start) "--")
- (set (make-local-variable 'comment-start-skip) "--")
+ (set (make-local-variable 'comment-start) lua-comment-start)
+ (set (make-local-variable 'comment-start-skip) lua-comment-start-skip)
(set (make-local-variable 'font-lock-defaults)
'(lua-font-lock-keywords
nil nil ((?_ . "w"))))
- [nongnu] elpa/lua-mode 4a22b3c 100/468: Allow lua-start-process to be called interactively., (continued)
- [nongnu] elpa/lua-mode 4a22b3c 100/468: Allow lua-start-process to be called interactively., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a3ed448 106/468: Make dist with git-archive, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 742180e 125/468: lua-automark-multiline: add lua-automark-multiline-maxsize variable to prevent long waits on big files, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0b3df35 135/468: Fix string content indentation: it's now indented by indent-level relative to indentation of the line where string/comment literal starts (issue #6), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5aa6f9e 042/468: Patch from Reuben: fix long string colouring problem, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode eb5d301 055/468: Bump version., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d66ec8e 080/468: Remove broken multiline literal font-locking, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d142ed1 084/468: Update TODO, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode de12f4b 086/468: lua-mark-all-multiline-literals: also handle multiline comments, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 46683e7 052/468: Make lua-indent-level customizable., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3c89a0a 054/468: Reorder customizations better.,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 158f267 058/468: Merge lua-goto-nonblank-* funcs into one, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c5f37b0 088/468: lua-mark-all-multiline-literals: look for multiline ending beyond specified bounds to improve integrity, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 96658a0 089/468: Move actual marking of multiline construct into lua-mark-multiline-region, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode da22ef7 094/468: Rename lua-clear-multiline-delims -> lua-unmark-multiline-literals, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5607327 096/468: Update TODO, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2b91610 098/468: Bump contact information, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5953970 101/468: Bump version, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c044a1b 109/468: Fix emacs compilation warning in XEmacs-oriented code, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3367502 121/468: Merge pull request #7 from rlph/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9645322 124/468: lua-indent-line: add lua-indent-string-contents custom variable to enable indenting multiline strings if necessary (issue #6), Philip Kaludercic, 2021/08/05