diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/doom/config.org | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org index 1ab1b75..3bfb1dc 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -78,6 +78,16 @@ Because I always need help and it should come up quickly :nv ")" #'sp-next-sexp :nv "(" #'sp-backward-sexp)) #+end_src +** View emacs structures +#+begin_src emacs-lisp +(defun on/display-obj (obj) + "Display in new buffer the given OBJ pretty printed." + (with-current-buffer (get-buffer-create "*Lisp Display*") + (erase-buffer) + (pp obj (current-buffer)) + (emacs-lisp-mode) + (display-buffer (current-buffer)))) +#+end_src * Dictionary #+begin_src emacs-lisp :tangle "packages.el" (package! lexic) |