Color files in the minibuffer based on mode and file extension.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
LICENSE
README.org
color-file.el

README.org

Color File

Color file is a package that you can use to colorize your minibuffer information while you are browsing through buffers or files.

Screenshots

A screenshot showing how you can colorize files in the find-file minibuffer depending upon the type:

A screenshot showing how you can colorize buffers in the switch-buffer minibuffer depending upon the mode:

Configuration

Command Configuration

To configure for which commands Color-File is active, there is a group available “color-file-ivy”. Within this group there are two things you can customize:

  • color-file-ivy-buffer-commands
  • color-file-ivy-file-commands

These two things represent the commands for which the color customization will be invoked.

Color Configuration

To Change the colors that appear for different modes enter your configuration in the following way:

(setq color-file-ivy-mode-colors
      '((text-mode . "Green")
        (lisp-mode . "Blue")
        (emacs-lisp-mode . "Brown")))

In the above example, all buffers of mode text-mode when invoking a switch-buffer command will be colored green.

To change the colors that appear for different file types (using regex), enter your configuration in the following way:

(setq color-file-ivy-regex-file-colors
      '(("lisp$" . "Green")
        ("txt$" . "Blue")
        ("el$" . "Red")))

In the above example, all files ending with a “lisp” suffix will be colored green.

Dependencies