-
Notifications
You must be signed in to change notification settings - Fork 2
/
comp-ide-recipes.el
69 lines (57 loc) · 2.49 KB
/
comp-ide-recipes.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;; comp-ide-recipes.el --- Default recipes for comp-ide
;; Copyright (C) 2020-2021 Sidharth Arya
;; Author: Sidharth Arya <[email protected]>
;; Maintainer: Sidharth Arya <[email protected]>
;; Created: 28 May 2020
;; Version: 0.1
;; Package-Requires: ((emacs "25.1"))
;; Keywords: tools
;; URL: https://github.com/SidharthArya/comp-ide.el
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or (at
;; your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
;; USA.
;;; Commentary:
;; Default Recipes for comp ide
;;; Code:
(defgroup comp-ide nil
"comp-ide.el attempts to be a simple and efficient competitive coding IDE"
:group 'convenience
:prefix "comp-ide-"
:link '(url-link "https://github.com/SidharthArya/comp-ide.el"))
(defcustom comp-ide-comp-ide-compile-recipes nil
"Compile Recipes for comp ide."
:type 'list
:group 'comp-ide)
(defcustom comp-ide-comp-ide-execute-recipes nil
"Execute Recipes for comp ide."
:type 'list
:group 'comp-ide)
(setq comp-ide-comp-ide-compile-recipes '(("c" "gcc %bf -o %bo")
("cpp" "g++ %bf -o %bo")
("java" "javac %bf")
("hs" "ghc %bf")
("go" "go build %bf")
("rs" "rustc %bf")))
(setq comp-ide-comp-ide-execute-recipes '(("c" "./%bo")
("cpp" "./%bo")
("py" "python ./%bf")
("java" "java %bo")
("hs" "./%bo")
("js" "nodejs %bf")
("go" "./%bo")
("php" "php %bf")
("rb" "ruby %bf")
("rs" "./%bo")))
(provide 'comp-ide-recipes)
;;; comp-ide-recipes.el ends here