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
510
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.8k
Dynamic Module
syohex
1
400
My Recent Emacs Works
syohex
0
200
Introduction of creating Emacs Lisp Package
syohex
1
140
Emacs Introduction at LLDiver
syohex
2
3.2k
Recent Emacs Work
syohex
2
790
websocket.el and its demo applications
syohex
0
1.2k
Other Decks in Programming
See All in Programming
なぜあなたのオブザーバビリティ導入は頓挫するのか
ryota_hnk
3
520
PHPUnitの限界をPlaywrightで補完するテストアプローチ
yuzneri
0
350
商品比較サービス「マイベスト」における パーソナライズレコメンドの第一歩
ucchiii43
0
230
ご注文の差分はこちらですか? 〜 AWS CDK のいろいろな差分検出と安全なデプロイ
konokenj
4
710
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
3
300
副作用と戦う PHP リファクタリング ─ ドメインイベントでビジネスロジックを解きほぐす
kajitack
3
480
知って得する@cloudflare_vite-pluginのあれこれ
chimame
1
120
11年かかって やっとVibe Codingに 時代が追いつきましたね
yimajo
0
210
DMMを支える決済基盤の技術的負債にどう立ち向かうか / Addressing Technical Debt in Payment Infrastructure
yoshiyoshifujii
4
650
SwiftでMCPサーバーを作ろう!
giginet
PRO
2
210
「次に何を学べばいいか分からない」あなたへ──若手エンジニアのための学習地図
panda_program
3
670
オンコール⼊⾨〜ページャーが鳴る前に、あなたが備えられること〜 / Before The Pager Rings
yktakaha4
2
1.2k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
GraphQLとの向き合い方2022年版
quramy
49
14k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Thoughts on Productivity
jonyablonski
69
4.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Scaling GitHub
holman
461
140k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
235
140k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.9k
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
ご清聴ありがとうございました