I find myself missing the M-! binding from emacs to run a shell command. A minimal implementation of this in lem would look like this.
(lem:define-command shell-command (cmd) ((:string "Command to run: "))
(lem-process:run-process
(uiop:split-string cmd)
:output-callback (lambda (str)
(lem:message str))))
(lem:define-key lem:*global-keymap* "M-!" 'shell-command)
I've tried using run-shell, but that doesn't seem to work
0: *shell pid:81579*
warning: No TTY for interactive shell (tcgetpgrp failed)
setpgid: Inappropriate ioctl for device
I also setting lem-shell-mode:*default-shell-command*, to no avail.
I find myself missing the
M-!binding from emacs to run a shell command. A minimal implementation of this in lem would look like this.I've tried using run-shell, but that doesn't seem to work
I also setting
lem-shell-mode:*default-shell-command*, to no avail.