-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.ng
executable file
·55 lines (54 loc) · 1.56 KB
/
dot.ng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; $Id: dot.ng,v 1.1.1.1 2000/06/27 01:47:57 amura Exp $
;
; Ng startup file by H.Ohkubo
;
; 矢印キーでカーソル移動できるようにする
;(global-unset-key "\^[[" 'backward-paragraph)
;(global-set-key "\^[[A" 'previous-line)
;(global-set-key "\^[[B" 'next-line)
;(global-set-key "\^[[C" 'forward-char)
;(global-set-key "\^[[D" 'backward-char)
; 矢印キーでカーソル移動できるようにする
(global-set-key "\^[OA" 'previous-line)
(global-set-key "\^[OB" 'next-line)
(global-set-key "\^[OC" 'forward-char)
(global-set-key "\^[OD" 'backward-char)
;
; for No Backup files
;(make-backup-files nil)
; backspace <-> ^H
(bsmap-mode)
; set-mark-command to ^\
;(global-set-key "\^\\" 'set-mark-command)
; set-fep-toggle to ^\
;(global-set-key "\^\\" 'fep-toggle)
;
;漢字コード自動認識、デフォルトはEUC
(set-kanji-expected-code nil)
(set-default-fileio-code 'euc)
;(set-kanji-fileio-code 'euc)
;
; c-mode setting
(set-c-argdecl-indent 0)
(set-c-continued-statement-offset 4)
(set-c-continued-brace-offset -4)
(set-c-brace-offset -4)
(set-c-brace-imaginary-offset 0)
(set-c-indent-level 4)
(set-c-label-offset -2)
(set-c-tab-always-indent t)
;
; set regular-exp. re-search
(global-set-key "\^[\^s" 're-search-forward)
(global-set-key "\^[\^r" 're-search-backward)
;
; setting for SKG
;(set-skg-roman-dictionary "/home/anonymous/etc/SKG-ROMAN")
;(set-skg-kanji-dictionary "/home/anonymous/etc/SKG-JISYO")
;
; other setting
(global-set-key "\^[g" 'goto-line)
(set-fill-column 66)
(global-set-key ")" 'blink-matching-paren-hack)
(global-set-key "}" 'blink-matching-paren-hack)
(global-set-key "]" 'blink-matching-paren-hack)