 ;;如果有喜欢用鼠标选择emacs文本的同学, 可以试试加上这句配置:
 (setq mouse-drag-copy-region t)
 
-;; turn off debug-on-error by setting it to nil:
+
+(autoload 'markdown-mode "markdown-mode"
+  "Major mode for editing Markdown files" t)
+(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
+(add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode))
+
+(autoload 'gfm-mode "markdown-mode"
+  "Major mode for editing GitHub Flavored Markdown files" t)
+(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
+
+(setq load-path (cons "/usr/local/otp_src_20.2.2/lib/erlang/lib/tools-2.11/emacs"
+                      load-path))
+(setq erlang-root-dir "/usr/local/otp_src_20.2.2/")
+(setq exec-path (cons "/usr/local/otp_src_20.2.2/bin" exec-path))
+(require 'erlang-start)
 (setq debug-on-error nil)

;;设定光标为短线
(setq-default cursor-type 'bar)



(add-hook 'after-init-hook 'my-after-init-hook)
(defun my-after-init-hook ()
 (require 'edts-start))


(setq erlang-root-dir "/usr/local/otp_src_20.2.3/lib/erlang")
(setq erlang-man-root "/usr/local/otp_src_20.2.3/lib/erlang")

;; 关闭文件滑动控件
(scroll-bar-mode -1)
