初心者の俺専用FreeBSD質問スレッド

このエントリーをはてなブックマークに追加
132asm
せっかくなんで俺の ~/.emacs の基本的な設定についての部分をコピペ。
よかったら使ってやってください。

--- ここから ---
;;-*- mode: Emacs-Lisp; -*-
;;;
;;; default settings
;;;
;(setq load-path (cons "~/lib/emacs" load-path))
(if (eq window-system 'x)
(progn ; X 上での設定
(define-key function-key-map [delete] [8])
(put 'delete 'ascii-character 8)
(load "hilit19" nil t) ; 色付けシステムを要求
(global-unset-key "\C-z")
))
; DEL に C-h を割り当て, C-h と BS を delete-backward-char にする
(load "term/bobcat" nil t)

(setq-default fill-column 78)
(setq next-line-add-newlines nil ; ファイルの最後でカーソルを止める
require-final-newline 'query ; ファイルの最後の改行を確認する
kill-whole-line t) ; 行頭の C-k で行全体を削除
(load "jka-compr" nil t) ; dired で圧縮ファイルの中身も見られるように
(set-scroll-bar-mode 'right)

; 日本語関連
(set-language-environment "Japanese")
(prefer-coding-system 'euc-japan-unix)
(set-terminal-coding-system 'euc-japan-unix)
(set-keyboard-coding-system 'euc-japan-unix)
; canna
(require 'canna-leim)
(set-input-method "japanese-canna")
(toggle-input-method)
(global-set-key "\C-o" 'toggle-input-method) ; "C-o"でもかんな起動
(global-set-key "\C-_" 'canna-undo) ; 入力の再変換
(global-set-key "\C-x\C-\\" 'canna-touroku-region) ; 単語登録