タグ

linuxとeditorに関するdjmontaのブックマーク (2)

  • .emacs で OS による条件分岐 - Hasta Pronto.org

    僕が愛してやまないエディタ Emacs 。色々な OS に移植されどんな環境でも使えるエディタになっていますが、Mac, Linux, Windows を使う僕としては OS によって微妙に設定ファイルの内容が違っていたりして同じファイルを使い回し出来なくて困っていました。OS ごとに動作に差違があると使い心地悪いし、管理がややこしくなりますもんね。ファイル名も同じものなんだから管理を一枚で済ませたいってのが一番面倒臭くない方法ですよね。 設定ファイル自体は Lisp で書かれているため自分で条件分岐が書けたら使い回し出来る設定ファイルを作ることができるんじゃないかと思い Google 先生に尋ねてみましたよ! 調べたところによると、一般的に使われているのは window-system で OS を判断するか、system-configuration で判断するのかの2パターンみたいです。

    djmonta
    djmonta 2008/11/13
    (cond ((string-match "apple-darwin" system-configuration)
  • Public Beta Open For “Ultimate N00b SLIME/Emacs Cheat Sheet” » What’s In Peter’s Head

    On this Valentine’s Day, give the gift people really want – complex key chords! In other news, I’ve got fans! Well, at least one anyway. A lot of the feedback I’ve received on this site so far has been from experienced Lispers who appreciate my enthusiasm and contributions for new users. Yesterday, I got the first (I think) comment and reply from another new Lisper who’s actually getting some use

    Public Beta Open For “Ultimate N00b SLIME/Emacs Cheat Sheet” » What’s In Peter’s Head
  • 1