1.去cmake官方网站下载最新的cmake-mode
wget
2. cp cmake-mode.el ~/.emacs.d/misc/
3. 设置.emacs文件:
(setq load-path (cons (expand-file-name "~/.emacs.d/misc/cmake-mode.el") load-path))
(require 'cmake-mode)
(setq auto-mode-alist
(append '(("CMakeLists\\.txt\\'" . cmake-mode)
("\\.cmake\\'" . cmake-mode))
auto-mode-alist))
阅读(1738) | 评论(0) | 转发(0) |