-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot-emacs.txt
More file actions
25 lines (23 loc) · 1.04 KB
/
Copy pathdot-emacs.txt
File metadata and controls
25 lines (23 loc) · 1.04 KB
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
;;; こんな感じです
(require 'xcscope)
;;; インデックスファイルの更新を抑制します
(setq cscope-do-not-update-database t)
;;; cscopeの対象と使用するインデックスファイルのディレクトリを指定
;;; 最初がソースディレクトリで "$SRC" に対応します。先頭の "^" を忘れずに。
;;; 次はインデックスファイルを配置したディレクトリで "$DB" に対応します。
(setq cscope-database-regexps
'(
("^/home/cuomo/Code"
("/home/cuomo/Code/db/binaries" ("-q" "-k"))
)
)
)
;;; アセンブラコードでも有効になるように
(add-hook 'asm-mode-hook (function cscope:hook))
;;; 色を変更します(これは好みで)
;;; 色づけが嫌なら (setq cscope-use-face nil)
(set-face-foreground 'cscope-file-face "MediumSeaGreen")
(set-face-foreground 'cscope-function-face "yellow")
(set-face-foreground 'cscope-line-number-face "red")
(set-face-foreground 'cscope-line-face "yellow")
(set-face-foreground 'cscope-mouse-face "blue")