Function: diredfl-mode

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

Signature

(diredfl-mode &optional ARG)

Documentation

Enable additional font locking in dired-mode.

This is a minor mode. If called interactively, toggle the Diredfl 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 diredfl-mode(var)/diredfl-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/r10m8yv1raidrn3adc3gjqdxz7rm5wi5-emacs-packages-deps/share/emacs/site-lisp/elpa/diredfl-20241201.1141/diredfl.el
;;;###autoload
(define-minor-mode diredfl-mode
  "Enable additional font locking in `dired-mode'."
  :global nil
  (setq font-lock-defaults
        (if diredfl-mode
            '((dired-font-lock-keywords
               dired-font-lock-keywords
               diredfl-font-lock-keywords-1)
              t nil nil beginning-of-line)
          '(dired-font-lock-keywords t nil nil beginning-of-line)))
  (font-lock-refresh-defaults))