add groovy (Jenkins) mode
Stefan Bund [Tue, 6 Dec 2016 08:43:00 +0000 (09:43 +0100)]
.gitmodules
groovy-emacs-modes [new submodule]
setup/groovy.el [new file with mode: 0644]

index 081bfb3..b41794e 100644 (file)
@@ -21,3 +21,6 @@ url = git://g0dil.de/emacsstuff.git
 [submodule "org-mode"]
        path = org-mode
        url = git://orgmode.org/org-mode.git
+[submodule "groovy-emacs-modes"]
+       path = groovy-emacs-modes
+       url = https://github.com/Groovy-Emacs-Modes/groovy-emacs-modes.git
diff --git a/groovy-emacs-modes b/groovy-emacs-modes
new file mode 160000 (submodule)
index 0000000..9d42f28
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 9d42f284b3163215484e16bef1785456d2e7b68d
diff --git a/setup/groovy.el b/setup/groovy.el
new file mode 100644 (file)
index 0000000..d916507
--- /dev/null
@@ -0,0 +1,9 @@
+(add-to-list 'load-path (concat (file-name-directory
+                                 (directory-file-name
+                                  (file-name-directory
+                                   (or load-file-name
+                                       (when (boundp 'bytecomp-filename) bytecomp-filename)
+                                       buffer-file-name))))
+                                "groovy-emacs-modes"))
+(require 'groovy-mode)
+(add-to-list 'interpreter-mode-alist '("groovy" . groovy-mode))
\ No newline at end of file