Skip to content

Instantly share code, notes, and snippets.

@bigos
Created December 18, 2016 23:39
Show Gist options
  • Save bigos/adf886bc8c8241e1c48d2455e53f3a7a to your computer and use it in GitHub Desktop.
Save bigos/adf886bc8c8241e1c48d2455e53f3a7a to your computer and use it in GitHub Desktop.
Emacs Lisp function for unfolding lisp code
;; you can use this function to unfold s-exps so that newline follows after one or more closing brackets
(defun unfold-lisp ()
"Unfold lisp code."
(interactive)
(search-forward ")")
(backward-char)
(search-forward " ")
(newline-and-indent))
(global-set-key (kbd "s-0") 'unfold-lisp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment