MVP_Harry's blog

By MVP_Harry, history, 5 weeks ago,

Hi Codeforces,

I am now switching to spacemacs as my text editor. It combines some main features of vim and emacs, which makes it very powerful. However, my main concern is how to compile and run the program efficiently. Right now, I have to manually compile the program in terminal using commands like g++ -o test test.cpp and ./test, which takes a lot of time. The previous text editors I used such as sublime text or vim can allow me to create custom shortcuts such as F9 to compile and run the program, but how can I do that in spacemacs?

Sorry if this is a trivial question, but it would be very helpful if you can answer this question :)

• +3

 » 5 weeks ago, # |   0 In case anybody sees this, my current solution is to create a makefile that would compile all the cpp programs in my Programming directory and it seems to work :)
 » 5 weeks ago, # |   0 Spacemacs is an Emacs derivative/add-on, right?You can write code in the .spacemacs (I think) file to write custom commands and shortcuts in Emacs Lisp.
•  » » 5 weeks ago, # ^ |   0 Yep, but I am still a newbie in emacs, so I have to learn Lisp first lol