Jump to content

Emacs Major Mode for AutoIt (V3)


Recommended Posts

Guest ytrewq1
Posted (edited)

I looked for an Emacs major mode for AutoIt, but didn't succeeding in finding one [1] so I put something together. It still needs a fair bit of work, but even in its current state, I've found it nicer than not having anything. Please find it attached.

autoit_mode.el.txt

P.S. The uploading mechanism for the forum didn't allow me to upload a file w/ extension '.el', so I've added '.txt' to the end of the filename as a workaround. Before using the file, it's probably a good idea to strip the '.txt' extension from the filename. Looks like the filename has been altered to be 'autoit_mode.el.txt' -- the underscore '_' should be replaced by a minus '-' before use.

[1] If anyone knows of an existing one, I'd appreciate it being pointed out :-)

Edited by ytrewq1
Guest ytrewq1
Posted

You misspelled Vim, you wrote Emacs :)

Must be my funky keyboard layout :D

  • 6 years later...
Posted

Nearly 6 years since the last comment here! - I just installed the autoit major mode - well played sir :)

For anybody who's as much of an emacs noob as me, this is what I put in my .emacs (emacs.el). If this looks like s**t, it's 'cos of my noob-ness, but it made it work...

;; Autoit

(autoload 'autoit-mode "autoit-mode" "Autoit editing mode." t)

(setq auto-mode-alist

(cons '(".au3$" . autoit-mode) auto-mode-alist))

(setq interpreter-mode-alist

(cons '("autoit" . autoit-mode) interpreter-mode-alist))

  • Moderators
Posted

Bognis,

Necroing a seven-year old thread as a first post is definitely NOT the way to start. Please do not do it again. :)

M23

P.S. And you got the time passed since the last post wrong as well! ;)

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

Yes, and I mis-identified the windows version of .emacs as well: I should have given its true name: "init.el" :)

I don't regard it as "necroing" to thank a user for a still-valid piece of work and to hopefully make it easier for the next person to happen along to install that work where it is needed. But hey, I'm no hipster.

  • Moderators
Posted

Bognis,

I don't regard it as "necroing"

We do. Please read the Forum Rules before you post again - particularly the bit that says:

"Do what a moderator says. It does not matter if it is not fair - this is not a democracy. It does not matter if you disagree, your opinion is irrelevant. Do what moderators say or you will be removed from the forum."

'Nuff said? :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Developers
Posted

You should remove your listings from Google so that you can keep your forums pure & empty. Bye now.

When this is your way of acting funny then i hope this was a bye forever if not then better stop this bs from here on.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...