ahk-mode
ahk-mode copied to clipboard
Doesn't seem to trigger prog-mode-hook hooks
I have a variety of functionality attached to prog-mode-hook
and for some reason I noticed that this mode, despite seemingly deriving from it, doesn't trigger those hook handlers.
To test, I removed the run-mode-hooks
call, which is called automatically anyway, and then the prog-mode-hook
handlers did run.
Confirmed, there's a prog-mode-hook
issue.
Spacemacs enables evil-mc-mode
for prog-mode
:
(add-hook 'prog-mode-hook 'turn-on-evil-mc-mode)
source: https://github.com/syl20bnr/spacemacs/blob/4b195ddfc9228256361e0b264fe974aa86ed51a8/layers/%2Bmisc/multiple-cursors/packages.el#L35
but evil-mc-mode
isn't enabled when a .ahk
file is opened.
A workaround is to add the following to the dotspacemacs/user-config
section in .spacemacs
.
(add-hook 'ahk-mode-hook 'spacemacs/run-prog-mode-hooks)
the spacemacs/run-prog-mode-hooks
function calls: (run-hooks 'prog-mode-hook)
.
blaenk suggested removing: https://github.com/ralesi/ahk-mode/blob/fde5be2cd4a0a48dc876031fb25be82892f700e0/ahk-mode.el#L691
but it didn't fix this issue.
System Info :computer:
- OS: windows-nt
- Emacs: 26.1
- Spacemacs: 0.300.0
- Spacemacs branch: develop (rev. 4b195ddfc)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
(autohotkey emacs-lisp git helm html markdown multiple-cursors org spell-checking treemacs version-control)
- System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2