Display links in a tabulated buffer
This commit is contained in:
parent
a4d498e6d5
commit
9760a78da2
10
dsptl.el
10
dsptl.el
@ -72,8 +72,14 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(let ((links (dsptl--list-links)))
|
(let ((links (dsptl--list-links)))
|
||||||
(switch-to-buffer (format "*Links in %s*" default-directory))
|
(switch-to-buffer (format "*Links in %s*" default-directory))
|
||||||
(dolist (link links)
|
(setq tabulated-list-format [("Source File" 25 t)
|
||||||
(insert (format "%s\t->\t%s\n" (car link) (cdr link))))))
|
("Target" 25 t)]
|
||||||
|
tabulated-list-entries (mapcar (lambda (link)
|
||||||
|
(list (cdr link) (vector (car link) (cdr link))))
|
||||||
|
links))
|
||||||
|
(tabulated-list-init-header)
|
||||||
|
(tabulated-list-print t)
|
||||||
|
(read-only-mode 1)))
|
||||||
|
|
||||||
(provide 'dsptl)
|
(provide 'dsptl)
|
||||||
;;; dsptl.el ends here
|
;;; dsptl.el ends here
|
||||||
|
Reference in New Issue
Block a user