1. (defun readini(path / lst file path)
    2. (setq lst (read (read-line (setq file (open path "r")))))
    3. (close file)
    4. lst
    5. )
    6. (defun writeini(path lst)
    7. (setq file (open path "w"))
    8. (write-line (vl-prin1-to-string lst) file)
    9. (close file)
    10. (prin1)
    11. )
    12. (defun getini(dlst key) (cdr (assoc key dlst)))
    13. (defun setini(dlst key value / lst old)
    14. (if (setq old (assoc key dlst))
    15. (setq lst (subst (cons key value) old dlst))
    16. (setq lst (cons (cons key value) dlst))
    17. )
    18. lst
    19. )
    20. (defun makeconfile(path lst)
    21. (if (findfile path)
    22. (setq datalst (readini path))
    23. (writeini path lst)
    24. )
    25. (prin1)
    26. )