Replace obsolete functions/commands

This commit is contained in:
Henrik Lissner 2017-04-17 02:19:20 -04:00
parent ed2e7a65f6
commit e204df3c05
9 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,8 @@
(goto-char (1+ beg)) (insert "\n")
(unless (string-match ";[\s\t]*}$" (buffer-substring-no-properties beg (1+ end)))
(goto-char end) (insert "\n"))
(replace-regexp ";[\s\t]*" ";\n" nil beg (1+ end))
(while (re-search-forward ";[\s\t]*" (1+ end) t)
(replace-match ";\n" t t))
(setq end (cadr (evil-a-curly)))
(evil-indent beg end)
(delete-trailing-whitespace beg end))