Created
December 18, 2016 23:39
-
-
Save bigos/adf886bc8c8241e1c48d2455e53f3a7a to your computer and use it in GitHub Desktop.
Emacs Lisp function for unfolding lisp code
This file contains 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 characters
;; 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