Блог пользователя MVP_Harry

Автор MVP_Harry, история, 4 года назад, По-английски

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
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 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 :)

»
4 года назад, # |
  Проголосовать: нравится 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.