

Github GitHub - emacsorphanage/git-gutter-fringe: Fringe version of git-gutter.e...
source link: https://github.com/emacsorphanage/git-gutter-fringe
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

git-gutter-fringe.el
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
Requirements
- Emacs 24 or higher
- git-gutter.el
- fringe-helper for using
git-gutter-fringe
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
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
;; 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
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
Recommend
-
89
git-gutter+.el View, stage and revert Git changes straight from the buffer. (This package is inspired by the GitGutter plugin for Sublime Text. It contains patches...
-
68
One day I'll do a Magit video but since there are already some goodones out there I thought I'd share a couple of other great git relatedpackages.The first is Git Gutter which adds markers on th
-
9
Real World CTF 2018 ccls-fringe命题报告 上周日给Real World CTF 2018出了一道forensics题ccls-fringe,向解出此题的31支队伍表达祝贺。 上一次出题已是2016年,一直没有人教我pwn、reverse、we...
-
12
Requirement The customer required that when an item is in a a specific workflow state, the item cannot be edited. Sitecore has a special security permission to achieve this Workflow State Write
-
11
vi-tilde-fringe Displays tildes in the fringe on empty lines a la Vi. Original idea from /r/emacs. I...
-
14
How Fringe Stem Cell Treatments Won Allies on the Far RightAdvocates for dubious therapies (fight Covid with your own fat!) have latched on to conservative grievances—and formed an unholy alliance...
-
13
数据:NFT新项目Gutter Gang在20小时内交易量排名第二 • 5 小时前 碳链价值APP...
-
5
Sometimes a company doesn’t live up to what it has promised you. That can make you angry. What should you do about it? This post is about what happened when a company called LeafFilter disappointed me, and what I did about it. My f...
-
4
It's 'Penis Flower' Bloom SeasonTwo "corpse flowers" or "penis flowers" bloomed in California this month.June 24, 2022, 1:00pm
-
8
Edinburgh Fringe: The viral comedy stars leaping from TikTok to the stageBy Ian YoungsEntertainment & arts reporterPublished2 days ago
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK