  (require 'edts-start))
 
 
-(setq erlang-root-dir "/usr/local/otp_src_23.0.1/lib/erlang")
-(setq erlang-man-root "/usr/local/otp_src_23.0.1/lib/erlang")
+(setq erlang-root-dir "/usr/local/otp_src_23.1.1/lib/erlang")
+(setq erlang-man-root "/usr/local/otp_src_23.1.1/lib/erlang")
 
 ;; 关闭文件滑动控件
 ;;(scroll-bar-mode -1)

(add-to-list 'auto-mode-alist '("\\.ex?$" . elixir-mode))
(add-to-list 'auto-mode-alist '("\\.exs?$" . elixir-mode))
(add-to-list 'auto-mode-alist '("\\.dart\\'" . dart-mode))

(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))

(setq backup-directory-alist (quote (("." . "~/.backups"))))
(setq version-control t)

; copy from [How to automatically install Emacs packages by specifying a list of package names?](https://stackoverflow.com/questions/10092322/how-to-automatically-install-emacs-packages-by-specifying-a-list-of-package-name)
; list the packages you want
(setq package-list '(edts company indent-guide pangu-spacing spinner undo-tree highlight-thing markdown-mode switch-window protobuf-mode elixir-mode alchemist tide dart-mode dart-server mix csharp-mode omnisharp lua-mode racer flycheck-rust rust-mode company-racer))

; list the repositories containing them
(setq package-archives '(("gnu"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
