Skip to content

damiencollard/nice-citation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Nice citations for Gnus

In Gnus' article mode and in message mode, this replaces the traditional chevron citation marks > with a nicer Unicode vertical bar with the same color as the text it is quoting.

The color of a mark at a given citation depth is taken from gnus-cite-face-list.

The text of the buffer is unchanged, as the colored citation marks make use of text property 'display.

It is purely presentation: The underlying text is unchanged. In particular, if you send an e-mail containing a citation, it will contain the traditional chevron marks.

Standard Nice citations
Without With

Installation

Copy nice-citation.el into a directory that appears in your Emacs' load-path.

Usage

Add the following line to your emacs configuration:

(require 'nice-citation)

Customization

The symbol used as mark (a Unicode light vertical bar by default) can be changed by customizing variable nice-citation-mark. It works well with Fira Code, for instance.

The colors/faces used are taken directly from Gnus, so to change them, you have to customize variable gnus-cite-face-list.

Variable nice-citatation-improve-marks-alignment makes the vertical marks align with the surrounding text. Its effect is noticeable in case of nested citations. It is disabled by default.

The nice citations can be disabled in article mode by setting nice-citation-treat-citations in group gnus-article-treat to nil.

About

Nicer, depth-colored citations for Gnus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published