Function: majutsu-diffedit-mode

majutsu-diffedit-mode is an interactive and natively compiled function defined in majutsu-diffedit.el.

Signature

(majutsu-diffedit-mode &optional ARG)

Documentation

Minor mode for jj diffedit buffers.

This is a minor mode. If called interactively, toggle the Majutsu-DiffEdit mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate the variable majutsu-diffedit-mode(var)/majutsu-diffedit-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diffedit.el
(define-minor-mode majutsu-diffedit-mode
  "Minor mode for jj diffedit buffers."
  :lighter " DiffEdit"
  (if majutsu-diffedit-mode
      (progn
        (with-editor-mode 1)
        (when majutsu-diffedit-finish-on-save
          (add-hook 'after-save-hook #'majutsu-diffedit--finish-on-save nil t)))
    (remove-hook 'after-save-hook #'majutsu-diffedit--finish-on-save t)))