Software Engineer and Web Developer's Diary

1年後の自分に向けて

macの.emacs設定

現在の.emacsをメモしておきます。会社と家で設定が違うのでなんとか同期かさせたいなあ。でもWindowsMacなんでそんなわけにもいかないかなー。


;;japanese
(set-language-environment 'Japanese)

;;ChangeLog
(setq user-full-name "Xxx Xxx")
(setq user-mail-address "xxx@xxx.com")

;;not use backupfile
(setq make-backup-files nil)

;;iswitchb-mode
(iswitchb-mode t)

;;transient-mark-mode
(transient-mark-mode t)

;;php
(defun php-mode-hook ()
(setq tab-width 4
c-basic-offset 4
c-hanging-comment-ender-p nil
indent-tabs-mode
(not
(and (string-match "/(PEAR|pear)/" (buffer-file-name))
(string-match ".php$" (buffer-file-name))))))

;;ruby
(autoload 'ruby-mode "ruby-mode"
"Mode for editing ruby source files" t)
(setq auto-mode-alist
(append '((".rb$" . ruby-mode)) auto-mode-alist))
(setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
interpreter-mode-alist))
(autoload 'run-ruby "inf-ruby"
"Run an inferior Ruby process")
(autoload 'inf-ruby-keys "inf-ruby"
"Set local key defs for inf-ruby in ruby-mode")
(add-hook 'ruby-mode-hook
'(lambda ()
(inf-ruby-keys)))
(global-font-lock-mode 1)
(setq default-frame-alist
(append
'((foreground-color . "gray")  ;
(background-color . "black") ;
(cursor-color     . "blue")  ;
)
default-frame-alist))