2012-02-01から1ヶ月間の記事一覧

Carbon Emacsのフォントの指定

MAC

Carbon Emacsのフォントの指定は、以下の例がよく紹介されているが、 これを使うと、選択されている時と、されていない時の日本語のフォントの大きさが変わってしまう。 (if (eq window-system 'mac) (require 'carbon-font)) (fixed-width-set-fontset "hir…

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 | xa…