[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ruby-end 96c19df26d 22/91: adds option for adding the b
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ruby-end 96c19df26d 22/91: adds option for adding the blank line between statement and end |
Date: |
Wed, 25 Jan 2023 19:58:25 -0500 (EST) |
branch: externals/ruby-end
commit 96c19df26df16e0c2e35177cac26302e2eab87af
Author: Matt Briggs <matt@mattbriggs.net>
Commit: Matt Briggs <matt@mattbriggs.net>
adds option for adding the blank line between statement and end
---
ruby-end.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/ruby-end.el b/ruby-end.el
index 0310c7c5fc..79a01fc105 100644
--- a/ruby-end.el
+++ b/ruby-end.el
@@ -61,6 +61,11 @@
:type 'boolean
:group 'ruby)
+(defcustom ruby-end-insert-newline t
+ "*Disable or enable additional newline in between statement and end"
+ :type 'boolean
+ :group 'ruby)
+
(defconst ruby-end-expand-postfix-modifiers-before-re
"\\(?:if\\|unless\\|while\\)"
"Regular expression matching statements before point.")
@@ -103,8 +108,10 @@
(current-column))))
(save-excursion
(newline)
- (indent-line-to (+ whites ruby-indent-level))
- (newline)
+ (if ruby-end-insert-newline
+ (progn
+ (indent-line-to (+ whites ruby-indent-level))
+ (newline)))
(indent-line-to whites)
(insert "end"))))
- [elpa] branch externals/ruby-end created (now 2d4097afcb), ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 97db28da68 01/91: first commit, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 9801aa199a 09/91: Do not expand when there's text after point., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 37b5fdad6d 13/91: Tests only pass when using read-kbd-macro instead of kbd, which really is the same..., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 9f0caf41d6 15/91: Update regular expressions for matching expansion., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8cc9faf605 17/91: Allow to toggle on/off expansion with statement modifiers, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 96c19df26d 22/91: adds option for adding the blank line between statement and end,
ELPA Syncer <=
- [elpa] externals/ruby-end 690e970812 23/91: Use when instead of if/progn., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8787319fe3 04/91: Added code with tests., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 427237b83d 25/91: Fix whitespace and indent., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 45670f9134 26/91: Version bump., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 3f9349c3d0 28/91: Update espuds., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 25baf1c7d8 31/91: Update espuds., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 18edd3af0b 32/91: Fix feature indentation., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end cc1f6cf297 34/91: Add 'ruby' keyword., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5c6261a267 39/91: Do these even more interactively., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end be0e1a154f 42/91: Update copyright years., ELPA Syncer, 2023/01/25