dot.emacsサンプル

;; .emacs

;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)

;; turn on font-lock mode
(when (fboundp 'global-font-lock-mode)
  (global-font-lock-mode t))

;; enable visual feedback on selections
(setq transient-mark-mode t)

;; default to better frame titles
(setq frame-title-format
      (concat  "%b - emacs@" system-name))

; paren-mode
(show-paren-mode t)

; show funtion name
(which-function-mode t)

; auto insert file
(auto-insert-mode t)

; M-g goto-line
(global-set-key "\M-g" 'goto-line)

; inhibit startup message
(setq inhibit-startup-message t)

; menu-bar-mode off
(menu-bar-mode nil)

; new line indent
(setq c-auto-newline t)
(global-set-key "\C-m" 'newline-and-indent)
; text mode is not indent new line
(add-hook 'text-mode-hook
          '(lambda ()
             (local-set-key "\C-m" 'newline)))
; color-mode
(require 'color-theme)
(color-theme-initialize); don't forget this
(if window-system
    (color-theme-deep-blue))

; set bell to visible not beep
(setq visible-bell t)

;; utf-8
;(set-language-environment 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)

bash beep off
.inputrc

set bell-style none