[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list it
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting |
Date: |
Sun, 6 Feb 2022 16:59:31 -0500 (EST) |
branch: elpa/typescript-mode
commit 178ceca2d4e4a0a45d46345a46ec177b7952468d
Author: Ivan Sokolov <ivan-p-sokolov@ya.ru>
Commit: Ivan Sokolov <ivan-p-sokolov@ya.ru>
Add option for list items indenting
---
typescript-mode.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/typescript-mode.el b/typescript-mode.el
index 09add95553..7bad249e70 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -653,6 +653,11 @@ replicate tsserver behaviour. Indent level is taken to be
:type 'boolean
:group 'typescript)
+(defcustom typescript-indent-list-items t
+ "Enable indenting of list items, useful for certain code styles."
+ :type 'boolean
+ :group 'typescript)
+
(defcustom typescript-auto-indent-flag t
"Whether to automatically indent when typing punctuation characters.
If non-nil, the characters {}();,: also indent the current line
@@ -2535,7 +2540,8 @@ moved on success."
(if (and in-switch-p typescript-indent-switch-clauses)
(+ indent typescript-indent-level)
indent)))
- (unless same-indent-p
+ (when (and (not same-indent-p)
+ typescript-indent-list-items)
(forward-char)
(skip-chars-forward " \t"))
(if continued-expr-p
- [nongnu] elpa/typescript-mode 72ec0f93aa 125/222: Merge pull request #90 from jack-williams/add-never, (continued)
- [nongnu] elpa/typescript-mode 72ec0f93aa 125/222: Merge pull request #90 from jack-williams/add-never, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 69607202bc 139/222: Make GPL license discoverable by Github., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f20103a448 154/222: Add `delete-selection` hints, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode fe63c579b5 158/222: Merge pull request #120 from emacs-typescript/tsx-tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bd15f212a7 165/222: Implement support type-highlighting in some basic declarations, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 444aa36ec2 169/222: Fix the indentation of member expressions and continued expressions., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a8b7e76e85 171/222: Fix infinite loop in indentation., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 62e0366b46 181/222: Remove debugging code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a504b6f571 182/222: Merge pull request #1 from jkdufair/jkdufair-remove-debugging-code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode daded219e6 199/222: Create initial GitHub actions build-definition, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 67fd5fe4f2 200/222: Delete .travis.yml, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1043025d42 204/222: Merge pull request #143 from jcs-PR/badge, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3abc9dc6da 006/222: missed table, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a922c27e95 111/222: Merge pull request #76 from ananthakumaran/fix/drop-typescript-parent-mode, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1da0c0e8b3 084/222: Try fix CI-build., ELPA Syncer, 2022/02/06