Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun my-lisp-load (filename)
- "Load lisp from FILENAME"
- (let ((fullname (expand-file-name (concat "spec/" filename) user-emacs-directory))
- lisp)
- (when (file-readable-p fullname)
- (with-temp-buffer
- (progn
- (insert-file-contents fullname)
- (setq lisp
- (condition-case nil
- (read (current-buffer))
- (error ()))))))
- lisp))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement