Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduce git-gutter.el
Search
Syohei YOSHIDA
April 27, 2013
Programming
1
470
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.6k
Dynamic Module
syohex
1
320
My Recent Emacs Works
syohex
0
180
Introduction of creating Emacs Lisp Package
syohex
1
100
Emacs Introduction at LLDiver
syohex
2
3.1k
Recent Emacs Work
syohex
2
760
websocket.el and its demo applications
syohex
0
1.1k
Other Decks in Programming
See All in Programming
どうしてこうなった命名集 ~🔥編~ / OOC 2024 LT
pictiny
4
2.8k
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
DDD, necessary but insufficient: physical design principles for microservices
cer
PRO
0
2.2k
Understanding Ast By Looking
inouehi
0
120
MySQL のインデックスの種類をおさらいしよう! / overviewing indexes in MySQL
okashoi
0
170
デザインシステムで Tailwind CSSとCSS in JSに分散投資をしたら良かった話
fsubal
14
3.2k
DDDはなぜ難しいのか / 良いコードの定義と設計能力の壁
pospome
24
7.3k
WebComponentsで フレームワークを1ページに共存させる
webuilder240
0
150
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
Data Contracts In Practice With Debezium and Apache Flink (Kafka Summit London)
gunnarmorling
2
280
とにかくHTTP3をライトニングに話す / Anyway, I'll talk to Lightning about HTTP3.
seike460
PRO
0
120
Laravel標準バリデーションでできること
hmb_ok
2
360
Featured
See All Featured
A Philosophy of Restraint
colly
195
15k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
Practical Orchestrator
shlominoach
180
9.7k
Product Roadmaps are Hard
iamctodd
43
9.6k
Designing with Data
zakiwarfel
94
4.8k
The Cost Of JavaScript in 2023
addyosmani
13
3.7k
The Brand Is Dead. Long Live the Brand.
mthomps
48
21k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
14
1.3k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
4 Signs Your Business is Dying
shpigford
174
21k
Ruby is Unlike a Banana
tanoku
95
10k
From Idea to $5000 a Month in 5 Months
shpigford
376
45k
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
ご清聴ありがとうございました