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
540
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduce git-gutter.el
Introduce git-gutter.el at Kansai Emacs #07
Syohei YOSHIDA
April 27, 2013
More Decks by Syohei YOSHIDA
See All by Syohei YOSHIDA
yapc-hokkaido-2016
syohex
15
8.9k
Dynamic Module
syohex
1
450
My Recent Emacs Works
syohex
0
220
Introduction of creating Emacs Lisp Package
syohex
1
160
Emacs Introduction at LLDiver
syohex
2
3.2k
Recent Emacs Work
syohex
2
820
websocket.el and its demo applications
syohex
0
1.3k
Other Decks in Programming
See All in Programming
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
280
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
240
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
4
1.7k
Flow は今どうなっているか
mizdra
PRO
0
670
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
530
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
680
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
1.1k
源内ハンズオン概要編
hideg
0
210
引き算の組織 ― アウトカムとAIに全振りするために辞めたこと ― / Organization by Subtraction
hirokiyamamoto14
PRO
0
270
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
320
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
710
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
510
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
210
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.8k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
420
The Language of Interfaces
destraynor
162
27k
Designing for Performance
lara
611
70k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Chasing Engaging Ingredients in Design
codingconduct
0
280
Embracing the Ebb and Flow
colly
88
5.1k
Bash Introduction
62gerente
615
220k
How to make the Groovebox
asonas
2
2.3k
WCS-LA-2024
lcolladotor
0
800
Large-scale JavaScript Application Architecture
addyosmani
515
110k
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
ご清聴ありがとうございました