Skip to content

Add cusomizable inline hunk faces#279

Open
ermingol23 wants to merge 1 commit into
dgutov:masterfrom
ermingol23:show-inline-faces
Open

Add cusomizable inline hunk faces#279
ermingol23 wants to merge 1 commit into
dgutov:masterfrom
ermingol23:show-inline-faces

Conversation

@ermingol23
Copy link
Copy Markdown

Add two cusomizable faces (four in total)

  • diff-hl-show-hunk-bg Background color for changed region when hunk is shown. This face is used for creating an overlay that tints the background for the current lines of the changed region in the buffer when viewing the hunk.

  • diff-hl-show-hunk-inline-base Foreground and background colors for the header and footer when viewing a hunk.

  • diff-hl-show-hunk-inline-ul Inherits from diff-hl-show-hunk-inline-base and adds an underline to the face.

  • diff-hl-show-hunk-inline-ol Inherits from diff-hl-show-hunk-inline-base and adds an overline to the face.

Modifies diff-hl-show-hunk--click function so mouse clicks toggles showing the hunk on and off.

Add two cusomizable faces (four in total)

  - diff-hl-show-hunk-bg
    Background color for changed region when hunk is shown. This face is used
    for creating an overlay that tints the background for the current lines of
    the changed region in the buffer when viewing the hunk.

  - diff-hl-show-hunk-inline-base
    Foreground and background colors for the header and footer when viewing a
    hunk.

  - diff-hl-show-hunk-inline-ul
    Inherits from diff-hl-show-hunk-inline-base and adds an underline to the
    face.

  - diff-hl-show-hunk-inline-ol
    Inherits from diff-hl-show-hunk-inline-base and adds an overline to the
    face.

Modifies diff-hl-show-hunk--click function so mouse clicks toggles showing the
hunk on and off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant