diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | emacs-fold-dwim.install | 11 |
4 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4b460ff67afb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = emacs-fold-dwim + pkgdesc = DWIM stands for “DoWhatIMean”, as in the idea that one keystroke can do different things depending on the context. + pkgver = 1.3 + pkgrel = 2 + url = http://www.dur.ac.uk/p.j.heslin/Software/Emacs/ + install = emacs-fold-dwim.install + arch = any + license = GPL + depends = emacs + source = http://www.dur.ac.uk/p.j.heslin/Software/Emacs//Download/fold-dwim.el + md5sums = c1c835d061e142d55f27c76848fe4891 + +pkgname = emacs-fold-dwim + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ba63d6a83e54 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +emacs-fold-dwim-*.tar.[gx]z +fold-dwim.el diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e3f055b0ea2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Yuki Chiba <yuki.from.akita@gmail.com> + +pkgname=emacs-fold-dwim +pkgver=1.3 +pkgrel=2 +pkgdesc='DWIM stands for “DoWhatIMean”, as in the idea that one keystroke can do different things depending on the context.' +arch=('any') +url="http://www.dur.ac.uk/p.j.heslin/Software/Emacs/" +license=('GPL') +groups=() +depends=('emacs') +makedepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install=${pkgname}.install +source=($url/Download/fold-dwim.el) +md5sums=('c1c835d061e142d55f27c76848fe4891') + +elispfile=fold-dwim + +build() { + cd "$srcdir/" + emacs -q -batch -f batch-byte-compile $elispfile.el +} + +package() { + cd "$srcdir/" + install -d -m 755 "$pkgdir"/usr/share/emacs/site-lisp + install -c -m 644 $elispfile.el "$pkgdir"/usr/share/emacs/site-lisp + install -c -m 644 $elispfile.elc "$pkgdir"/usr/share/emacs/site-lisp +} + +# vim:set ts=2 sw=2 et: diff --git a/emacs-fold-dwim.install b/emacs-fold-dwim.install new file mode 100644 index 000000000000..e380caa112ff --- /dev/null +++ b/emacs-fold-dwim.install @@ -0,0 +1,11 @@ +post_install() { + cat << EOF +==> Put the followings in your \$HOME/.emacs file to use fold-dwim + +(require 'fold-dwim) +(global-set-key (kbd "<f7>") 'fold-dwim-toggle) +(global-set-key (kbd "<M-f7>") 'fold-dwim-hide-all) +(global-set-key (kbd "<S-M-f7>") 'fold-dwim-show-all) + +EOF +} |