-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
75 lines (63 loc) · 2.4 KB
/
.emacs
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
;;;; -*- mode: emacs-lisp; coding: utf-8 -*-
;;;;
;;; font-lockの設定
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(global-font-lock-mode t)
(setq default-frame-alist
(append
'((foreground-color . "gray") ; 前景色
(background-color . "black") ; 背景色
;; (font . "fontset-meirio") ; フォント
;; (font . "default") ; フォント
(cursor-color . "green") ; カーソル色
(width . 114) ; フレーム幅(文字数)
(height . 44) ; フレーム高(文字数)
(top . 50) ; フレームの Y 位置(ピクセル数)
(left . 10) ; フレームの X 位置(ピクセル数)
)
default-frame-alist))
(set-face-foreground 'font-lock-comment-face "LightSkyBlue2")
(set-face-foreground 'font-lock-comment-delimiter-face "LightSkyBlue2")
(set-face-foreground 'font-lock-string-face "LightSkyBlue2")
;; 選択領域の色
(set-face-background 'region "dark olive green")
(setq font-lock-support-mode 'jit-lock-mode)
(defface my-face-b-1 '((t (:background "gray"))) nil)
(defface my-face-b-2 '((t (:background "gray26"))) nil)
(defface my-face-u-1 '((t (:foreground "SteelBlue" :underline t))) nil)
(defvar my-face-b-1 'my-face-b-1)
(defvar my-face-b-2 'my-face-b-2)
(defvar my-face-u-1 'my-face-u-1)
(setq auto-mode-alist
(append '(("\\.c$" . c-mode)
("\\.py$" . python-mode)
("\\.pyx$" . python-mode)
("\\.cc$" . c++-mode)
("\\.h$" . c++-mode)
("\\.java$" . c++-mode)
("\\.smp$" . c++-mode)
("\\.dat$" . c++-mode)
("\\.vc$" . makefile-mode)
("\\.misc$" . makefile-mode)
("\\.bc$" . makefile-mode)
("\\.el$" . emacs-lisp-mode)
("\\.f$" . fortran-mode)
("\\.F$" . fortran-mode)
("\\.mss$" . scribe-mode)
("\\.pl$" . perl-mode)) auto-mode-alist))
;; リージョンに色を入れる
(setq transient-mark-mode t)
;; ツールバーを非表示
(tool-bar-mode -1)
;; メニューバーを非表示
(menu-bar-mode -1)
;; ssh
(require 'tramp)
(setq tramp-default-method "ssh")
;; load environment variables
(let ((envs '("PATH" "VIRTUAL_ENV" "GOROOT" "GOPATH")))
(exec-path-from-shell-copy-envs envs))