Browse files

Adding a Clojure setup (preliminary)

Adding ack (a grep replacement) support
  • Loading branch information...
1 parent 5e68f7b commit a726bb757d7a3f46495a401d4463e16ef683f8ba @sbellef committed Nov 2, 2011
Showing with 62 additions and 1 deletion.
  1. +9 −0 .gitmodules
  2. +8 −1 _zshrc
  3. +29 −0 emacs/cfg/prog-config.el
  4. +10 −0 emacs/cfg/text-config.el
  5. +1 −0 emacs/pkg/clojure-mode
  6. +1 −0 emacs/pkg/full-ack
  7. +1 −0 emacs/pkg/slime
  8. +3 −0 my_submodules.txt
View
9 .gitmodules
@@ -79,3 +79,12 @@
[submodule "emacs/pkg/zenburn-emacs"]
path = emacs/pkg/zenburn-emacs
url = https://github.com/bbatsov/zenburn-emacs.git
+[submodule "emacs/pkg/slime"]
+ path = emacs/pkg/slime
+ url = git://github.com/nablaone/slime.git
+[submodule "emacs/pkg/clojure-mode"]
+ path = emacs/pkg/clojure-mode
+ url = git://github.com/technomancy/clojure-mode.git
+[submodule "emacs/pkg/full-ack"]
+ path = emacs/pkg/full-ack
+ url = https://github.com/nschum/full-ack.git
View
9 _zshrc
@@ -143,7 +143,8 @@ export PATH="${PATH}:${APPSDIR}/eclipse37"
#export LD_LIBRARY_PATH="${JAVA_HOME}/lib/amd64/server:${JAVA_HOME}/lib/amd64"
#export PATH="${PATH}:${JAVA_HOME}/bin"
-export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
+export JAVA_HOME=/usr/lib/jvm/java-7-openjdk
+#export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
#export JAVA_HOME=/opt/java
#export JAVA_HOME="~/apps/jdk1.6.0_20"
@@ -152,3 +153,9 @@ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
# Erlang settings
export ERL_LIBS=${HOME}/Project/proper
+
+# Clojure settings
+export CLOJURE_EXT=~/.clojure
+export PATH=$PATH:~/apps/clojure-contrib/launchers/bash
+alias clj=clj-env-dir
+export PATH=$PATH:~/apps/leiningen
View
29 emacs/cfg/prog-config.el
@@ -152,4 +152,33 @@
;(add-to-list 'auto-mode-alist '("\\.dot$" . graphviz-dot-mode))
+;; ==========================================================
+;; clojure mode (under test/evaluation)
+;; ==========================================================
+
+(add-my-pkg-to-loadpath "clojure-mode")
+(require 'clojure-mode)
+
+;; ==========================================================
+;; ParEdit (under test/evaluation)
+;; ==========================================================
+
+(add-my-pkg-to-loadpath "paredit")
+(require 'paredit)
+(add-hook 'clojure-mode-hook (lambda () (paredit-mode +1)))
+
+;; ==========================================================
+;; SLIME (under test/evaluation)
+;; ==========================================================
+
+(eval-after-load "slime"
+ '(progn (slime-setup '(slime-repl))
+ (defun paredit-mode-enable () (paredit-mode 1))
+ (add-hook 'slime-mode-hook 'paredit-mode-enable)
+ (add-hook 'slime-repl-mode-hook 'paredit-mode-enable)
+ (setq slime-protocol-version 'ignore)))
+(add-my-pkg-to-loadpath "slime")
+(require 'slime)
+(slime-setup)
+
;; -=[EOF]=-
View
10 emacs/cfg/text-config.el
@@ -69,3 +69,13 @@
(setq auto-mode-alist
(cons '("\\.md" . markdown-mode) auto-mode-alist))
+;; ==========================================================
+;; full-ack // a grep replacement (under test/evaluation)
+;; ==========================================================
+
+(add-my-pkg-to-loadpath "full-ack")
+(autoload 'ack-same "full-ack" nil t)
+(autoload 'ack "full-ack" nil t)
+(autoload 'ack-find-same-file "full-ack" nil t)
+(autoload 'ack-find-file "full-ack" nil t)
+
1 emacs/pkg/clojure-mode
@@ -0,0 +1 @@
+Subproject commit 5a791b4f5cf9c2525dcc3d3c8d51e208dec55348
1 emacs/pkg/full-ack
@@ -0,0 +1 @@
+Subproject commit 893ce89df810f662601059ca938ab677bb68a4c8
1 emacs/pkg/slime
@@ -0,0 +1 @@
+Subproject commit 8e859de43826f227eb0da33dcf314c45800560bb
View
3 my_submodules.txt
@@ -3,9 +3,11 @@ auto-complete-clang https://github.com/mikeandmore/auto-complete-clang.git
autopair https://github.com/emacsmirror/autopair.git
bm https://github.com/emacsmirror/bm.git
browse-kill-ring https://github.com/emacsmirror/browse-kill-ring.git
+clojure-mode git://github.com/technomancy/clojure-mode.git
coffee-mode https://github.com/defunkt/coffee-mode.git
distel https://github.com/massemanet/distel.git
flymake-cursor https://github.com/emacsmirror/flymake-cursor.git
+full-ack https://github.com/nschum/full-ack.git
google-c-style https://github.com/emacsmirror/google-c-style.git
ibuffer-git https://github.com/emacsmirror/ibuffer-git.git
idomenu https://github.com/emacsmirror/idomenu.git
@@ -22,6 +24,7 @@ org git://orgmode.org/org-mode.git
org-magit https://github.com/sigma/org-magit.git
org-passwords https://github.com/AndreaCrotti/org-passwords.git
paredit https://github.com/emacsmirror/paredit.git
+slime git://github.com/nablaone/slime.git
smex https://github.com/nonsequitur/smex.git
yasnippet https://github.com/emacsmirror/yasnippet.git
zenburn-emacs https://github.com/bbatsov/zenburn-emacs.git

0 comments on commit a726bb7

Please sign in to comment.