Skip to content

Minor mode for highlighting paragraphs under the cursor. Similar to hl-line-mode

License

Notifications You must be signed in to change notification settings

niklasva/hl-paragraph-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hl-paragraph-mode

Minor mode for highlighting paragraphs under the cursor. Similar to the built-in hl-line mode.

screenshots/hl-line.png

Installation

(add-to-list 'load-path "/path/to/hl-paragraph-mode")
(require 'hl-paragraph-mode)

Usage

(hl-paragraph-mode) enables the mode locally. (hl-paragraph-global-mode) enables it globally.

Customizations

By default hl-paragraph-mode will highlight the lines in a paragraph. To change it so only the text inside the paragraph is highlighted, set its value to nil.

(setq hl-paragraph-highlight-entire-line nil)

screenshots/hl-chars.png

The face hl-paragraph-face can be customized. By default it inherits its attributes from hl-line.

(set-face-attribute 'hl-paragraph-face nil :background "yellow")

This makes the background of the highlighted text yellow.

About

Minor mode for highlighting paragraphs under the cursor. Similar to hl-line-mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published