Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Introduce git-gutter.el
Syohei YOSHIDA
April 27, 2013
Programming
1
450
Introduce git-gutter.el
Introduce git-gutter.el at Kansai Emacs #07
Syohei YOSHIDA
April 27, 2013
Tweet
Share
More Decks by Syohei YOSHIDA
See All by Syohei YOSHIDA
yapc-hokkaido-2016
syohex
15
8.3k
Dynamic Module
syohex
1
270
My Recent Emacs Works
syohex
0
160
Introduction of creating Emacs Lisp Package
syohex
1
72
Emacs Introduction at LLDiver
syohex
2
3k
Recent Emacs Work
syohex
2
730
websocket.el and its demo applications
syohex
0
1.1k
Other Decks in Programming
See All in Programming
Edge Side Frontend という新領域
mizchi
23
10k
実践 SpiceDB - クライドネイティブ時代をサバイブできるパーミッション管理の実装を目指して / Practical SpiceDB
lmt_swallow
0
130
Regular expressions basics/正規表現の基本
kishikawakatsumi
6
260
「困りごと」から始める個人開発
ikumatadokoro
4
260
VIMRC 2022
achimnol
0
140
アジャイルで不確実性に向き合うための開発タスクの切り方
tanden
4
1.1k
Records の使い方はこれでいいの? をみんなで考えたい / Java DO #20
gishi_yama
0
120
アジャイルで始める データ分析基盤構築
nagano
1
910
Amazon SageMakerでImagenを動かして猫画像生成してみた
hotoke_neko
0
120
kintoneでランダム取得を作ってみた(imoniCamp 2022-07-27)
shokun1108
0
150
MLOps勉強会_リアルタイムトラフィックのサーバレスMLOps基盤_20220810
strsaito
1
400
フロントエンドエンジニアが変える現場のモデリング意識/modeling-awareness-changed-by-front-end-engineers
uggds
32
13k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
498
130k
In The Pink: A Labor of Love
frogandcode
131
21k
Making Projects Easy
brettharned
98
4.4k
Statistics for Hackers
jakevdp
782
210k
Making the Leap to Tech Lead
cromwellryan
113
7.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
18
40k
Raft: Consensus for Rubyists
vanstee
127
5.5k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.3k
How STYLIGHT went responsive
nonsquared
85
4k
The World Runs on Bad Software
bkeepers
PRO
57
5.4k
It's Worth the Effort
3n
172
26k
jQuery: Nuts, Bolts and Bling
dougneiner
56
6.4k
Transcript
git-gutter.el 関西 Emacs勉強 #07 Syohei Yoshida(@syohex)
git-gutter.elとは • Sublime Textの GitGutterの Emacs版 – Vim版 vim-gitgutter •
前回のコミットからの差分を視覚化 • インストール – MELPA, marmalade, el-get
こんな感じ
目的 変更をわかりやすく!! • 前回からどこを変更したか • 余計な変更を加えていないか ? – delete-trailing-whitespace –
関係ない部分の変更
コマンド • 差分情報の表示 M-x git-gutter • 差分箇所間の移動 M-x git-gutter:{next-hunk,previous-hunk} •
現在の差分箇所のポップアップ M-x git-gutter:popup-hunk • 現在の差分箇所の revert M-x git-gutter:reverse-hunk
各種サポート • global-minor-mode, minor-mode • 特定のモードでの無効化 • リモートファイルの編集(tramp) • narrow-to-region
• indirect-buffer
カスタマイズ
git-gutter-fringe • git-gutter.elの問題 – linum-modeと共存できない – 右サイドに差分情報を表示できない • 解決方法 –
バッファではなく fringeに差分情報を表示 • git-gutter-fringeの問題点 – no windowでは利用できない
こんな感じ
git-gutter vs git-gutter-fringe git-gutter git-gutter-fringe linum-modeとの共存 ✘ ◦ no window対応
◦ ✘ 右サイドの表示 ✘ ◦ カスタマイズ性 ◦ △
デモンストレーション
課題 • 高速化 – window-configuration-change-hook – キャッシュ – (Macのみ?)表示が乱れる •
他の VCSのサポート – mercurial等
github.com/ syohex/emacs-git-gutter
ご清聴ありがとうございました