platform-p/platform-p.el というライブラリをGithubに置きました。 大部分はtomoyaさんのひとつの .emacs で設定を書き分けるための Tips。 で紹介されていたものです。後で検索しやすくするために変数名に ''platform-'' プレフィックスを付けました。 インストール platform-p/platform-p.el をload-pathの通った場所に置きます。 (require 'platform-p) します 使い方 例えばOSX固有の機能であるmetaキーとcommandキーの入れ替えをする場合は以下のように書きます。 (require 'platform-p) ;; ;; ... ;; (when platform-darwin-p ; 以後、OSX固有の機能の記述 ;; Meta -> Command (setq ns-comman