Function: treemacs-show-extensions
treemacs-show-extensions is an interactive and byte-compiled function
defined in treemacs-interface.el.
Signature
(treemacs-show-extensions)
Documentation
Display a list of all active extensions.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-show-extensions ()
"Display a list of all active extensions."
(interactive)
(-let [txt (list "#+TITLE: Treemacs Active Extensions\n")]
(cl-flet ((with-face (txt face) (propertize txt 'font-lock-face face)))
(pcase-dolist
(`(,headline . ,name)
'(("* Directory Extensions" . directory)
("* Project Extensions" . project)
("* Root Extetensions" . root)) )
(let ((top-name (symbol-value (intern (format "treemacs--%s-top-extensions" name))))
(bottom-name (symbol-value (intern (format "treemacs--%s-bottom-extensions" name)))))
(push headline txt)
(pcase-dolist
(`(,pos-txt . ,pos-val)
`(("** Top" . ,top-name)
("** Bottom" . ,bottom-name)))
(push pos-txt txt)
(if pos-val
(dolist (ext pos-val)
(push (format " - %s\n with predicate %s\n defined in %s"
(with-face (symbol-name (car ext)) 'font-lock-keyword-face)
(with-face (--if-let (cdr ext) (symbol-name it) "None") 'font-lock-function-name-face)
(with-face (get (car ext) :defined-in) 'font-lock-string-face))
txt))
(push (with-face " - None" 'font-lock-comment-face) txt))))))
(-let [buf (get-buffer-create "*Treemacs Extension Overview*")]
(switch-to-buffer buf)
(org-mode)
(erase-buffer)
(->> txt (nreverse) (--map (concat it "\n")) (apply #'concat) (insert))
(with-no-warnings (org-reveal))
(goto-char 0)
(forward-line))))