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

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

I recently switched to Emacs but I can't find any good configurations build for competitive programming.So far I have mapped key to execute cpp programs with input.txt as STDIN .

(defun execute-c-program ()
  (interactive)
  (defvar foo)
  (setq foo (concat "g++ " (buffer-name) " && ./a.out" ))
  (shell-command foo))
(define-key c++-mode-map [f5] #'execute-c-program)

If anyone has better config for compile ,execute that eliminates infinite looping problem and snippets or any useful packages then please share configs.

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

You could potentially try Spacemacs, which is a combination of emacs and vim. I find it to be very convenient combining it with terminal and using makefile to compile programs.