[HOME]: [Mac OS X]: [MacPython]: [Emacs]: [生存報告記]: [MacEmacs JP Project]: [NTEmacs JP Project]:

概要

Emacs22 以上では ~/.emacs.d 以下に集めるのが良い。MS-DOS 環境の場合は ~/_emacs.d を読んでくれます。

~/.emacs.d/init.el を起動ファイルとして読むので ~/.emacs や ~/.emacs.el ではなくて ~/.emacs.d/init.el にした方が良い

sakito の .emacs.d の中身を以下で公開しています。

http://bitbucket.org/sakito/dot.emacs.d/

設定

.emacs.d は Emacs23 から user-emacs-directory 変数が用意されている。

subr.el の内容変更してからコンパイルすれば、変更することができる。

構成

設定系のディレクトリ名を何にするかは問題ですが、以下のようにしています。

~/
  .emacs.d/
    init.el
    site-start.d
      init-*.el
      ... init.el から読みこむ起動設定ファイル
    lisp
      ... 他者が配布している Emacs Lisp
    local-lisp
      ... 自分で作成した Emacs Lisp やなんらかの理由で公式配布のバージョンから修正してある Emacs Lisp
    private
      ... 公開しないファイル類など
    rc.d
      ... zshrc 等の rc ファイルがはいっていて ln -s している。結局 Emacs との連携を考えるのでまとめた
    bin
      ... Emacs Lisp のみから呼ぶことを想定して作成してあるスクリプト等
    share
      dtd
      rnc
      icons
      skk
      man
      info
      ... Emacs Lisp が利用する固定(基本いじくらない)リソース
    etc
     snippets
     rst
     ... Emacs Lisp が利用する可変(基本いじる)リソース
    var
     ... キャシュファイルやバックアップファイル用

とか

設定

;; 極力UTF-8とする
(prefer-coding-system 'utf-8)
;; 一行ずつスクロールする
(setq scroll-conservatively 35)
(setq scroll-margin 0)
(setq scroll-step 1)
(setq comint-scroll-show-maximum-output t)
;; 現在行の強調表示
(global-hl-line-mode)
(hl-line-mode 1)

subdirs.el

;; -*- no-byte-compile: t -*-
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
    (normal-top-level-add-subdirs-to-load-path))

参考になりそうな解説

dot.emacs

参考になりそうな .emacs

elim's dotemacs at master - GitHub

Declaring .emacs Bankruptcy | M-x all-things-emacs

.emacs - Snipt.org

http://bitbucket.org/birkenfeld/dotemacs/src/a8807e1e7f0f/

emacs.d at master from rmm5t's dotfiles - GitHub

/dotfiles/emacs – CodeRepos::Share – Trac

/dotfiles/emacs/shyouhei/.emacs.d – CodeRepos::Share – Trac

filcab's elisp at master - GitHub

http://nullman.org/tutorial/Emacs.html

http://bitbucket.org/kzys/dotfile/

Stevey's Home Page - Effective Emacs

topfunky's emacs-starter-kit at master - GitHub

Petit emacs lisp tips on .emacs.el

http://sunoano.name/ws/public_xhtml/.emacs.html

http://bitbucket.org/nawoto/dotfiles/

http://github.com/mina86/dot-files/blob/master/dot-emacs

http://github.com/jimo1001/emacs.d

http://github.com/ghoseb/emacs-starter-kit

http://rhoda.haxney.org/code/p/emacs/source/tree/master/

http://github.com/yaotti/emacs-files

http://bitbucket.org/jpellerin/dotfiles/src/

参考サイト


CategoryEmacs