Search Results
6/23/2025, 2:53:53 AM
>>105674817
Quick comments: If you're going to use :keyword arguments a lot, I'd look into cl-defun.
;; https://www.gnu.org/software/emacs/manual/html_node/cl/Argument-Lists.html
(info "(cl) Argument Lists")
It'll give you an &key that'll do the plist-get calls for you.
It otherwise looks like it was written by an experienced programmer even if Elisp is still relatively new to you. It's good to see docstrings on every function. One little thing you might not know is that there's a way to quote symbols in docstrings such that they become clickable when viewed via `C-h f`.
(defun my/print-window-tree ()
"Prints the window tree layout using `my/descend-window-tree'."
(interactive)
)
Notice how `my/descent-window-tree' is wrapped in a backtick ` and a single quote '. Emacs will try to turn that into a clickable link when viewed via the help system. I wanted to link to the docs for this quoting notation, but I couldn't find it. I was hoping it was somehwere under here.
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Documentation.html
(info "(elisp) Documentation")
Quick comments: If you're going to use :keyword arguments a lot, I'd look into cl-defun.
;; https://www.gnu.org/software/emacs/manual/html_node/cl/Argument-Lists.html
(info "(cl) Argument Lists")
It'll give you an &key that'll do the plist-get calls for you.
It otherwise looks like it was written by an experienced programmer even if Elisp is still relatively new to you. It's good to see docstrings on every function. One little thing you might not know is that there's a way to quote symbols in docstrings such that they become clickable when viewed via `C-h f`.
(defun my/print-window-tree ()
"Prints the window tree layout using `my/descend-window-tree'."
(interactive)
)
Notice how `my/descent-window-tree' is wrapped in a backtick ` and a single quote '. Emacs will try to turn that into a clickable link when viewed via the help system. I wanted to link to the docs for this quoting notation, but I couldn't find it. I was hoping it was somehwere under here.
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Documentation.html
(info "(elisp) Documentation")
Page 1