summaryrefslogtreecommitdiff
path: root/app-emacs/puppet-mode/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/puppet-mode/files
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/puppet-mode/files')
-rw-r--r--app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el6
-rw-r--r--app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch20
2 files changed, 26 insertions, 0 deletions
diff --git a/app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el b/app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el
new file mode 100644
index 000000000000..64c38ae5a31d
--- /dev/null
+++ b/app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; puppet-mode site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'puppet-mode "puppet-mode" "Major mode for editing puppet manifests")
+(add-to-list 'auto-mode-alist '("\\.pp$" . puppet-mode))
diff --git a/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch b/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch
new file mode 100644
index 000000000000..513329dec1a2
--- /dev/null
+++ b/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch
@@ -0,0 +1,20 @@
+--- a/puppet-mode.el.~1~ 2014-03-13 16:30:50.000000000 +0100
++++ b/puppet-mode.el 2017-06-30 14:38:22.749240233 +0200
+@@ -72,8 +72,6 @@
+
+
+ ;;;; Requirements
+-(require 'pkg-info)
+-
+ (require 'cl-lib)
+ (require 'rx)
+ (require 'align)
+@@ -165,7 +163,7 @@
+ if called interactively, or if SHOW-VERSION is non-nil, otherwise
+ just return nil."
+ (interactive (list t))
+- (let ((version (pkg-info-version-info 'puppet-mode)))
++ (let ((version "@VERSION@"))
+ (when show-version
+ (message "Puppet Mode version: %s" version))
+ version))