5.1 Anju Initialization (anju-init)

Anju has a number of customizable variables that determine the behavior of anju-init. They are:

anju-reconfigure-context-menu-functions-enable

Enable reconfiguration of the variable context-menu-functions with Anju-defined menu functions.

If context-menu-functions is previously set via customize-variable then anju-init will make no changes to context-menu-functions regardless of how anju-reconfigure-context-menu-functions-enable is set.

anju-mode-line-bindings-enable

Enable Anju-defined bindings for the mode line.

anju-unset-legacy-mouse-bindings-enable

Remove bindings using mouse-2 and for secondary selection.

anju-reconfigure-mouse-per-modes-enable

Run mode-specific hooks to customize their mouse behavior.

Anju distinguishes modes whose content is treated as a hypertext document with those whose content is more akin to an application. For the latter, a single-click <mouse-1> event is treated as a selection action and a double-click <mouse-1> event is treated as an open action.

In addition, mark toggling is bound to M-<mouse-1>.

Modes reconfigured to support the above distinction are:

  • dired-mode
  • ibuffer-mode
  • bookmark-bmenu-mode

This variable is only evaluated if anju-unset-legacy-mouse-bindings-enable is non-nil.

anju-reconfigure-main-menu-enable

Top-level variable to reconfigure the main menu.

If anju-reconfigure-main-menu-enable is t, the following variables determine how the main menu is reconfigured:

anju-reconfigure-main-menu-hook

A list of functions, each modifying a menu of the main menu.

anju-help-menu-remove-emacs-tutorial

Control if the Emacs tutorial menu items are shown.

By default, all the above *-enable variables are set to t. Users preferring to make granular changes to anju-init can invoke M-x customize-group anju.