Wednesday, January 20, 2010


oh. my. god. i just learned about pymacs, which allows two-way communication between Emacs Lisp and Python. I'm moving from Ruby to Python, and this sound spectacular.

Anyone using ipython.el?
PythonMode at the EmacsWiki
How do I use IPython as my emacs python interpreter
emacs 23 and iPython
IPython can integrate with Emacs

Monday, January 11, 2010

ani-fcsh.el fix

Here's a little fix for the awesome ani-fcsh.el mode for Emacs that let's you efficiently compile Flex in Emacs. For me on Emacs 23, ani-fcsh.el wouldn't restore compile correctly, this fixes it.

(defun fcsh-restore-compile ()
"See `fcsh-compile', `*fcsh-compile-active*' for more info."
(if *fcsh-compile-active*
(setq *fcsh-compile-active* nil)
(fset 'compilation-start (symbol-function '*fcsh-compile-old-compilation-start*))


C-x C-e runs the command eval-last-sexp

I can never remember the keystroke for this, I always look for something starting with C-c.

Monday, January 4, 2010

flex compile

Emacs and the Flex Compiler Shell


To get it to run, first go:


Then just compile normally with:

M-x compile


M-x recompile

Saturday, January 2, 2010

emacs + flex builder = ftw

Holy, I am running Windows 7 host with Ubuntu guest inside of VirtualBox. Works amazing. Anyways, got Flex Builder running on Windows, it's really sweet, much better than the Linux Alpha version. So, I mounted my Windows drive to be accessible by my user id in /etc/fstab:
sness /winsness vboxsf uid=500,gid=500,convertcp=iso8859-1 0 0
Then you just have to edit files in Emacs on Ubuntu and the changes show up automagically in Eclipse. In Emacs on Ubuntu you will want to revist the files you change on Eclipse with:
C-x C-v - runs the command find-alternate-file
But Emacs will warn you about this if you try editting them. Eclipse seems to figure out when files have changed and automatically rebuilds them. Nice, but spooky!