Logo major mode for Emacs
At the time of this posting, it’s still pretty rough, but it does basic syntax highlighting for very common functions (only a small fraction of them). It also associates “.lg” files with logo-mode.
To make it load every time you start emacs, you can either copy the source into your .emacs file, or load the file (again in the .emacs file):
(load “~/logo-mode.el”)
Assuming you saved it in your home directory.
If you just want to run it once and check it out, open the file, then select “evaluate buffer” from the emacs-list menu. Then open a “.lg” file, and it should automatically highlight.
(load “~/logo-mode.el”)
Let me know if you find any bugs or have any requests.
Download: Logo-Mode
Tagged Tags: Emacs, Logo, UCB on December 3, 2008 at 8:54 am
Emacs, syntax highlighting
I’ve always been partial to VI, but I’ve been forced to use Emacs for a class I’m taking this semester, and it turns out that I really love Emacs – even more than VI. The stateless model of editing is what I’ve been accustom to (coming from Windows), and it just makes more sense to me. I generally don’t think, “now I’m in edit mode, it’s ok to type.” Not that I think this is wrong, it’s just not natural for me.
Also, I’ve recently made a Emacs “Major Mode” for Berkeley Logo. It was amazingly easy, I actually made it last night in about 2 hours. It is essentially a set of regular expressions bound to keyword types that Emacs knows, written in Lisp. I wrote it with Berkeley Logo in mind, but there’s nothing that should stop it from working for any version of Logo.
I will post it as soon as I get the kinks worked out.




