Org Notes Index

Table of Contents

1. What is this?

This an index for all my notes :D Since I use Neocities to store my notes.

2. Code

;; GET_LIST()
(directory-files-recursively (expand-file-name dir) (format "\\.%s\\'" ext) nil)
;; TO_HTML_ITEM()
(princ "<ul>")
(setq file_list
      (mapcar (lambda (arg)
		(setq arg (file-relative-name arg))
		(format "<li><a href='%s'>%s</a></li>" arg arg))
	      (car file_list)))
(dolist (item file_list) (princ item))
(princ "</ul>")

Author: Troy Dwijanto

Created: 2022-04-05 Tue 03:34

Validate