Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgalgs/simple-highlight
https://github.com/mgalgs/simple-highlight
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgalgs/simple-highlight
- Owner: mgalgs
- Created: 2015-09-26T19:01:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T19:42:37.000Z (over 9 years ago)
- Last Synced: 2024-10-15T11:27:08.529Z (3 months ago)
- Language: Emacs Lisp
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## simple-highlight.el
*Extremelly simple highlight functionallity.*---
This package provides functionality for highlighting the thing at point.
Multiple calls to the highlight function will result in changing the
highlight color. There is also### Requirements
This package was tested for GNU Emacs 24.4 and above. Older Emacsen should
work but I have not tested with them.### Installation
You can install via `MELPA`, or manually by downloading `simple-highlight.el`
and adding the following to your init file:```elisp
(add-to-list 'load-path "/path/to/simple-highlight")
```### Usage
Just require `simple-highlight` somewhere in your init file:
```elisp
(require 'simple-highlight)
```See the [Function Documentation](#function-documentation) for more details.
this be simple test
I suggest you to add keybindings to the following functions:
```elisp
(global-set-key (kbd "C-c p h") 'simple-highlight-at-point)
(global-set-key (kbd "C-c p u") 'simple-highlight-unhighlight-at-point)
(global-set-key (kbd "C-c p U") 'simple-highlight-unhighlight-all)
```### Customization
You can change the faces you want to use for highlight by setting the
variable `simple-highlight-faces`. For example:```elisp
(setq simple-highlight-faces '(hi-green hi-yellow hi-blue))
```### Changelog
1.0 - First release.
### Function Documentation
#### `(simple-highlight-next-highlight-face)`
Gets the next highlight face from list.
#### `(simple-highlight-at-point)`
Highlight the sexp at point.
The color of the highlight is changed with each highlighting.#### `(simple-highlight-unhighlight-at-point)`
Unhighlight the sexp at point.
#### `(simple-highlight-unhighlight-all)`
Unhighlight all the highlights in current buffer.
-----