Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmercouris/color-file
Color files in the minibuffer based on mode and file extension.
https://github.com/jmercouris/color-file
Last synced: 5 days ago
JSON representation
Color files in the minibuffer based on mode and file extension.
- Host: GitHub
- URL: https://github.com/jmercouris/color-file
- Owner: jmercouris
- License: bsd-2-clause
- Created: 2018-07-21T13:17:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T13:25:19.000Z (over 6 years ago)
- Last Synced: 2024-11-09T21:04:10.202Z (2 months ago)
- Language: Emacs Lisp
- Size: 219 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* 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:#+html:
A screenshot showing how you can colorize buffers in the switch-buffer
minibuffer depending upon the mode:
#+html:** 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-commandsThese 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:#+NAME: color-mode-configuration
#+BEGIN_SRC elisp
(setq color-file-ivy-mode-colors
'((text-mode . "Green")
(lisp-mode . "Blue")
(emacs-lisp-mode . "Brown")))
#+END_SRCIn 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:#+NAME: color-file-configuration
#+BEGIN_SRC elisp
(setq color-file-ivy-regex-file-colors
'(("lisp$" . "Green")
("txt$" . "Blue")
("el$" . "Red")))
#+END_SRCIn the above example, all files ending with a "lisp" suffix will be
colored green.** Dependencies
- S https://github.com/magnars/s.el
- Ivy https://github.com/abo-abo/swiper