Guest User

Untitled

a guest
Sep 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. (defun pp-macroexpand ()
  2. (interactive)
  3. (save-excursion
  4. (pp-macroexpand-expression (read (current-buffer)))))
  5.  
  6. (dolist (map (list lisp-interaction-mode-map emacs-lisp-mode-map))
  7. (define-key map (kbd "C-c RET") 'pp-macroexpand))
  8.  
  9. (when (featurep 'popwin)
  10. (push '("*Pp Macroexpand Output*" :noselect t) popwin:special-display-config))
Add Comment
Please, Sign In to add comment