(menu-bar-mode 0) (tool-bar-mode 0) (set-language-environment "Japanese") (require 'un-define) (prefer-coding-system 'utf-8-unix) (set-terminal-coding-system 'utf-8-unix) (setq default-input-method "japanese-anthy") (setq grep-command "lgrep -n ") (defun linux-c-mode () "C mode with adjusted defaults for use with the Linux kernel." (interactive) (c-mode) (c-set-style "K&R") (setq tab-width 8) (setq indent-tabs-mode t) (setq c-basic-offset 8)) (setq auto-mode-alist (append '(("\\.html\\.\\w+$" . html-mode) ("linux.*/.*\\.[ch]$" . linux-c-mode)) auto-mode-alist)) (global-font-lock-mode t) (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)