From 633abaa4a3e29021a55abfca5ba62819c8ca5c46 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 11 Apr 2013 01:14:55 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- paredit/PKGBUILD | 1 - paredit/paredit.install | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 paredit/paredit.install (limited to 'paredit') diff --git a/paredit/PKGBUILD b/paredit/PKGBUILD index d323745..b8f44d7 100644 --- a/paredit/PKGBUILD +++ b/paredit/PKGBUILD @@ -9,7 +9,6 @@ url="http://www.emacswiki.org/emacs/ParEdit" license=('GPL') makedepends=('emacs') install=paredit.install -changelog=ChangeLog source=("http://mumble.net/~campbell/emacs/$pkgname-${_pkgver}.el") sha256sums=('c8d154870902b1b8aad44168560c8785d5eff552e44b36baa493f5fda540e8da') diff --git a/paredit/paredit.install b/paredit/paredit.install new file mode 100644 index 0000000..210acab --- /dev/null +++ b/paredit/paredit.install @@ -0,0 +1,17 @@ +post_install() { + cat << 'EOF' +==> Put this in your $HOME/.emacs file to enable autoloading of paredit: + +(autoload 'paredit-mode "paredit" + "Minor mode for pseudo-structurally editing Lisp code." t) + +==> Toggle Paredit Mode with `M-x paredit-mode RET', or enable it +==> always in a major mode `M' (e.g., `lisp' or `scheme') with: + +(add-hook M-mode-hook (lambda () (paredit-mode +1))) +EOF +} + +post_upgrade() { + post_install +} -- cgit v1.2.3-70-g09d2