Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mozilla rust #2

Merged
merged 1 commit into from Feb 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions quickrun.el
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