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

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

I understand that just to set up an environment for CP, it's not needed. But it's a fact that it is one of the best piece of software out there and it's sophistication makes you learn how great softwares are built. I use Doom Emacs for this, you can add the below snippet in config.el, then compile and run your code by SPC-e-c

(map! :leader
      (:prefix ("e" . "execute")
        :desc "C/C++"
        "c" #'compileandrun))

(defun compileandrun()
  (interactive)
  (let* ((src (file-name-nondirectory (buffer-file-name)))
         (exe (file-name-sans-extension src)))
    (compile (concat "g++ " src " -o " exe " && timeout 1s ./" exe ))))

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

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

Can you please share some more details in setting up EMACS for CP

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

    be man. use CLion

    • »
      »
      »
      81 минуту назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Nope, Codeblocks:)

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

vim.