diff --git a/.emacs.d/lisp/modes.el b/.emacs.d/lisp/modes.el index d1148c6..30aa82f 100644 --- a/.emacs.d/lisp/modes.el +++ b/.emacs.d/lisp/modes.el @@ -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)) diff --git a/.emacs.d/lisp/std_comment.el b/.emacs.d/lisp/std_comment.el index 82035b8..42be81a 100644 --- a/.emacs.d/lisp/std_comment.el +++ b/.emacs.d/lisp/std_comment.el @@ -20,9 +20,10 @@ std-css-alist '( (cs . "/*") (cc . "** ") (ce . "*/") ) std-cpp-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-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 . "!!") ) @@ -41,7 +42,7 @@ (setq std-modes-alist '(("C" . std-c-alist) - ("C/l" . std-c-alist) + ("C/l" . std-c-alist) ("CSS" . std-c-alist) ("PoV" . std-pov-alist) ("Py" . std-python-alist) @@ -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)