diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2022-09-19 19:47:37 +0200 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2022-09-19 19:47:37 +0200 |
commit | 75999697207159b45f5f10409edb6d44d0131458 (patch) | |
tree | b3eb8e08e224452e161f43f178c052d44e50b4a8 | |
parent | 9a019dafab179c68f5715cb0e6b99c76648ce324 (diff) | |
download | dotfiles-75999697207159b45f5f10409edb6d44d0131458.tar.gz dotfiles-75999697207159b45f5f10409edb6d44d0131458.tar.bz2 dotfiles-75999697207159b45f5f10409edb6d44d0131458.zip |
view elisp objects
-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) |