aboutsummaryrefslogtreecommitdiffstats
path: root/oni-groovy.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-10-19 09:04:28 -0700
committerGravatar Tom Willemse2020-10-19 09:04:28 -0700
commit6048293876be38c8dd08c5a76e168f06d57ceaf7 (patch)
tree36e584d5ea5d0206be26cc736801b0e1529d30b6 /oni-groovy.el
parent5302d5a8aea1267dbdb2646e172e9442daaffb81 (diff)
downloademacs-config-6048293876be38c8dd08c5a76e168f06d57ceaf7.tar.gz
emacs-config-6048293876be38c8dd08c5a76e168f06d57ceaf7.zip
Add jenkinsfile-mode
Both ‘Jenkinsfile’ files and ‘*.pipeline’ files should be using ‘jenkinsfile-mode’.
Diffstat (limited to 'oni-groovy.el')
-rw-r--r--oni-groovy.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/oni-groovy.el b/oni-groovy.el
index cb6be5e..69036a8 100644
--- a/oni-groovy.el
+++ b/oni-groovy.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2019.1210.230729
-;; Package-Requires: (groovy-mode groovy-imports rainbow-delimiters)
+;; Version: 2020.1019.090337
+;; Package-Requires: (groovy-mode groovy-imports rainbow-delimiters jenkinsfile-mode)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -42,6 +42,9 @@
(add-hook 'groovy-mode-hook 'rainbow-delimiters-mode)
(add-hook 'groovy-mode-hook 'oni-groovy--auto-fill-mode)
+;;;###autoload
+(add-to-list 'auto-mode-alist `(,(rx ".pipeline" string-end) . jenkinsfile-mode))
+
;;;###autoload(with-eval-after-load 'groovy-mode (require 'oni-groovy))
(provide 'oni-groovy)