olymk2

joined 1 year ago
 

When I run eval-expression I can type in an expression but enter is putting in a new line instead of executing the code, what should I look for to fix this ?

I am guessing it may be some kind of hook but not sure how to find the cause to resolve it

Example attempting to run a code snippet

[–] 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 :)

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

Awesome I will give that a try :)

[–] olymk2@alien.top 1 points 1 year ago (4 children)

Okay so what I think your saying is if i do something like this as the compilation command

go build main.go && ./main

Then when I run compilation again it will kill the buffer and running process and all will be good ?

[–] olymk2@alien.top 1 points 1 year ago (6 children)

I did wonder if that's perhaps the solution, although not sure how you would get the pid in a make file to kill the running instance, make files are not something I have played with much, I will see if others have any suggestions.

 

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.