PDF形式の書籍購入サイト
▼InformIT: The Trusted Technology Source for IT Pros and Developers
http://www.informit.com/
▼オーム社eStore(β)
http://estore.ohmsha.co.jp/titles
▼O'Reilly Japan Ebook Store
http://www.oreilly.co.jp/ebook/
▼Ebooks-O'Reilly Media
http://shop.oreilly.com/category/ebooks.do
▼Apress
http://www.apress.com/
▼The Pragmatic Bookshelf | Our Titles
http://pragprog.com/titles
▼Home | Packt Publishing
http://www.packtpub.com/
▼洋書(開発本)のイイところ - Good things about English books - iOS 開発ブログ Natsu's note
http://blog.natsuapps.com/2011/06/good-things-about-english-books.html
CDexの設定
▼New version: CDex 1.70 Beta 4 released | CDex
http://cdexos.sourceforge.net/?q=node/27
Carbon Emacsのフォントの指定
Carbon Emacsのフォントの指定は、以下の例がよく紹介されているが、
これを使うと、選択されている時と、されていない時の日本語のフォントの大きさが変わってしまう。
(if (eq window-system 'mac) (require 'carbon-font)) (fixed-width-set-fontset "hirakaku_w3" 12) (setq fixed-width-rescale nil)
次のように、順番を入れ替えるとフォントの大きさは変わらなくなった。
(if (eq window-system 'mac) (require 'carbon-font)) (setq fixed-width-rescale nil) (fixed-width-set-fontset "hirakaku_w3" 12)
CarbonEmacsでfindとgrepでのファイル検索
複数の拡張子を指定してサブディレクトリのファイルをgrepするコマンドの例。
2つの方法では、xargsを使うほうが速いらしい。
find . -type f -regex ".*[cpp|h]" -exec grep -nH -e "main" {} /dev/null \; find . -type f -regex ".*[cpp|h]" -print0 | xargs -0 grep -nH -e "main"
↑これは拡張子の判定がダメだった。
↓これならOKだった。結局、正規表現で複数拡張子の指定はできなかった。
find . -type f \( -name "*.cpp" -o -name "*.h" \) -print0 | xargs -0 grep -nH -e "main"
.emacsに以下の定義をしておくと、grep-findで上ののコマンドが表示されるので、必要な箇所を書き換えて検索すれば良い。
(setq grep-find-command "find . -type f \\( -name \"*.cpp\" -o -name \"*.h\" \\) -print0 | xargs -0 grep -nH -e \"main\"" )
一つ下のサブディレクトリだけなら、こういう方法でもできる。
grep -nH -e "main" *.cpp */*.cpp *.h */*.h