aboutsummaryrefslogtreecommitdiff
path: root/home/.emacs.d/init.el
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-01-31 17:06:24 -0800
committerJakob Odersky <jakob@odersky.com>2017-01-31 17:06:24 -0800
commit8f718684466a509e64087ce7e41202d8cb61c766 (patch)
treeba66b6545b138c57c534cdc223d748eedc8aa355 /home/.emacs.d/init.el
parent71ca324f2ff0188e2e8601363827efaf88d87b1f (diff)
downloaddotfiles-8f718684466a509e64087ce7e41202d8cb61c766.tar.gz
dotfiles-8f718684466a509e64087ce7e41202d8cb61c766.tar.bz2
dotfiles-8f718684466a509e64087ce7e41202d8cb61c766.zip
Add rust modes
Diffstat (limited to 'home/.emacs.d/init.el')
-rw-r--r--home/.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/.emacs.d/init.el b/home/.emacs.d/init.el
index f303389..47c3d68 100644
--- a/home/.emacs.d/init.el
+++ b/home/.emacs.d/init.el
@@ -19,6 +19,7 @@
;; save customizations to separate file
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
+(load custom-file 'noerror)
;; font
(set-face-attribute 'default nil :height 100); value is in 1/10pt, so 100 will give you 10pt, etc.
@@ -189,6 +190,11 @@
;; Java
(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 4)))
+;; Rust
+(use-package rust-mode
+ :mode "\\.rs\\'")
+(use-package toml-mode
+ :mode "\\.toml\\'")
;; Web development
;; Different modes in html files