MVP_Harry's blog

By MVP_Harry, history, 4 years ago, In English

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 :)

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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 :)

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yep, but I am still a newbie in emacs, so I have to learn Lisp first lol