dangom / ah

Additional hooks for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional Hooks for Emacs

About

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.

Configure

Put this package into your load-path. After that, enable ah-mode minor mode.

For instance,

(when (require 'ah nil t)
  (ah-mode 1))

Hooks for moving cursor

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

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, and end-of-buffer.

Hooks for C-g action

Providing two hooks for your actions on typing C-g.

  • ah-before-c-g-hook
  • ah-after-c-g-hook

ah-before-c-g-hook, ah-after-c-g-hook

  • Hook for keyboard-quit and isearch-abort.

Hooks for enabling theme

Providing two hooks that will activate when changing theme.

  • ah-before-enable-theme-hook
  • ah-after-enable-theme-hook

ah-before-enable-theme-hook, ah-after-enable-theme-hook

  • These hooks will be called in enable-theme, and load-theme without NO-ENABLE argument.

About

Additional hooks for Emacs


Languages

Language:Emacs Lisp 100.0%