#pragma section-numbers off [[TableOfContents]] = 概要 = Emacs22 以上では ~/.emacs.d 以下に集めるのが良い。 ~/.emacs.d/init.el を起動ファイルとして読むので ~/.emacs や ~/.emacs.el ではなくて ~/.emacs.d/init.el にした方が良い = 設定 = .emacs.d って変更できたっけ? = 構成 = 設定系のディレクトリ名を何にするかは問題ですが、以下のようにしています。 {{{ ~/ .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)) }}} = 参考になりそうな .emacs = [http://github.com/elim/dotemacs elim's dotemacs at master - GitHub] [http://emacsblog.org/2007/10/07/declaring-emacs-bankruptcy/ Declaring .emacs Bankruptcy | M-x all-things-emacs] [http://snipt.org/nlng .emacs - Snipt.org] http://bitbucket.org/birkenfeld/dotemacs/src/a8807e1e7f0f/ [http://github.com/rmm5t/dotfiles/tree/master/emacs.d/ emacs.d at master from rmm5t's dotfiles - GitHub] [http://coderepos.org/share/browser/dotfiles/emacs /dotfiles/emacs – CodeRepos::Share – Trac] [http://coderepos.org/share/browser/dotfiles/emacs/shyouhei/.emacs.d /dotfiles/emacs/shyouhei/.emacs.d – CodeRepos::Share – Trac] [http://github.com/filcab/elisp filcab's elisp at master - GitHub] http://nullman.org/tutorial/Emacs.html http://bitbucket.org/kzys/dotfile/ [http://steve.yegge.googlepages.com/effective-emacs Stevey's Home Page - Effective Emacs ] [http://github.com/topfunky/emacs-starter-kit topfunky's emacs-starter-kit at master - GitHub] [http://www-tsujii.is.s.u-tokyo.ac.jp/~yoshinag/tips/elisp_tips.html Petit emacs lisp tips on .emacs.el] http://sunoano.name/ws/public_xhtml/.emacs.html = 参考サイト = ---- CategoryEmacs