diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-07-26 16:46:33 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-07-26 16:46:33 +0200 |
| commit | d82abbbad6e36bdc78391893acc9988b1f06b184 (patch) | |
| tree | feb80af37ed17ea9eab48bd0dde4a79c40c845c7 /emacs/init.el | |
| parent | 37b192c81ee4f14e5b9a8ba0a2ef9068043b8b3d (diff) | |
| download | dotfiles-d82abbbad6e36bdc78391893acc9988b1f06b184.tar.gz dotfiles-d82abbbad6e36bdc78391893acc9988b1f06b184.zip | |
emacs: added cmake support
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.el')
| -rw-r--r-- | emacs/init.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index b9f7ee0..861323e 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -51,6 +51,7 @@ (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) +(set-language-environment 'utf-8) ;; User name and email. (setq user-full-name "Miquel Sabaté Solà" @@ -556,4 +557,22 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer." (yas-reload-all) (add-hook 'prog-mode-hook #'yas-minor-mode)) +;; CMake +(use-package cmake-mode + :ensure t + :config + + (setq auto-mode-alist + (append + '(("CMakeLists\\.txt\\'" . cmake-mode)) + '(("\\.cmake\\'" . cmake-mode)) + auto-mode-alist)) + + (use-package cmake-font-lock + :ensure t + :config + + (add-hook 'cmake-mode-hook 'cmake-font-lock-activate) + (add-hook 'yaml-mode-hook 'warnings-mode-hook))) + ;;; init.el ends here |
