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 | らくらく入門

良く使われる変数

Buffer-local variables

変数の値の調べ方

M-x describe-variable RET
load-path
等とします。

load-path

load-path は *.el を探す位置 (path) を設定する変数です。 通常 Emacs の設置された様子に応じて設定済です。

これに 次のように設定して値の追加が出来ます。 自分で作った *.el や、あるまとまりで追加する場合には 新たに directory を作って、それを load-path に追加するのが 便利です。

(add-to-list 'load-path "~/mule/lisp/ak/lisp")
(add-to-list 'load-path "~/mule/lisp/w3-200107")
関係ありそうな話として、じゃ、今呼んでいる *.el はどこのものを見ているの、 参照しているの ? ということがあります。その時には M-x locate-library を使います。
Locate library:
と聞いて来ますから、例えば wl と入力すると
Library is file /usr/local/share/emacs/site-lisp/wl/wl.elc 
などと教えてくれます。

(以下は load-path を設定する方法のうち、以前に紹介していた方法)

(setq load-path
      (append
       (list
;       (expand-file-name "~makoto/mule/lisp/ak/lisp")
       (expand-file-name "~makoto/mule/lisp/w3-200107")
       (expand-file-name "~makoto/mule/lisp")
       )
       load-path))
最近は expand-file-name は不要です。また setq を使うよりも、 add-to-list を使う方が、直感的な記述が出来ます。 本当は次のように一つづつ加えていく方が、追加・削除が簡単かも知れない。
(setq load-path (cons (expand-file-name "~/.emacs-dir" load-path))

file-coding-system-alist

(setq file-coding-system-alist
'(("\\.elc$" emacs-mule . emacs-mule)
 ("\\(\\`\\|/\\)loaddefs.el$" no-conversion . no-conversion)
 ("\\.tar$" no-conversion . no-conversion)
 ("\\.yyyy$" undecided    . euc-japan)
;            read            write
 ("" undecided)))

debug-on-error

(setq debug-on-error t)

default-frame-alist

default-frame-alist
Variable: Alist of default values for frame creation. Plist: standard-value variable-documentation
この画面は Jeedosaquin によって表示しています。
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08