Friday, June 26, 2009

Emacs To Maya

I started using Emacs To Maya.
Now modifying it to send Python scripts (Half done, thinking about how to get the value printed in the command history).

Ah, I added the following script to .emacs before

(add-hook
  'mel-mode-hook ...

to avoid

Symbol's function definition is void: replace-in-string

error.
(if (not (fboundp 'replace-in-string))
    (defun replace-in-string (string regexp replacement &optional literal)
      "Replace regex in string with replacement"
      (replace-regexp-in-string regexp replacement string t literal)))

(got it here)
For those who has seen the same error.