adding emacs rust-mode support
This commit is contained in:
parent
91fb3d7695
commit
6fafca1a19
2 changed files with 9 additions and 3 deletions
|
@ -3,6 +3,10 @@
|
|||
(setq auto-mode-alist (append '(("/*.\.python$" . 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
|
||||
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
|
||||
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
std-python-alist '( (cs . "##") (cc . "## ") (ce . "##") )
|
||||
std-java-alist '( (cs . "//") (cc . "// ") (ce . "//") )
|
||||
std-javascript-alist '( (cs . "//") (cc . "// ") (ce . "//") )
|
||||
std-rust-alist '( (cs . "//") (cc . "// ") (ce . "//") )
|
||||
std-latex-alist '( (cs . "%%") (cc . "%% ") (ce . "%%") )
|
||||
std-lisp-alist '( (cs . ";;") (cc . ";; ") (ce . ";;") )
|
||||
std-xdefault-alist '( (cs . "!!") (cc . "!! ") (ce . "!!") )
|
||||
|
@ -71,7 +72,8 @@
|
|||
("PHP" . std-php-alist)
|
||||
("Nroff" . std-nroff-alist)
|
||||
("TeX" . std-latex-alist)
|
||||
("LaTeX" . std-latex-alist))
|
||||
("LaTeX" . std-latex-alist)
|
||||
("Rust" . std-rust-alist))
|
||||
)
|
||||
|
||||
(defun std-get (a)
|
||||
|
|
Loading…
Reference in a new issue