diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-10-16 15:16:49 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-10-16 15:16:49 -0200 |
commit | a8c462fbc03ef74e65f4d4a323ae3581f99e9683 (patch) | |
tree | 582e6679b75dc67b85b4b637ec5d889a25e067a2 | |
parent | 2f54a587ce2c7fdf48a2335b6a58172b66f9a581 (diff) |
Add def to the list of ruby-mode exceptions
-rw-r--r-- | aggressive-indent.el | 2 |
1 files changed, 1 insertions, 1 deletions
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. |