Jump to content

AutoIt Major Mode for EMACS


Jim S
 Share

Recommended Posts

Hi,

While rewriting/maintaining a fairly sophisticated AutoIt script, I decided I abolutely, positively, could not live without an AutoIt mode for EMACS, complete with indentation control, syntax highlighting, etc. And since I couldn't find one, I wrote one. Of course, I'm very new to AutoIt, and even less familiar with EMACS Lisp, but I was able to mung around with An Emacs language mode creation tutorial and get something working.

Note, this is a bit clunky, and certain things don't work well. For example, it has trouble indenting an 'empty' loop, such as:

Do
Until RunSomeFunction() = 1

but will work fine with:

Do
    Sleep(1)
Until RunSomeFunction() = 1

so you'll have to manually indent things like this. Also, for some reason I couldn't get it to recognize any of the '#' commands as built-in keywords (e.g, #include, #comments-start, etc.). Perhaps an EMACS Lisp Guru could take this and rewrite it 'correctly'.

Warts and all, I've found this to be very helpful for editing AutoIt scripts. Perhaps you folks will find it useful too. Here's the link:

http://www.SaratogaSkies.com/articles/misc/autoit-mode.el

Cheers,

Jim S.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...