Git Gutter Emacs
You can not use both git gutter el and git gutter fringe el.
Git gutter emacs. Using emacs 42 git gutter and timemachine mike zamansky. You could really care about state of a emacs package if you see 2014 year or even older. Git gutter el uses it for calculating character length of the signs. But char width does not work for some full width characters.
For example if vc supports new vcs which is greater than git diff hl works with such vcs with no code modification. Add melpa as a package source. Of course there s some things which can be improved but people have real life and other things to do so be kind. Emacs has char width function which returns character width.
Add the following to your emacs file global git gutter mode t if you want to disable git gutter for some modes set the variable git gutter disabled modes. While diff hl benefits from vc. Just try it because git gutter works fine in the recent stable emacs. Subscribe subscribed unsubscribe 6 17k.
Emacs comes with a generic version control front end called versioncontrol or vc. But char width does not work for some full width characters. Git gutter eldoes not work with linum modebut git gutter fringe elcan work with linum mode. Unsubscribe from mike zamansky.
It supports git and many other version control system vcs. It contains patches that haven t yet been added to git gutter changelog. In contrast git gutter fringe eldoes not work in tty frame emacs nw but git gutter elcan work in tty frame. In terms of emacs ecosystem a year without commits means not too much.
So you should explicitly specify window width if you use full width character. This is a good choice if you use other vcs besides git or have no desire to use features unique to git. Diff hl is based on emacs vc. You add following s exp in your configuration file emacs d init el or emacs.
Emacs comes with a front end for git supporting a large subset of git s functionality. If you want to use git gutter for files in git repository. You can use git gutter fringe even if you disable vc mode. Git gutter fringe does not use vc.
Run m x package install git gutter. Emacs has char width function which returns character width.