Skip to content

AutotHotKey major mode for emacs

Notifications You must be signed in to change notification settings

tu10ng/ahk-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

ahk-mode

An Emacs major mode for editing AutoHotKey (AHK) script files.

forked form ahk-mode, to fit in personal usage.

Installation

Clone this repository, then add to your load-path then require:

(add-to-list 'load-path "~/.emacs.d/site-lisp/ahk-mode/")
(require 'ahk-mode)

;; alternative
(use-package ahk-mode
  :load-path "c:/Users/incubator/Projects/ahk-mode"
  :ensure nil)

Usage

download ahk2-lsp for completion:

mkdir vscode-autohotkey2-lsp
cd .\vscode-autohotkey2-lsp\
curl -o install.js https://raw.githubusercontent.com/thqby/vscode-autohotkey2-lsp/main/tools/install.js
node .\install.js

then, add the following to your emacs config file:

(add-to-list 'eglot-server-programs '(ahk-mode "node" "C:/Users/incubator/Projects/vscode-autohotkey2-lsp/server/dist/server.js" "--stdio"))

;; if you prefer not enabling eglot on prog-mode, add the following line to activate only on ahk-mode
(add-hook 'ahk-mode-hook #'eglot-ensure)

and you are good to go.

License

Distributed under the GNU General Public License; type C-h C-c inside emacs to view it.

About

AutotHotKey major mode for emacs

Resources

Stars

Watchers

Forks

Languages

  • Emacs Lisp 100.0%