this post was submitted on 12 Oct 2023
0 points (50.0% liked)

Emacs

310 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Is there a way I can compile then run my compiled application, if its already running then exit recompile and run.

So current work flow is compile switch to terminal run binary, switch back make changes compile return to terminal Ctrl + C to kill then run again, be nice if I could do all this from inside emacs.

I guess a bash script could be an option but curious if others have this work flow and how it works ?

Currently in a golang workflow but even better if there is a generic solution.

you are viewing a single comment's thread
view the rest of the comments
[–] JohnDoe365@alien.top 1 points 1 year ago (1 children)

In which case I wonder why you are not running go run anyway?

[–] olymk2@alien.top 1 points 1 year ago

Probably because I was just getting into golang and following a tutorial which did not mention using go run, but I will now thanks :)