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
530
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.9k
Dynamic Module
syohex
1
420
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
CSC307 Lecture 04
javiergs
PRO
0
660
Implementation Patterns
denyspoltorak
0
280
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
160
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
2026年 エンジニアリング自己学習法
yumechi
0
130
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.1k
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
710
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
AI & Enginnering
codelynx
0
110
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
940
Package Management Learnings from Homebrew
mikemcquaid
0
210
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
640
The Curious Case for Waylosing
cassininazir
0
230
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
210
Odyssey Design
rkendrick25
PRO
1
490
The Pragmatic Product Professional
lauravandoore
37
7.1k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
320
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
First, design no harm
axbom
PRO
2
1.1k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
820
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
ご清聴ありがとうございました