[erlang-questions] ErUnit 0.1 and TextMate bundle released
Guido Sohne
guido@REDACTED
Thu Apr 26 17:26:08 CEST 2007
On 4/26/07, Chris Turner <j.chris.turner@REDACTED> wrote:
> I also wrote an initial stab at a TextMate bundle for Erlang since I
> didn't find one out there either. That can be found at:
> http://codeby.bestfriendchris.com/files/Erlang-bundle.zip
You may be interested in taking a look at
http://netcetera.org/cgi-bin/tmbundles.cgi?bundle=Erlang
I think your bundle has more commands than that one did and you may be
interested in seeing that one to see if there are any bits you can use
to further improve yours.
You may also be interested in my Emacs Erlang setup (which I made up
when I found the Textmate bundle I'm referencing above somewhat
inadequate). It uses pretty-symbols to display Erlang code in a way
that I think TextMate is incapable of at this time.
Apply the following patch to http://paste.lisp.org/display/8458/raw
--- foo 2007-03-26 00:16:56.000000000 +0000
+++ packages/pretty-symbols.el 2007-03-26 00:25:18.000000000 +0000
@@ -44,6 +44,9 @@
(:for-all . #x2200)
(:there-exists . #x2203)
(:element-of . #x2208)
+ (:at . #x0040)
+ (:hash . #x266f)
+ (:tilde . #x02dc)
;; mathematical operators
(:square-root . #x221A)
(:squared . #x00B2)
And add the following to your .emacs ...
;; pretty symbols
(require 'pretty-symbols)
(setq pretty-symbol-patterns
'(
("\\(=\\)" :left-arrow erlang-mode)
("\\(->\\)" :right-arrow erlang-mode)
("\\<\\(and\\)\\>" :logical-and erlang-mode)
("\\<\\(or\\)\\>" :logical-or erlang-mode)
("\\<\\(not\\)\\>" :logical-neg erlang-mode)
("\\(==\\)" :equal erlang-mode)
("\\(/=\\)" :not-equal erlang-mode)
("\\(=:=\\)" :identical erlang-mode)
("\\(=/=\\)" :not-identical erlang-mode)
("\\(>=\\)" :greater-than-or-equal-to erlang-mode)
("\\(=<\\)" :less-than-or-equal-to erlang-mode)
("\\(>\\)" :greater-than erlang-mode)
("\\(>\\)" :greater-than erlang-mode)
("\\(<\\)" :less-than erlang-mode)
("\\<\\(_\\)\\>" :nil erlang-mode)
("\\(\%\\)" :double-vertical-bar erlang-mode)
("\\(@\\)" :at erlang-mode)
("\\(~\\)" :tilde erlang-mode)
("\\(#\\)" :hash erlang-mode)))
(add-hook 'erlang-mode-hook 'pretty-symbols-mode)
You can see what this actually does in a screen shot available via
http://sohne.net/files/emacs.png
I hope your bundle gets better, so I can go back to TextMate :-)
-- G.
More information about the erlang-questions
mailing list