Skip to content

Instantly share code, notes, and snippets.

@Fuco1
Last active December 17, 2015 10:09
Show Gist options
  • Save Fuco1/5592975 to your computer and use it in GitHub Desktop.
Save Fuco1/5592975 to your computer and use it in GitHub Desktop.
let/let* transformation
(defun my-let-to-let* ()
(interactive)
(save-excursion
(while (and (sp-beginning-of-sexp '(4)) (not (string-prefix-p (or (word-at-point) "x") "let"))))
(sp-forward-sexp)
(if (looking-back "\\*")
(delete-backward-char 1)
(insert "*"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment