Skip to content

Commit

Permalink
clear messages buffer on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Jun 19, 2024
1 parent f2d8b40 commit ee0a66a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sonic-pi.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,16 @@

(defun sonic-pi-messages-buffer-init ()
(when sonic-pi-log-messages
(when (get-buffer sonic-pi-message-buffer-name)
(with-current-buffer
sonic-pi-message-buffer-name
(erase-buffer)))
(start-file-process-shell-command
"sonic-pi-logs"
sonic-pi-message-buffer-name
;;FIXME properly wait for sonic pi to start
(format "sleep 3;%s"(sonic-pi-logs-cmd)))))
(format "sleep 5;%s"(sonic-pi-logs-cmd)))
(display-buffer sonic-pi-message-buffer-name)))

(defun sonic-pi-sonic-server-cleanup ()
(when (get-process "sonic-pi-server")
Expand Down

0 comments on commit ee0a66a

Please sign in to comment.