hl-anything

https://github.com/boyw165/hl-anything.git

git clone 'git://github.com/boyw165/hl-anything.git'
14

MELPA MELPA Stable TRAVIS-CI

Highlight Symbols, Selections, Enclosing Parens and More

Highlight things at point, selections, enclosing parentheses with different colors. Fix grumbling issue of highlights being overridden by hl-line-mode and global-hl-line-mode.

Demo

hl-anything screenshot

Basic Usage - First Step, Enable hl-highlight-mode

There're GLOBAL and LOCAL kinds of highlights. The global highlights appear in every buffer; The local highlights only exist in the current buffer.

hl-anything screenshot

Global Highlights:

Local Highlights:

You can change foreground and background colors of highlights:

hl-anything screenshot

Turn Highlight On/Off

M-x hl-global-highlight-on/off to turn highlight on or off!

Example:

hl-anything screenshot

Search Highlights

Put your cursor on the highlight and use following commands to search highlights.

M-x hl-find-next-thing and hl-find-prev-thing to go through highlights.

hl-anything screenshot

Save & Restore Highlights

Once hl-highlight-mode is on, it will save highlights automatically before Emacs exits. It will also try to restore highlights when Emacs opens.

Parenthese Highlight, hl-paren-mode

hl-anything screenshot

Advanced - hl-highlight-special-faces

This is a special faces storage. The faces storing here are always on the top of the current line highlight (hl-line-mode and global-hl-line-mode).

hl-anything screenshot

Example:

;; 'YOUR-FACE will never be hidden by current line highlight.
(add-to-list 'hl-highlight-special-faces 'YOUR-FACE t)

TODO

Contribution

Forks and pull requests are welcome!