From 43037c48e9b3b8e3495d70185a09c044653d9dbb Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 9 Oct 2015 17:16:01 +0900 Subject: [PATCH] Add groovy mode config --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 1532abd..a1d9313 100644 --- a/emacs.el +++ b/emacs.el @@ -18,6 +18,7 @@ (add-to-list 'load-path d)) (eval-when-compile + ;; TODO: Use cl-lib intead (require 'cl nil t)) @@ -1190,6 +1191,10 @@ IF OK-IF-ALREADY-EXISTS is true force download." (setq auto-mode-alist (append '(("PKGBUILD\\'" . pkgbuild-mode)) auto-mode-alist))) +(and (autoload-eval-lazily 'groovy-mode) + (add-to-list 'auto-mode-alist + '("build.gradle\\'" . groovy-mode))) + (add-hook 'yaml-mode-hook (lambda () (local-set-key(kbd "C-m") 'newline)))