Skip to content

Instantly share code, notes, and snippets.

@syohex
Created December 27, 2011 22:57
Show Gist options
  • Save syohex/1525414 to your computer and use it in GitHub Desktop.
Save syohex/1525414 to your computer and use it in GitHub Desktop.
Configuration of quickrun.el
;; -*- mode:emacs-lisp -*-
;; require quickrun.el
(require 'anything)
(require 'quickrun)
(quickrun-add-command "c++/c11"
'((:command . "g++")
(:exec . ("%c -std=c++0x %o -o %n %s"
"%n %a"))
(:remove . ("%n"))
(:description . "Comple C++11 file with g++")))
(quickrun-add-command "c++/g++-4.5"
'((:command . "g++-4.5")
(:exec . ("%c %o -o %n %s"
"%n %a"))
(:remove . ("%n"))
(:description . "Comple c++ file with g++-4.5")))
(quickrun-add-command "c++/g++-4.6"
'((:command . "g++-4.6")
(:exec . ("%c %o -o %n %s"
"%n %a"))
(:remove . ("%n"))
(:description . "Comple c++ file with g++-4.6")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment