https://github.com/boyw165/hl-anything.git
git clone 'git://github.com/boyw165/hl-anything.git'
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
.
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.
Global Highlights:
hl-highlight-thingatpt-global
to toggle global highlight at point or selection.hl-unhighlight-all-global
to remove all global highlights.Local Highlights:
hl-highlight-thingatpt-local
to toggle local highlight at point or selection.hl-unhighlight-all-local
to remove all local highlights.You can change foreground and background colors of highlights:
hl-highlight-foreground-colors
variable.hl-highlight-background-colors
variable.M-x
hl-global-highlight-on/off
to turn highlight on or off!
Example:
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.
Once hl-highlight-mode
is on, it will save highlights automatically before Emacs exits.
It will also try to restore highlights when Emacs opens.
M-x
hl-save-highlights
to save highlights; M-x
hl-restore-highlights
to restore highlights.hl-highlight-save-file
variable.hl-paren-mode
hl-outward-paren-fg-colors
and hl-outward-paren-bg-colors
variables.hl-inward-paren-fg-color
variables.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
).
Example:
;; 'YOUR-FACE will never be hidden by current line highlight.
(add-to-list 'hl-highlight-special-faces 'YOUR-FACE t)
helm
to give ability to navigate highlights.
Forks and pull requests are welcome!