This package provides additional hooks for Emacs.
Please open issues if you have any idea to extend this package. I will implement new additional hooks as much as possible.
Put this package into your load-path
. After that, enable ah-mode
minor mode.
For instance,
(when (require 'ah nil t)
(ah-mode 1))
Providing two hooks for your actions on moving the cursor. It is useful when you want to kick some commands without using pre-command-hook
and/or post-command-hook
.
- ah-before-move-cursor-hook
- ah-after-move-cursor-hook
- Hook for
next-line
,previous-line
,forward-char
,backward-char
,syntax-subword-forward
,syntax-subword-backward
,move-beginning-of-line
,move-end-of-line
,beginning-of-buffer
, andend-of-buffer
.
Providing two hooks for your actions on typing C-g
.
- ah-before-c-g-hook
- ah-after-c-g-hook
- Hook for
keyboard-quit
andisearch-abort
.
Providing two hooks that will activate when changing theme.
- ah-before-enable-theme-hook
- ah-after-enable-theme-hook
- These hooks will be called in
enable-theme
, andload-theme
withoutNO-ENABLE
argument.