Revisions
-
AJ Christensen renamed this gist
Mar 15, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chrisroberts created this gist
Mar 15, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ (setq ruby-deep-indent-paren nil) (defadvice ruby-indent-line (after unindent-closing-paren activate) (let ((column (current-column)) indent offset) (save-excursion (back-to-indentation) (let ((state (syntax-ppss))) (setq offset (- column (current-column))) (when (and (eq (char-after) ?\)) (not (zerop (car state)))) (goto-char (cadr state)) (setq indent (current-indentation))))) (when indent (indent-line-to indent) (when (> offset 0) (forward-char offset)))))