Next: The emacs-library-link
Widget, Previous: The face-link
Widget, Up: Basic Types [Contents][Index]
file-link
WidgetSyntax:
type ::= (file-link [keyword argument]... file)
A widget to represent a link to a file. Its super is the
link
widget.
It overrides the :action
property, to a function to find the file
file.
Example:
(let ((elisp-files (directory-files user-emacs-directory t ".el$"))) (dolist (file elisp-files) (widget-create 'file-link :button-prefix "" :button-suffix "" file) (widget-insert "\n")))