MacBook Air上でGNU Emacs 23.2.1 (x86_64-apple-darwin10.6.0, NS apple-appkit-1038.35)を使っています。フォントの設定や色の設定やanythingの設定などができて、普通に使えるようになりました。いまこの日記もEmacs上で書いています。スナップショットということで、初期化ファイル ~/.emacs.d/init.el を置いておきます。
;;
;; init.el
;;
;; Language.
'Japanese)
(set-language-environment
;; Coding system.
'utf-8)
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(prefer-coding-system
;; Keys.
"\C-z" 'term)
(global-set-key
;; Translate C-h to DEL.
(keyboard-translate ?\C-h ?\C-?)
;; Yen-key and backslash. (ここ、日記上だとわかりにくいのでコメントアウト)
;(define-key global-map [?¥] [?\\])
;(define-key global-map [?\C-¥] [?\C-\\])
;(define-key global-map [?\M-¥] [?\M-\\])
;(define-key global-map [?\C-\M-¥] [?\C-\M-\\])
;; Custom.
(custom-set-variables;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
t)
'(inhibit-default-init t)
'(inhibit-startup-buffer-menu t))
'(inhibit-startup-screen
(custom-set-faces;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Font, width, height, color.
if (eq (window-system) 'ns)
(progn
("Menlo-15:weight=normal:slant=normal" nil "menlokakugo")
(create-fontset-from-ascii-font "fontset-menlokakugo"
(set-fontset-font 'unicode
"Hiragino Maru Gothic ProN" :size 18)
(font-spec :family nil
'append)
'default-frame-alist '(font . "fontset-menlokakugo"))
(add-to-list 'default-frame-alist '(width . 128))
(add-to-list 'default-frame-alist '(height . 60))
(add-to-list 'default-frame-alist '(foreground-color . "black"))
(add-to-list 'default-frame-alist '(background-color . "white"))
(add-to-list 'default-frame-alist '(cursor-color . "blue4"))))
(add-to-list
;; Set background color of current line.
;; Color table: http://life.a.la9.jp/hp/color/rgb-tab.html
1)
(global-hl-line-mode 'hl-line "oldlace")
(set-face-background
;; AutoInstall
'load-path (expand-file-name "~/elisp"))
(add-to-list require 'auto-install)
(setq auto-install-directory "~/.emacs.d/auto-install/")
('load-path "~/.emacs.d/auto-install/")
(add-to-list
;; Anything
require 'anything-startup)
(setq anything-sources (list anything-c-source-buffers
(
anything-c-source-bookmarks
anything-c-source-recentf
anything-c-source-file-name-history
anything-c-source-locate
))"C-p") 'anything-previous-line)
(define-key anything-map (kbd "C-n") 'anything-next-line)
(define-key anything-map (kbd "C-v") 'anything-next-source)
(define-key anything-map (kbd "M-v") 'anything-previous-source)
(define-key anything-map (kbd "C-:") 'anything)
(global-set-key (kbd
;; Remember point in file.
t)
(setq-default save-place require 'saveplace) (
Twitterでたくさんの方がいろいろ教えてくださいました。感謝します。