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."
(interactive)
(if *fcsh-compile-active*
(progn
(setq *fcsh-compile-active* nil)
(fset 'compilation-start (symbol-function '*fcsh-compile-old-compilation-start*))
)
))