Emacs .emacs
設定内容
Elisp
  一番重要な .emacs
  データ型
    assoc 連想リスト
  制御構造
    if
    cond
    progn
  条件
    等しいか eq equal
    述語の種類
    数字の比較
    list の比較
    文字の比較
    変数内容が空の時
  関数定義
試す(評価する)
    Lisp Interaction
    eval-region
    c-x c-e
良く使う文
  setq
    setq と defvar
    append
    list
    cons
  autoload
  global-set-key
  custom-set-variables
  add-hook
    どんな hook があるか
良く使われる変数
    変数の値の調べ方
    load-path
    file-coding-system-alist
    debug-on-error
    default-frame-alist
    auto-mode-alist
    fill-column
  variables
  others
日本語環境
  coding-system
      まとめて
設定のこつ
    info を見る
    *.el の最初の方に
     *-vars.el の中
    だらだらと書かない
  mode line 等
    mail 状況
    時刻を表示
    行・桁番号
    スクロールバーの位置
  key
  scroll mouse
  Emacs 版別
  X Window System
  dired
    cc
  文字に色を付ける
    color-mate
  Font Lock
    set-face-font
  Faces
  fontset
  他の方の .emacs
  その他の URL
  DEFAULTS
  かっこ合せ
    add-change-log-entry
    add-log-mailing-address

emacs-21 | dot.emacs | application | 始め方 | emacs-20 | らくらく入門

cond

場合分け
(cond ((numberp x) x)                  ; x が数値なら
      ((stringp x) x)                  ; x が文字なら
      ((bufferp x)                     ; x がバッファなら
       (setq temporary-hack x)         ;    実行文には複数の文も書ける
       (buffer-name x))                ; 
      ((symbolp x) (symbol-value x)) ) ; シンボルなら
どれにも一致しなかった時に実行するものは t (「常に真」を使う)
(cond ((eq a 'hack) 'foo)
      (t "default"))
(cond
 ((string-match "2" mule-version)
  (progn
    (load-file ("~makoto/mule/lisp/env/mule-2.el"))
    (load-file ("~makoto/mule/lisp/env/mime-mule2-setup.el"))))
 ((string-match "3" mule-version)
  (load-file ("~makoto/mule/lisp/env/mule-3.el"))))
この画面は Jeedosaquin によって表示しています。
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08