Skip to content

Commit

Permalink
add repl-shortcut ls
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jul 17, 2023
1 parent 7fd92ea commit 50fcc1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modes/lisp-mode/repl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -521,3 +521,9 @@
(define-repl-shortcut quickload ()
(let ((system (prompt-for-system "Quickload System: ")))
(listener-eval (prin1-to-string `(ql:quickload ,system)))))

(define-repl-shortcut ls ()
(insert-character (current-point) #\newline)
(lem/directory-mode::insert-directories-and-files (current-point)
(buffer-directory (current-buffer)))
(lem/listener-mode:refresh-prompt (current-buffer)))

0 comments on commit 50fcc1b

Please sign in to comment.