Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions extensions/lisp-mode/lisp-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@
(connect-to-micros *localhost* port)
(update-buffer-package)

;; XXX:
;; Systems added after lem initialization are not visible from within this process and must
;; be re-initialized.
(asdf:clear-source-registry)

(setf *self-connected-port* port))))

(defun self-connection ()
Expand Down
8 changes: 0 additions & 8 deletions src/lem.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,12 @@
(unless (uiop:pathname-equal current-dir (user-homedir-pathname))
(maybe-load (merge-pathnames ".lemrc" current-dir))))))

(defun initialize-source-registry ()
(asdf:initialize-source-registry
`(:source-registry
:inherit-configuration
(:also-exclude ".qlot")
(:tree ,(asdf:system-source-directory :lem)))))

(defun init-at-build-time ()
"This function is called when an lem executable file is built.
If a file named $HOME/.lem/build-init.lisp exists, it is loaded.
The difference is that init.lisp loading is called when the editor is started,
while build-init.lisp is called when the binary file is created.
See scripts/build-ncurses.lisp or scripts/build-sdl2.lisp"
(initialize-source-registry)
(let ((file (merge-pathnames "build-init.lisp" (lem-home))))
(when (uiop:file-exists-p file)
(load file))))
Expand Down
Loading