branch: externals/aggressive-indent commit a8c462fbc03ef74e65f4d4a323ae3581f99e9683 Author: Artur Malabarba <bruce.connor...@gmail.com> Commit: Artur Malabarba <bruce.connor...@gmail.com>
Add def to the list of ruby-mode exceptions --- aggressive-indent.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggressive-indent.el b/aggressive-indent.el index 9679e92..afded99 100644 --- a/aggressive-indent.el +++ b/aggressive-indent.el @@ -248,7 +248,7 @@ This is for internal use only. For user customization, use '(when (derived-mode-p 'ruby-mode) (let ((line (thing-at-point 'line))) (and (stringp line) - (string-match "\\b\\(if\\|case\\|do\\|begin\\) *$" line)))))) + (string-match "\\b\\(begin\\|case\\|d\\(?:ef\\|o\\)\\|if\\) *$" line)))))) (defcustom aggressive-indent-dont-indent-if '() "List of variables and functions to prevent aggressive indenting.