Emacs for competitve programming

Revision en1, by J_theripper, 2021-07-23 06:51:53

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.

Tags emacs, ide, lisp, #competitive programming

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English J_theripper 2021-07-23 06:51:53 586 Initial revision (published)