• Stars
    star
    160
  • Rank 227,384 (Top 5 %)
  • Language
    Emacs Lisp
  • Created over 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fringe version of git-gutter.el

git-gutter-fringe.el

melpa badge melpa stable badge gh actions badge

Introduction

git-gutter-fringe.el is fringe version of of git-gutter.el.

git-gutter.el does not work with linum-mode but git-gutter-fringe.el can work with linum-mode. In contrast, git-gutter-fringe.el does not work in tty frame(emacs -nw), but git-gutter.el can work in tty frame.

NOTE: You can not use both git-gutter.el and git-gutter-fringe.el

Screenshot

Screenshot of git-gutter-fringe.el

Requirements

Installation

You can install git-gutter.el from MELPA with package.el (M-x package-install git-gutter-fringe).

And you can also install it with el-get.

Basic Usage

Interfaces are same as git-gutter.el.

  • git-gutter
  • git-gutter:clear
  • git-gutter:toggle

Sample Configuration

;; You need to install fringe-helper.el
(require 'git-gutter-fringe)

Customize

Look and feel

git-gutter-fringe-customize

You can change faces like following.

(set-face-foreground 'git-gutter-fr:modified "yellow")
(set-face-foreground 'git-gutter-fr:added    "blue")
(set-face-foreground 'git-gutter-fr:deleted  "white")

Change signs in fringe

git-gutter-fringe-change-signs

;; Please adjust fringe width if your own sign is too big.
(setq-default left-fringe-width  20)
(setq-default right-fringe-width 20)

(fringe-helper-define 'git-gutter-fr:added nil
  ".XXXXXX."
  "XX....XX"
  "X......X"
  "X......X"
  "XXXXXXXX"
  "XXXXXXXX"
  "X......X"
  "X......X")

(fringe-helper-define 'git-gutter-fr:deleted nil
  "XXXXXX.."
  "XX....X."
  "XX.....X"
  "XX.....X"
  "XX.....X"
  "XX.....X"
  "XX....X."
  "XXXXXX..")

(fringe-helper-define 'git-gutter-fr:modified nil
  "XXXXXXXX"
  "X..XX..X"
  "X..XX..X"
  "X..XX..X"
  "X..XX..X"
  "X..XX..X"
  "X..XX..X"
  "X..XX..X")

Position of fringe

git-gutter-fringe-right

You can change position of fringe, left or right. Default is left.

(setq git-gutter-fr:side 'right-fringe)

Comparison with diff-hl

I suppose if you enable vc-mode, you should use diff-hl rather than git-gutter-fringe. I always use git-gutter.el(and I love git-gutter.el), however I don't use git-gutter-fringe and don't do dog-fooding myself.

diff-hl is based on Emacs VC. git-gutter-fringe does not use vc.

You can use git-gutter-fringe even if you disable vc-mode. While diff-hl benefits from VC. For example, if vc supports new VCS which is greater than git, diff-hl works with such VCS with no code modification. However git-gutter.el does not benefit from vc-mode, I need to add code for supporting such new great VCS.

See also

More Repositories

1

god-mode

Minor mode for God-like command entering
Emacs Lisp
819
star
2

git-gutter

Emacs port of GitGutter which is Sublime Text Plugin
Emacs Lisp
817
star
3

helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
Emacs Lisp
687
star
4

org-page

[INACTIVE] A static site generator based on Emacs and org mode.
Emacs Lisp
673
star
5

popwin

Popup Window Manager for Emacs
Emacs Lisp
496
star
6

helm-ag

The silver searcher with helm interface
Emacs Lisp
489
star
7

quickrun

Run command quickly. This packages is inspired quickrun.vim
Emacs Lisp
464
star
8

anzu

Emacs Port of anzu.vim
Emacs Lisp
403
star
9

emamux

tmux manipulation from Emacs
Emacs Lisp
262
star
10

ov

Overlay library for Emacs Lisp.
Emacs Lisp
209
star
11

direx

Directory Explorer for GNU Emacs
Emacs Lisp
202
star
12

helm-gtags

GNU GLOBAL helm interface
Emacs Lisp
201
star
13

terraform-mode

Major mode of Terraform configuration file
Emacs Lisp
194
star
14

req-package

dependency management system on top of use-package
Emacs Lisp
153
star
15

git-messenger

Emacs Port of git-messenger.vim
Emacs Lisp
147
star
16

go-eldoc

eldoc for go language
Emacs Lisp
127
star
17

yascroll

Yet Another Scroll Bar Mode
Emacs Lisp
102
star
18

company-jedi

Company backend for Python jedi
Emacs Lisp
99
star
19

key-chord

Map pairs of simultaneously pressed keys to commands
Emacs Lisp
99
star
20

zoom-window

Zoom and Unzoom window
Emacs Lisp
98
star
21

swoop

Peculiar buffer navigation for Emacs
Emacs Lisp
90
star
22

org-redmine

Redmine tools using Emacs OrgMode
Emacs Lisp
82
star
23

dired-k

Highlighting dired buffer like k
Emacs Lisp
82
star
24

magit-gerrit

Magit plugin for Gerrit Code Review
Emacs Lisp
62
star
25

go-add-tags

Add field tags for struct fields
Emacs Lisp
58
star
26

pkg-info

Provide information about Emacs packages
Emacs Lisp
57
star
27

helm-css-scss

This emacs program makes your CSS/SCSS/LESS coding faster and easier than ever.
Emacs Lisp
53
star
28

smeargle

Highlighting Regions by Last Updated Time
Emacs Lisp
49
star
29

evil-anzu

anzu for Evil
Emacs Lisp
48
star
30

mongo

MongoDB driver for Emacs Lisp
Emacs Lisp
47
star
31

gh-md

Render markdown using the github api
Emacs Lisp
46
star
32

manage-minor-mode

Manage your minor-mode on the dedicated interface buffer. Emacs.
Emacs Lisp
45
star
33

farmhouse-themes

Hand-picked light and dark color theme for Emacs 24+
Emacs Lisp
42
star
34

go-direx

Tree style source code viewer for Go language
Emacs Lisp
40
star
35

helm-themes

Emacs theme selection with helm interface
Emacs Lisp
38
star
36

undohist

Persistent Undo History for GNU Emacs
Emacs Lisp
38
star
37

fontawesome

fontawesome utility
Emacs Lisp
33
star
38

ansible-doc

Ansible documentation for GNU Emacs
Emacs Lisp
32
star
39

fancy-battery

Display battery in Emacs Mode line
Emacs Lisp
31
star
40

cpp-auto-include

Insert and delete C++ header files automatically.
Emacs Lisp
31
star
41

sr-speedbar

Same frame speedbar
Emacs Lisp
30
star
42

go-impl

impl for Emacs
Emacs Lisp
30
star
43

helm-open-github

Utilities for opening github page
Emacs Lisp
29
star
44

ac-etags

etags/ctags completion source for auto-complete
Emacs Lisp
29
star
45

osx-trash

Make Emacs' delete-by-moving-to-trash do what you expect it to do on OS X.
Emacs Lisp
27
star
46

ac-emoji

auto-complete source of Emoji
Emacs Lisp
25
star
47

ac-ispell

ispell/aspell completion source for auto-complete
Emacs Lisp
24
star
48

codic

Codic for Emacs
Emacs Lisp
23
star
49

applescript-mode

Emacs mode for editing AppleScript
Emacs Lisp
23
star
50

magit-svn

Git-Svn extension for Magit
Emacs Lisp
22
star
51

transpose-frame

Transpose windows arrangement in a frame
Emacs Lisp
22
star
52

evil-textobj-line

Evil Line text object
Emacs Lisp
20
star
53

helm-pydoc

pydoc with helm interface
Emacs Lisp
20
star
54

ac-alchemist

auto-complete source of alchemist
Emacs Lisp
18
star
55

sourcemap

Sourmap parser in Emacs Lisp
Emacs Lisp
18
star
56

packed

Emacs package utilities
Emacs Lisp
16
star
57

helm-ack

App::ack with helm interface
Emacs Lisp
13
star
58

dart-mode

An Emacs mode for the Dart language
Dart
13
star
59

helm-perldoc

perlpod with helm interface
Emacs Lisp
12
star
60

reverse-theme

Emacs color theme of reverse(like 'emacs --reverse-video')
Emacs Lisp
12
star
61

helm-github-issues

github issues with helm interface
Emacs Lisp
12
star
62

ac-capf

auto-complete source of completion-at-point
Emacs Lisp
12
star
63

sound-wav

Play wav file
Emacs Lisp
11
star
64

ac-racer

auto-complete source of racer
Emacs Lisp
10
star
65

popup-complete

Completion with popup-el
Emacs Lisp
9
star
66

qt-pro-mode

GNU Emacs major-mode for Qt build-system files
Emacs Lisp
9
star
67

thingopt

Additional features of thingatpt.el
Emacs Lisp
8
star
68

miniedit

Enhanced editing for minibuffer fields
Emacs Lisp
8
star
69

helm-ispell

ispell completion with helm interface
Emacs Lisp
8
star
70

splitjoin

Emacs port of splitjoin.vim
Emacs Lisp
8
star
71

helm-package

Listing ELPA packages with helm interface
Emacs Lisp
7
star
72

docean

Interact with DigitalOcean from Emacs
Emacs Lisp
6
star
73

pyimpsort

Sort python imports
Python
5
star
74

emamux-ruby-test

Ruby test with emamux
Emacs Lisp
5
star
75

octicons

Emacs octicons utility
Emacs Lisp
5
star
76

dedicated

A very simple minor mode for dedicated buffers
Emacs Lisp
4
star
77

haxe-mode

Major mode for editing Haxe files.
Emacs Lisp
4
star
78

helm-robe

Helm completing function for robe
Emacs Lisp
4
star
79

oberon

Major mode for editing Oberon/Oberon-2 program texts
Emacs Lisp
4
star
80

magit-p4

Magit plugin integrating git-p4 add-on.
Emacs Lisp
4
star
81

ert-expectations

The simplest unit test framework in the world
Emacs Lisp
4
star
82

keydef

A simpler way to define keys, with kbd syntax
Emacs Lisp
3
star
83

help-find-org-mode

Advise help functions to find org babel source blocks instead of tangled source
Emacs Lisp
3
star
84

test-more

Emacs Test framework like Perl's Test::More
Emacs Lisp
3
star
85

tree-mode

A mode to manage tree widgets
Emacs Lisp
3
star
86

showtip

Show tip at cursor
Emacs Lisp
3
star
87

import-popwin

Pop up buffer near by import statements with popwin
Emacs Lisp
3
star
88

literate-coffee-mode

Major mode for Literate CoffeeScript
Emacs Lisp
3
star
89

perl-utils

Emacs Perl utilities
Emacs Lisp
2
star
90

ltsv

LTSV for Emacs
Emacs Lisp
2
star
91

later-do

Execute lisp code ... later
Emacs Lisp
2
star
92

findr

Breadth-first file-finding facility for (X)Emacs
Emacs Lisp
2
star
93

dirtree

Directory tree views
Emacs Lisp
2
star
94

pylint

Minor mode for running `pylint'
Emacs Lisp
2
star
95

jedi-eldoc

Eldoc with emacs-jedi
Emacs Lisp
2
star
96

setnu

Emacs Lisp
1
star
97

oddmuse

Edit pages on an Oddmuse wiki
Emacs Lisp
1
star
98

smarty-mode

Major mode for editing smarty templates
Emacs Lisp
1
star
99

http-post-simple

HTTP POST requests using the url library
Emacs Lisp
1
star
100

read-char-spec

Generalized `y-or-n-p'
Emacs Lisp
1
star