快適emacs lisp生活を目指して
TRANSCRIPT
![Page 1: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/1.jpg)
快適Emacs Lisp生活を目指して
12年4月30日月曜日
![Page 2: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/2.jpg)
自己紹介
12年4月30日月曜日
![Page 3: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/3.jpg)
自己紹介• twitter @uk_ar•hatena&github uk-ar•emacs歴 3~4年
•作ったemacs lisp
•key-combo.el•flex-autopair.el
12年4月30日月曜日
![Page 4: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/4.jpg)
快適Emacs Lisp生活とは?
12年4月30日月曜日
![Page 5: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/5.jpg)
こんな感じ?
12年4月30日月曜日
![Page 6: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/6.jpg)
ELispを書くときに…
•括弧を楽に入力したい
•定型コードを楽に入力したい((((((...))))))
(defun ... (interactive)...)
12年4月30日月曜日
![Page 7: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/7.jpg)
括弧の入力編((((((...))))))
12年4月30日月曜日
![Page 8: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/8.jpg)
Lisp系の括弧の入力補助なら
12年4月30日月曜日
![Page 9: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/9.jpg)
paredit.el !!
•括弧の対応を崩さず編集•対応する括弧も削除•慣れればすごく便利らしい
12年4月30日月曜日
![Page 10: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/10.jpg)
慣れれば…
12年4月30日月曜日
![Page 11: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/11.jpg)
挫折
http://www.flickr.com/photos/lel4nd/5621720708/
12年4月30日月曜日
![Page 12: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/12.jpg)
思い通りに編集できない…
12年4月30日月曜日
![Page 13: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/13.jpg)
そこで作ってみた
12年4月30日月曜日
![Page 14: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/14.jpg)
flex-autopair.el~pareditに挫折した全ての人に~
•一般的な括弧の自動挿入
★閉じ括弧を自動挿入
•括弧の対応は人手で修正
•動きをモード毎にカスタマイズ可能
★c-mode #includeの後だけ<>http://d.hatena.ne.jp/uk-ar/20120401/1333282805
12年4月30日月曜日
![Page 15: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/15.jpg)
lisp系では•開き括弧の前に空白•S式を囲うparedit から動きをパクリacp.elやelectric-pair-modeからもいろいろ...
12年4月30日月曜日
![Page 16: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/16.jpg)
デモ
12年4月30日月曜日
![Page 17: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/17.jpg)
定型コードの入力編(defun ... (interactive)...)
12年4月30日月曜日
![Page 18: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/18.jpg)
スニペットの入力と言えば
12年4月30日月曜日
![Page 19: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/19.jpg)
yasnippet !!
12年4月30日月曜日
![Page 20: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/20.jpg)
しかし
12年4月30日月曜日
![Page 21: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/21.jpg)
忘れる問題
12年4月30日月曜日
![Page 22: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/22.jpg)
何を登録したのか忘れる
•似たもの(defun defvar)
•環境(会社 自宅)
12年4月30日月曜日
![Page 23: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/23.jpg)
どの省略形で発動するかを忘れる
•短い方がうれしいけど…
•展開後と違うと忘れる
•括弧は必要?不要?
• 括弧が二重に展開
• 括弧がない
12年4月30日月曜日
![Page 24: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/24.jpg)
auto-completeと設定追加
•省略形は元のシンボル名
• 途中まで打てば候補が出る
•括弧がない時だけ括弧を挿入
12年4月30日月曜日
![Page 25: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/25.jpg)
こんな感じ
12年4月30日月曜日
![Page 26: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/26.jpg)
設定は後日公開予定
12年4月30日月曜日
![Page 27: 快適Emacs lisp生活を目指して](https://reader030.vdocuments.pub/reader030/viewer/2022012403/55630a02d8b42a62598b57eb/html5/thumbnails/27.jpg)
おわり
12年4月30日月曜日