mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
added rust mode
This commit is contained in:
23
.emacs
23
.emacs
@@ -1,4 +1,4 @@
|
|||||||
;; Toms Emacs Config - portable - version ("20200101.01") -*-emacs-lisp-*-
|
;; Toms Emacs Config - portable - version ("20200902.01") -*-emacs-lisp-*-
|
||||||
;; * Introduction
|
;; * Introduction
|
||||||
|
|
||||||
;; This is my emacs config, it is more than twenty years old. It
|
;; This is my emacs config, it is more than twenty years old. It
|
||||||
@@ -785,6 +785,9 @@
|
|||||||
;; - added smerge hydra plus alias 'merge
|
;; - added smerge hydra plus alias 'merge
|
||||||
;; - fixed window resize hydra help
|
;; - fixed window resize hydra help
|
||||||
|
|
||||||
|
;; 20200902.01
|
||||||
|
;; - added rust mode
|
||||||
|
|
||||||
;; ** TODO
|
;; ** TODO
|
||||||
|
|
||||||
;; - check helpful https://github.com/wilfred/helpful
|
;; - check helpful https://github.com/wilfred/helpful
|
||||||
@@ -812,7 +815,7 @@
|
|||||||
;; My emacs config has a version (consisting of a timestamp with a
|
;; My emacs config has a version (consisting of a timestamp with a
|
||||||
;; serial), which I display in the mode line. So I can clearly see, if
|
;; serial), which I display in the mode line. So I can clearly see, if
|
||||||
;; I'm using an outdated config somewhere.
|
;; I'm using an outdated config somewhere.
|
||||||
(defvar tvd-emacs-version "20200101.01")
|
(defvar tvd-emacs-version "20200902.01")
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -2114,6 +2117,22 @@ col1, col2"
|
|||||||
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
|
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
|
||||||
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
|
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------------
|
||||||
|
;; *** rust mode
|
||||||
|
(autoload 'rust-mode "rust-mode" nil t)
|
||||||
|
|
||||||
|
(defun rustlings-done ()
|
||||||
|
"I use this with rustlings"
|
||||||
|
(interactive)
|
||||||
|
(search-backward "DONE")
|
||||||
|
(move-beginning-of-line 1)
|
||||||
|
(kill-line)
|
||||||
|
(save-buffer))
|
||||||
|
|
||||||
|
(setq auto-mode-alist
|
||||||
|
(append '(("\\.\\(rs\\)$" . rust-mode))
|
||||||
|
auto-mode-alist))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|
||||||
;; *** python mode
|
;; *** python mode
|
||||||
|
|||||||
10090
emacs.html
10090
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user