1.~/.emacs的内容配置如下:
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/")
t)
(package-initialize))
2.重启emacs.
3.在options菜单下点击manage emacs packages.
4.然后会出现很多包,然后双击nim-mode即可安装,安装成功后即可使用.