Skip to content

Commit

Permalink
support mozilla rust
Browse files Browse the repository at this point in the history
  • Loading branch information
koko1000ban committed Feb 18, 2012
1 parent 4cc6d4f commit 250de79
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions quickrun.el
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@
("awk" . ((:command . "awk")
(:exec . "%c %o -f %s %a")
(:description . "Run AWK script")))

("rust" . ((:command . "rustc")
(:exec . ("%c %o -o %n %s" "%n %a"))
(:compile-only . "%c --no-trans --warn-unused-imports %o -o %n %s")
(:remove . ("%n"))
(:description . "Compile rust and execute")))
)
"List of each programming languages information.
Parameter form is (\"language\" . parameter-alist). parameter-alist has
Expand Down Expand Up @@ -302,7 +308,8 @@ if you set your own language configuration.
("\\.sass$" . "sass")
("\\.less$" . "less")
("\\.\\(sh\\|bash\\|zsh\\|csh\\|csh\\)$" . "shellscript")
("\\.awk$" . "awk"))
("\\.awk$" . "awk")
("\\.rs$" . "rust"))
"Alist of (file-regexp . key)")

(defvar quickrun/major-mode-alist
Expand Down Expand Up @@ -333,7 +340,8 @@ if you set your own language configuration.
(sass-mode . "sass")
((less-mode less-css-mode) . "less")
(sh-mode . "shellscript")
(awk-mode . "awk"))
(awk-mode . "awk")
(rust-mode . "rust"))
"Alist of major-mode and langkey")

(defun quickrun/decide-file-type (filename)
Expand Down Expand Up @@ -668,7 +676,7 @@ Place holders are beginning with '%' and replaced by:
'("c" "c++" "objc" "perl" "ruby" "python" "php" "emacs" "lisp" "scheme"
"javascript" "clojure" "erlang" "ocaml" "go" "io" "haskell" "java" "d"
"markdown" "coffee" "scala" "groovy" "sass" "less" "shellscript" "awk"
"lua")
"lua" "rust")
"Programming languages and Markup languages supported as default
by quickrun.el. But you can register your own command for some languages")

Expand Down

0 comments on commit 250de79

Please sign in to comment.