adding emacs rust-mode support

This commit is contained in:
Rodolphe Breard 2015-05-16 17:01:48 +02:00
parent 91fb3d7695
commit 6fafca1a19
2 changed files with 9 additions and 3 deletions

View file

@ -3,6 +3,10 @@
(setq auto-mode-alist (append '(("/*.\.python$" . python-mode)) auto-mode-alist)) (setq auto-mode-alist (append '(("/*.\.python$" . python-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist)) (setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist))
;; RUST
(autoload 'rust-mode "rust-mode" "Rust editing mode." t)
(setq auto-mode-alist (cons '("\.rs$" . rust-mode) auto-mode-alist))
;; LUA ;; LUA
(autoload 'lua-mode "lua-mode" "Lua editing mode." t) (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))

View file

@ -20,9 +20,10 @@
std-css-alist '( (cs . "/*") (cc . "** ") (ce . "*/") ) std-css-alist '( (cs . "/*") (cc . "** ") (ce . "*/") )
std-cpp-alist '( (cs . "//") (cc . "// ") (ce . "//") ) std-cpp-alist '( (cs . "//") (cc . "// ") (ce . "//") )
std-pov-alist '( (cs . "//") (cc . "// ") (ce . "//") ) std-pov-alist '( (cs . "//") (cc . "// ") (ce . "//") )
std-python-alist '( (cs . "##") (cc . "## ") (ce . "##") ) std-python-alist '( (cs . "##") (cc . "## ") (ce . "##") )
std-java-alist '( (cs . "//") (cc . "// ") (ce . "//") ) std-java-alist '( (cs . "//") (cc . "// ") (ce . "//") )
std-javascript-alist '( (cs . "//") (cc . "// ") (ce . "//") ) std-javascript-alist '( (cs . "//") (cc . "// ") (ce . "//") )
std-rust-alist '( (cs . "//") (cc . "// ") (ce . "//") )
std-latex-alist '( (cs . "%%") (cc . "%% ") (ce . "%%") ) std-latex-alist '( (cs . "%%") (cc . "%% ") (ce . "%%") )
std-lisp-alist '( (cs . ";;") (cc . ";; ") (ce . ";;") ) std-lisp-alist '( (cs . ";;") (cc . ";; ") (ce . ";;") )
std-xdefault-alist '( (cs . "!!") (cc . "!! ") (ce . "!!") ) std-xdefault-alist '( (cs . "!!") (cc . "!! ") (ce . "!!") )
@ -41,7 +42,7 @@
(setq std-modes-alist '(("C" . std-c-alist) (setq std-modes-alist '(("C" . std-c-alist)
("C/l" . std-c-alist) ("C/l" . std-c-alist)
("CSS" . std-c-alist) ("CSS" . std-c-alist)
("PoV" . std-pov-alist) ("PoV" . std-pov-alist)
("Py" . std-python-alist) ("Py" . std-python-alist)
@ -71,7 +72,8 @@
("PHP" . std-php-alist) ("PHP" . std-php-alist)
("Nroff" . std-nroff-alist) ("Nroff" . std-nroff-alist)
("TeX" . std-latex-alist) ("TeX" . std-latex-alist)
("LaTeX" . std-latex-alist)) ("LaTeX" . std-latex-alist)
("Rust" . std-rust-alist))
) )
(defun std-get (a) (defun std-get (a)