Emacs
起動時のメッセージを消す
Emacsの設定ファイル($HOME/.emacs)に以下の設定を追加
(setq inhibit-startup-message t)
エラーメッセージ「CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed」を消す
Emacs 23のバグらしい?
「/usr/share/themes/Ambiance/gtk-2.0/gtkrc」の41行目
GtkRange::trough-under-steppers = 0
を
GtkRange::trough-under-steppers = 1
にする
デフォルトのインデント幅とタブを使わずスペースを使う
(setq-default tab-width 2 indent-tabs-mode nil)
キーバインドを変更する
C-h を Backspace に
(global-set-key "\C-h" 'delete-backward-char)
C-c g を goto-line に
(global-set-key "\C-cg" 'goto-line)
バックアップファイルを作らない
;;; *.~ とかのバックアップファイルを作らない
(setq make-backup-files nil)
;;; .#* とかのバックアップファイルを作らない
(setq auto-save-default nil)
メニューバー非表示化
(if window-system (menu-bar-mode 1) (menu-bar-mode -1))
自動で色を付ける設定
(global-font-lock-mode t)
Ruby でマジックコメントを無効化
(custom-set-variables
'(ruby-insert-encoding-magic-comment nil))
行末の空白行を表示
(setq-default show-trailing-whitespace t)
C-x p で前のウィンドウへ(other-window を逆向きに移動)
(global-set-key "\C-xp" (lambda()(interactive)(other-window -1)))
対応する括弧をハイライト
(show-paren-mode t)
スクロールバーを右に
(set-scroll-bar-mode 'right)
最終更新:2013年02月03日 02:27