This commit is contained in:
Brian Seymour 2020-06-04 20:02:56 -05:00
commit 5c1d85fe11
4 changed files with 10 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"cpp", "c++", "cpp", "c++",
"csharp", "cs", "c#", "csharp", "cs", "c#",
"elixir", "exs", "elixir", "exs",
"emacs", "elisp", "el",
"go", "go",
"java", "java",
"julia", "jl", "julia", "jl",

View File

@ -99,6 +99,12 @@ case "$lang" in
"swift") "swift")
bin=swift bin=swift
;; ;;
"elisp" | "el")
bin=emacs
;;
"bash")
bin=bash
;;
"typescript" | "ts") "typescript" | "ts")
bin=typescript bin=typescript
;; ;;

2
lxc/executors/emacs Executable file
View File

@ -0,0 +1,2 @@
cd /tmp/$2
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 emacs -Q --script code.code"

1
tests/test.el Normal file
View File

@ -0,0 +1 @@
(message "good")