aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2008-12-26 13:34:51 +0800
committerpgollucci <pgollucci@FreeBSD.org>2008-12-26 13:34:51 +0800
commit778d533c311140b5a3c4af2411991be854740aac (patch)
tree25ae80c11fb81f5015be84ba76c0d55c75f0882c /lang
parent155ab19156a243757a35b4c5a16e3b11d2cd3464 (diff)
downloadfreebsd-ports-gnome-778d533c311140b5a3c4af2411991be854740aac.tar.gz
freebsd-ports-gnome-778d533c311140b5a3c4af2411991be854740aac.tar.zst
freebsd-ports-gnome-778d533c311140b5a3c4af2411991be854740aac.zip
clojure-mode is an emacs editing mode for the clojure
(www.clojure.org) programming language. WWW: http://clojure.codestuffs.com/ PR: ports/129857 Submitted by: Peter Schuller <peter.schuller at infidyne.com> Approved by: araujo (mentor, implicit)
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/clojure-mode.el/Makefile28
-rw-r--r--lang/clojure-mode.el/distinfo3
-rw-r--r--lang/clojure-mode.el/pkg-descr4
-rw-r--r--lang/clojure-mode.el/pkg-message16
-rw-r--r--lang/clojure-mode.el/pkg-plist1
6 files changed, 53 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 934d24d152a2..7ecbe1bc5786 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -29,6 +29,7 @@
SUBDIR += clips
SUBDIR += clisp
SUBDIR += clojure
+ SUBDIR += clojure-mode.el
SUBDIR += cmucl
SUBDIR += cmucl-extra
SUBDIR += cocor
diff --git a/lang/clojure-mode.el/Makefile b/lang/clojure-mode.el/Makefile
new file mode 100644
index 000000000000..2160d0bd0755
--- /dev/null
+++ b/lang/clojure-mode.el/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: clojure-mode.el
+# Date created: 22 Dec 2008
+# Whom: Peter Schuller <peter.schuller@infidyne.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= clojure-mode.el
+PORTVERSION= 20081222
+CATEGORIES= lang elisp
+MASTER_SITES= http://distfiles.scode.org/ports/
+DISTNAME= clojure-mode-${PORTVERSION}
+
+MAINTAINER= peter.schuller@infidyne.com
+COMMENT= Emacs lisp module for the Clojure language
+
+USE_EMACS= yes
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/clojure-mode
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/clojure-mode.el ${PREFIX}/${EMACS_SITE_LISPDIR}/clojure-mode.el
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/lang/clojure-mode.el/distinfo b/lang/clojure-mode.el/distinfo
new file mode 100644
index 000000000000..29526ccba418
--- /dev/null
+++ b/lang/clojure-mode.el/distinfo
@@ -0,0 +1,3 @@
+MD5 (clojure-mode-20081222.tar.gz) = f787dbc95c371120c299fd86db54cef6
+SHA256 (clojure-mode-20081222.tar.gz) = 68480db98b02afa572364c4b57c07f320c4562c073c073e060e92d900a513926
+SIZE (clojure-mode-20081222.tar.gz) = 24864
diff --git a/lang/clojure-mode.el/pkg-descr b/lang/clojure-mode.el/pkg-descr
new file mode 100644
index 000000000000..467372958858
--- /dev/null
+++ b/lang/clojure-mode.el/pkg-descr
@@ -0,0 +1,4 @@
+clojure-mode is an emacs editing mode for the clojure
+(www.clojure.org) programming language.
+
+WWW: http://clojure.codestuffs.com/
diff --git a/lang/clojure-mode.el/pkg-message b/lang/clojure-mode.el/pkg-message
new file mode 100644
index 000000000000..7b8a86131bcd
--- /dev/null
+++ b/lang/clojure-mode.el/pkg-message
@@ -0,0 +1,16 @@
+To use clojure-mode in Emacs, add the following lines to your ~/.emacs:
+
+ (autoload 'clojure-mode "clojure-mode" "A mode for clojure lisp" t)
+ (add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode))
+
+In addition, if you are also using paredit, you may wish to make it
+more clojure aware:
+
+ (autoload 'paredit-mode "paredit" "Parenthesis editing minor mode" t)
+ (eval-after-load "clojure-mode"
+ '(progn
+ (defun clojure-paredit-hook () (paredit-mode +1))
+ (add-hook 'clojure-mode-hook 'clojure-paredit-hook)
+
+ (define-key clojure-mode-map "{" 'paredit-open-brace)
+ (define-key clojure-mode-map "}" 'paredit-close-brace)))
diff --git a/lang/clojure-mode.el/pkg-plist b/lang/clojure-mode.el/pkg-plist
new file mode 100644
index 000000000000..870d9671e61b
--- /dev/null
+++ b/lang/clojure-mode.el/pkg-plist
@@ -0,0 +1 @@
+%%EMACS_SITE_LISPDIR%%/clojure-mode.el