-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
executable file
·114 lines (79 loc) · 3.01 KB
/
init.el
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
;; -*- Mode: Emacs-Lisp ; Coding: utf-8 -*-
;; OSを判別、UNIX系?
(defvar run-unix
(or (equal system-type 'gnu/linux)
(or (equal system-type 'usg-unix-v)
(or (equal system-type 'berkeley-unix)
(equal system-type 'cygwin)))))
; OSを判別、個別判別
(defvar run-linux
(equal system-type 'gnu/linux))
(defvar run-system-v
(equal system-type 'usg-unix-v)); OpenSolaris2090.06
(defvar run-bsd
(equal system-type 'berkeley-unix))
(defvar run-cygwin ;; cygwinもunixグループにしておく
(equal system-type 'cygwin))
(defvar run-w32
(and (null run-unix)
(or (equal system-type 'windows-nt)
(equal system-type 'ms-dos))))
(defvar run-darwin (equal system-type 'darwin))
;; Emacsenの種類とVerを判別
(defvar run-emacs23
(and (equal emacs-major-version 23)
(null (featurep 'xemacs))))
(defvar run-emacs24
(and (equal emacs-major-version 24)
(null (featurep 'xemacs))))
(defvar run-xemacs (featurep 'xemacs))
(defvar run-xemacs-no-mule
(and run-xemacs (not (featurep 'mule))))
(defvar run-carbon-emacs (and run-darwin window-system))
;; elispディレクトリをload-pathに追加
(setq load-path (append '(
"~/.emacs.d/elisp"
"~/.emacs.d/auto-install"
;; "~/.emacs.d/plugin/org-mode/head/lisp";the latest org-mode
"~/.emacs.d/plugin/org-mode/org-7.9.3e/lisp";org-mode
) load-path))
;(add-to-list `load-path "~/svn2git/emacswikipages/" t) ; add to last
;;;auto-install.el
;; (install-elisp-from-emacswiki "auto-install.el")
(require 'auto-install)
(setq auto-install-directory "~/.emacs.d/auto-install/")
(auto-install-update-emacswiki-package-name t) ; EmacsWikiのページ名を保管候補に追加
(auto-install-compatibility-setup) ; 互換性確保
(setq ediff-windows-setup-function 'ediff-setup-windowss-plain) ;ediff関連のバッファを1フレームに纏める
;;; MELPA ; http://melpa.milkbox.net/
;;; Marmalade ; http://marmalade-repo.org/
;; http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el
(add-to-list 'load-path "~/.emacs.d/elpa/") ;; package.el for emacs 23
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/")
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
;; 個別の設定をロードしまくりパート
;; 特定ディレクトリ以下を自動でロードするようにしてもいいけど、順番とか、
;; これやっぱ外しておこうとかいうのを調整するのが面倒。
(load "init-helm")
(load "init-face")
(load "init-e2wm")
(load "init-font")
(load "init-c_cpp")
(load "init-ruby")
(load "init-rails")
;(load "init-python") ;commentout for update emacs24
(load "init-javascript")
(load "init-clojure")
(load "init-haskell")
(load "init-go")
(load "init-flymake")
(load "init-gnu_global")
(load "init-gdb")
(load "init-rst")
(load "init-org")
(load "init-quickrun")
(load "init-yasnippet")
(load "init-misc")