]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_emacs_el
Auto commit by The Sugar System.
[sugar.git] / dot-files / _emacs_el
1 ;; -*- Mode: emacs-lisp; Coding: utf-8 -*-
2
3 ;; Load paths -----------------------------------------------------------------
4 (add-to-list 'load-path (expand-file-name "~/.elisp"))
5 (add-to-list 'load-path "/usr/local/share/emacs/site-lisp")
6
7 ;; Setting for encodings of the environment -----------------------------------
8 ;(set-language-environment 'Japanese)
9 (set-default-coding-systems 'utf-8)
10 (set-terminal-coding-system 'utf-8)
11 (setq default-file-name-coding-system 'utf-8)
12 (set-keyboard-coding-system 'utf-8)
13 (set-clipboard-coding-system 'utf-8)
14
15 ;; Settings for the Emacs itself ----------------------------------------------
16 (setq truncate-partial-width-windows t)
17 (setq make-backup-files nil)
18
19 (setq read-file-name-completion-ignore-case t)
20 (tool-bar-mode nil)
21
22 (global-set-key (kbd "C-\\" ) 'toggle-input-method)
23 (global-set-key (kbd "C-RET") 'completion-at-point)
24 (global-set-key (kbd "C-<return>") 'completion-at-point)
25
26 (unless window-system
27   (normal-erase-is-backspace-mode t))
28
29 (setq-default tab-width 4)
30 (global-font-lock-mode t)
31
32 (auto-compression-mode t)
33 (which-function-mode t)
34 (setq visible-bell t)
35 (setq ring-bell-function (lambda ()))
36
37 (require 'server)
38 (if (server-running-p)
39     (message "Warning: server %S is already running." server-name)
40   (server-start))
41
42 ;; windmove
43 (windmove-default-keybindings)
44
45 ;; file renaming
46 ;; Originally from stevey, adapted to support moving to a new directory.
47 (defun rename-file-and-buffer (new-name)
48   "Renames both current buffer and file it's visiting to NEW-NAME."
49   (interactive
50    (progn
51      (if (not (buffer-file-name))
52          (error "Buffer '%s' is not visiting a file!" (buffer-name)))
53      ;; Disable ido auto merge since it too frequently jumps back to the original
54      ;; file name if you pause while typing. Reenable with C-z C-z in the prompt.
55      (let ((ido-auto-merge-work-directories-length -1))
56        (list (read-file-name (format "Rename %s to: " (file-name-nondirectory
57                                                        (buffer-file-name))))))))
58   (if (equal new-name "")
59       (error "Aborted rename"))
60   (setq new-name (if (file-directory-p new-name)
61                      (expand-file-name (file-name-nondirectory
62                                         (buffer-file-name))
63                                        new-name)
64                    (expand-file-name new-name)))
65   ;; Only rename if the file was saved before. Update the
66   ;; buffer name and visited file in all cases.
67   (if (file-exists-p (buffer-file-name))
68       (rename-file (buffer-file-name) new-name 1))
69   (let ((was-modified (buffer-modified-p)))
70     ;; This also renames the buffer, and works with uniquify
71     (set-visited-file-name new-name)
72     (if was-modified
73         (save-buffer)
74       ;; Clear buffer-modified flag caused by set-visited-file-name
75       (set-buffer-modified-p nil)))
76
77   (setq default-directory (file-name-directory new-name))
78
79   (message "Renamed to %s." new-name))
80
81 ;; Host specific configuration ------------------------------------------------
82 (let ((host (system-name)))
83   (cond ((equal host "aria.cielonegro.org")
84          (progn
85            ;; Use firefox as the default browser.
86            (setq browse-url-firefox-program "/usr/pkg/bin/firefox")
87            ;; Specify how to connect to some of the remote servers.
88            (setq tramp-default-proxies-alist nil)
89            (mapcar #'(lambda (proxy)
90                        (add-to-list 'tramp-default-proxies-alist proxy))
91             '( ("rd8"                                 nil "/sshx:pho@seras.vpn.cielonegro.org:")
92                ("pho\\.dev\\.office\\.ymir\\.co\\.jp" nil "/sshx:pho@seras.vpn.cielonegro.org:")
93                ))))))
94
95 ;; Settings for Browser --------------------------------------------------------
96 (global-set-key "\C-xm" 'browse-url-at-point)
97
98 ;; Setting for the Mode Line ---------------------------------------------------
99 (line-number-mode t)
100 (column-number-mode t)
101 (display-time)
102
103 ;; Setting for Frames ----------------------------------------------------------
104 (when window-system
105   (let ((host (system-name)))
106     (cond ((equal host "seras")
107            (set-frame-font "Dejavu Sans Mono 11" t))
108
109           ((equal host "yukari.cielonegro.org")
110            (set-frame-font "Dejavu Sans Mono 11" t))
111
112           ((equal host "aria.cielonegro.org")
113            (progn
114              (set-frame-font "Dejavu Sans Mono 13" t)
115              ;; Emacs 24.4.1 somehow gets very slow when the following
116              ;; lines are uncommented.
117              ;;(set-fontset-font nil 'japanese-jisx0208 "さざなみゴシック")
118              ;;(set-fontset-font nil 'japanese-jisx0212 "さざなみゴシック")
119              ;;(set-fontset-font nil 'katakana-jisx0201 "さざなみゴシック")
120              )))))
121
122 ;; Hooks for newline-and-indent ------------------------------------------------
123 ;(mapcar (lambda (hook)
124 ;     (add-hook hook
125 ;           (lambda ()
126 ;             (local-set-key "\C-m" 'newline-and-indent)
127 ;             (local-set-key "\C-j" 'newline)
128 ;             )))
129 ;   '(perl-mode-hook
130 ;     cperl-mode-hook
131 ;     java-mode-hook
132 ;     javascript-mode-hook
133 ;     c-mode-hook
134 ;     c++-mode-hook
135 ;     objc-mode-hook
136 ;     emacs-lisp-mode-hook
137 ;     lisp-mode-hook
138 ;     yatex-mode-hook
139 ;     css-mode-hook
140 ;     scheme-mode-hook))
141
142 ;; Setting for Packages --------------------------------------------------------
143 (defun require-if-present (feature)
144   (condition-case e
145       (require feature)
146     (file-error
147      (if (equal (cadr e) "Cannot open load file")
148          (message "Warning: feature %s is absent" feature) ; warn and ignore
149        (apply 'signal (car e) (cdr e)))))) ; rethrow
150
151 (defun load-if-present (file)
152   (condition-case e
153       (load file)
154     (file-error
155      (if (equal (cadr e) "Cannot open load file")
156          (message "Warning: file named %s is absent" file) ; warn and ignore
157        (apply 'signal (car e) (cdr e)))))) ; rethrow
158
159 (defun load-file-if-present (path)
160   (if (file-exists-p path)
161       (load-file path)
162     (message "Warning: file %s is absent" path)))
163
164 ;; glsl
165 (autoload 'glsl-mode "glsl-mode" nil t)
166 (add-to-list 'auto-mode-alist '("\\.glsl\\'" . glsl-mode))
167 (add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode))
168 (add-to-list 'auto-mode-alist '("\\.frag\\'" . glsl-mode))
169 (add-to-list 'auto-mode-alist '("\\.geom\\'" . glsl-mode))
170
171 ;; session
172 (require-if-present 'session)
173
174 ;; flyspell
175 (require-if-present 'flyspell)
176
177 ;; ditz
178 (require-if-present 'ditz)
179
180 ;; mediawiki
181 (require-if-present 'mediawiki)
182
183 ;; jaspace
184 (require-if-present 'jaspace)
185
186 ;; color-theme
187 (require-if-present 'color-theme)
188 (if (featurep 'color-theme)
189     (progn
190       (color-theme-initialize)
191       (color-theme-subtle-hacker)))
192
193 ;; multi-term
194 (autoload 'multi-term "multi-term"
195   "Create new term buffer.
196 Will prompt you shell name when you type `C-u' before this command." t)
197
198 ;; auto-complete
199 (require-if-present 'auto-complete-config)
200 (if (featurep 'auto-complete-config)
201     (progn
202       (add-to-list 'ac-dictionary-directories
203                    "/usr/pkg/share/emacs/site-lisp/auto-complete/ac-dict")
204       (mapcar (lambda (mode)
205                 (add-to-list 'ac-modes mode))
206               '(autoconf-mode
207                 erlang-mode
208                 sql-mode))
209       (setq ac-modes (remove 'css-mode ac-modes))
210       (add-hook 'erlang-mode-hook
211                 (lambda ()
212                   (add-to-list 'ac-sources 'ac-source-semantic)))
213       (ac-config-default)))
214
215 ;; mic-paren
216 (require-if-present 'mic-paren)
217 (if (featurep 'mic-paren)
218     (paren-activate))
219
220 ;; elscreen
221 (condition-case e
222     (load "elscreen" "ElScreen" t)
223   (file-error
224    (if (equal (cadr e) "Cannot open load file")
225        (message "Warning: feature %s is absent" feature) ; warn and ignore
226      (apply 'signal (car e) (cdr e))))) ; rethrow
227 (if (featurep 'elscreen)
228     (elscreen-start))
229 (require-if-present 'elscreen-w3m)
230
231 ;; undo-tree
232 (require-if-present 'undo-tree)
233 (if (featurep 'undo-tree)
234     (global-undo-tree-mode))
235
236 ;; MPC
237 ;(require-if-present 'mpc-autoloads)
238
239 ;; rst-mode
240 (autoload 'rst-mode "rst"
241   "mode for editing reStructuredText documents" t)
242 (setq auto-mode-alist
243       (append '(("\\.rst$" . rst-mode)
244                 ("\\.rest$" . rst-mode)) auto-mode-alist))
245
246 ;; graphviz-dot-mode
247 (autoload 'graphviz-dot-mode "graphviz-dot-mode"
248   "Major mode for the dot language." t)
249 (add-to-list 'auto-mode-alist '("\\.dot\\'" . graphviz-dot-mode))
250 (add-to-list 'auto-mode-alist '("\\.gv\\'" . graphviz-dot-mode))
251
252 ;; textile-mode
253 (autoload 'textile-mode "textile-mode"
254   "Major mode for editing Textile documents." t)
255 (add-to-list 'auto-mode-alist '("\\.textile\\'" . textile-mode))
256
257 ;; xsltxt-mode
258 (autoload 'xsltxt-mode "xsltxt-mode" "Major mode for xsltxt." t)
259 (add-to-list 'auto-mode-alist '("\\.xsltxt$" . xsltxt-mode))
260
261 ;; lua-mode
262 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
263 (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
264
265 ;; protobuf-mode
266 (autoload 'protobuf-mode "protobuf-mode")
267 (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
268
269 ;; scala-mode2
270 (add-to-list 'load-path "~/sandbox/_scala/scala-mode2")
271 (require-if-present 'scala-mode2)
272
273 ;; sbt-mode
274 (add-to-list 'load-path "~/sandbox/_scala/sbt-mode")
275 (require-if-present 'sbt-mode)
276
277 ;; twittering-mode
278 (require-if-present 'twittering-mode)
279 (setq twittering-username "phonohawk")
280
281 ;; riece
282 (autoload 'riece "riece" "Start Riece" t)
283 (add-hook 'riece-after-load-startup-hook
284           #'(lambda ()
285               (add-to-list 'riece-addons 'riece-alias)
286               (add-to-list 'riece-addons 'riece-skk-kakutei)
287               (add-to-list 'riece-addons 'riece-keyword)
288               (add-to-list 'riece-addons 'riece-ctlseq)))
289
290 ;; CEDET
291 (add-to-list 'load-path "/usr/pkg/share/emacs/cedet/common")
292 (require-if-present 'cedet)
293
294 ;; ECB
295 (require-if-present 'ecb-autoloads)
296 (let* ((hosts '(("netbsd." .
297                  (("~/sandbox/yxmimeproc" "yxmimeproc")
298                   ("~/sandbox/YxMIME" "YxMIME.pm")
299                   ))
300                 ("g1.cuenote.jp" .
301                  (("~/sandbox/MR/engine/libycom" "libycom")
302                   ))
303                 ("aria.cielonegro.org" .
304                  (("~/sandbox/_web-app/Rakka"           "Rakka")
305                   ("~/sandbox/_haskell/Lucu"            "Lucu")
306                   ("~/sandbox/_web-app/Kirschbaum"      "Kirschbaum")
307                   ("~/sandbox/_haskell/HsOpenSSL"       "HsOpenSSL")
308                   ("~/sandbox/_haskell/HsHyperEstraier" "HsHyperEstraier")
309                   ("~/sandbox/_haskell/HsSVN"           "HsSVN")
310                   ("~/sandbox/_game/RoRo"               "RoRo")
311                   ("~/sandbox/_haskell/HXT"             "HXT")
312                   ("~/sandbox/_haskell/hxt-compile"     "hxt-compile")
313                   ("~/src/ghc-6.10.1"                   "ghc-6.10.1")
314                   ("~/sandbox/sugar"                    "sugar")
315                   ("~/sandbox/_haskell/dns"             "dns")
316                   ("~/sandbox/_haskell/blackboard-ddns" "blackboard-ddns")
317                   ))))
318        (paths (cdr (assoc (system-name) hosts))))
319   (setq ecb-source-path paths))
320
321 ;; leim
322 (require-if-present 'gaelic)
323
324 ;; rnc-mode
325 (autoload 'rnc-mode "rnc-mode")
326 (add-to-list 'auto-mode-alist '("\\.rnc\\'" . rnc-mode))
327
328 ;; bookmark
329 (setq bookmark-sort-flag nil)
330
331 ;; sudoku
332 (autoload 'sudoku "sudoku" "The Sudoku" t)
333
334 ;; mew
335 (autoload 'mew "mew" "Mew" t)
336
337 ;; cleite
338 (autoload 'cleite "cleite" "Cleite RSS Aggregator -- Emacs Interface" t)
339
340 ;; javascript
341 (autoload 'js2-mode "js2" nil t)
342 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
343 (add-to-list 'auto-mode-alist '("\\.json$" . javascript-mode))
344
345 ;; typescript
346 (autoload 'typescript-mode "typescript-mode"
347   "Major mode for editing typescript." t)
348 (add-to-list 'auto-mode-alist '("\\.ts$" . typescript-mode))
349
350 ;; vimrc
351 (autoload 'vimrc-mode "vimrc-mode"
352   "Major mode for editing `.vimrc', `xxx.vim' and `.exrc' files." t)
353 (add-to-list 'auto-mode-alist '("\\.vim\\(rc\\)?$" . vimrc-mode))
354
355 ;; ido
356 (require 'ido)
357 (ido-mode t)
358
359 ;; sokoban
360 (autoload 'sokoban "sokoban.el" "Start a new game of Sokoban." t)
361 (autoload 'sokoban-mode "sokoban.el" "Play Sokoban in current buffer." t)
362 (setq sokoban-playerfiles-dir "/usr/local/var/games/emacs-sokoban")
363
364 ;; nXML
365 (load-file-if-present "/usr/pkg/share/emacs/site-lisp/nxml-mode/rng-auto.el")
366 (defalias 'xml-mode 'nxml-mode)
367 (add-to-list 'auto-mode-alist '("\\.xml$" . nxml-mode))
368 (add-to-list 'auto-mode-alist '("\\.xi$" . nxml-mode))
369 (add-to-list 'auto-mode-alist '("\\.rdf$" . nxml-mode))
370 (add-to-list 'auto-mode-alist '("\\.rng$" . nxml-mode))
371
372 ;; sstp
373 (autoload 'sstp-mode "sstp" "SSTP Editing Major-Mode" t)
374
375 ;; ruby-mode
376 (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files")
377 (setq auto-mode-alist
378       (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
379 (setq interpreter-mode-alist (append '(("ruby" .ruby-mode))
380                                      interpreter-mode-alist))
381 (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process")
382 (autoload 'inf-ruby-keys "inf-ruby" "set local key defs for inf-ruby in ruby-mode")
383 (add-hook 'ruby-mode-hook
384           '(lambda ()
385             (inf-ruby-keys)
386           ))
387
388 ;; Haskell
389 (load-if-present "haskell-site-file.el")
390
391 (autoload 'run-haskell "inf-haskell" "" t)
392 (autoload 'switch-to-haskell "inf-haskell" "" t)
393 (autoload 'inferior-haskell-load-file "inf-haskell" "" t)
394 (autoload 'inferior-haskell-type "inf-haskell" "" t)
395 (autoload 'inferior-haskell-info "inf-haskell" "" t)
396 (autoload 'inferior-haskell-find-definition "inf-haskell" "" t)
397 (autoload 'inferior-haskell-find-haddock "inf-haskell" "" t)
398
399 (add-to-list 'auto-mode-alist '("\\.hs$" . haskell-mode))
400 (add-to-list 'auto-mode-alist '("\\.hsc$" . haskell-mode))
401
402 (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
403 (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
404 (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
405
406 (load-if-present "~/sandbox/_input-method/haskell-unicode-input-method/haskell-unicode-input-method")
407  (add-hook 'haskell-mode-hook
408    (lambda () (set-input-method "haskell-unicode")))
409
410 ;; Hoogle
411 (autoload 'hoogle-lookup "hoogle" "Hoogle" t)
412 (global-set-key (kbd "C-c h") 'hoogle-lookup)
413
414 ;; c-mode
415 (mapcar (lambda (hook)
416       (add-hook hook
417             (lambda () (c-set-style "user"))))
418     '(c-mode-hook
419       c++-mode-hook
420       objc-mode-hook
421       java-mode-hook))
422
423 ;; EmacsWiki
424 (autoload 'emacs-wiki-find-file "emacs-wiki" "Emacs Wiki" t)
425 (defalias 'wiki 'emacs-wiki-find-file)
426
427 ;; cperl
428 (defalias 'perl-mode 'cperl-mode)
429 (setq cperl-indent-level 4)
430 (setq cperl-indent-parens-as-block t)
431
432 ;; Erlang
433 (require-if-present 'erlang-start)
434 (setq erlang-electric-commands nil)
435
436 ;; SKK
437 (require 'skk-autoloads)
438 (require 'skk-study)
439 (global-set-key "\C-x\C-j" 'skk-mode)
440 (global-set-key "\C-xj" 'skk-auto-fill-mode)
441 (global-set-key "\C-xt" 'skk-tutorial)
442 (setq skk-use-jisx0201-input-method t)
443 (setq skk-rom-kana-rule-list
444       '(("@" nil "@")
445         ("wi" nil ("ヰ" . "ゐ"))
446         ("we" nil ("ヱ" . "ゑ"))
447         ;;("hh" "h" ("ン" . "ん"))
448         ;;("mm" "m" ("ン" . "ん"))
449         ("zx" nil ("ゝ" . "ヽ"))
450         ("zc" nil ("ゞ" . "ヾ"))))
451 (set-input-method 'japanese-skk) ; INPUT METHOD
452
453 ;; navi2ch
454 (autoload 'navi2ch "navi2ch" "Navigator for 2ch for Emacs" t)
455
456 ;; migemo
457 (require-if-present 'migemo)
458 (setq migemo-isearch-enable-p nil)
459
460 ;; tiarra-conf
461 (setq load-path (cons (expand-file-name "~/sandbox/Tiarra") load-path))
462 (autoload 'tiarra-conf-mode "tiarra-conf" "tiarra.conf editing mode" t)
463
464 ;; po-mode
465 (autoload 'po-mode "po-mode")
466 (setq auto-mode-alist
467       (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode)
468         auto-mode-alist))
469
470 ;; csv-mode
471 (autoload 'csv-mode "csv-mode"
472   "Major mode for editing comma-separated value files." t)
473 (add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
474
475 ;; tsv-mode
476 (autoload 'tsv-mode "tsv-mode" "A mode to edit table like file" t)
477 (autoload 'tsv-normal-mode "tsv-mode" "A minor mode to edit table like file" t)
478 (setq tsv-write-annotation nil)
479 (setq tsv-separator-list '("\t"))
480 ;(add-to-list 'auto-mode-alist '("\\.[Tt][Ss][Vv]\\'" . tsv-mode))
481
482 ;; markdown-mode
483 ;; http://jblevins.org/projects/markdown-mode/
484 (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t)
485 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
486
487 ;; yaml-mode
488 (autoload 'yaml-mode "yaml-mode"
489   "Major mode for editing YAML files." t)
490 (add-to-list 'auto-mode-alist '("\\.ya?ml$"  . yaml-mode))
491
492 ;; less-css-mode
493 (autoload 'less-css-mode "less-css-mode" "Major mode for editing LESS files" t)
494 (add-to-list 'auto-mode-alist '("\\.less\\'" . less-css-mode))
495
496 ;; Troublesome Tasks
497 (if (equal (system-name) "seras")
498     (progn
499       (defun edit-troublesome-tasks ()
500         (interactive)
501         (elscreen-create)
502         (find-file (expand-file-name "~/var/troublesome-tasks.txt")))
503       (define-key ctl-x-map "MT" #'edit-troublesome-tasks)))
504
505 ;; ChangeLog
506 (setq user-full-name "PHO")
507 (setq user-mail-address "pho@cielonegro.org")
508
509 (defun memo ()
510   (interactive)
511   (add-change-log-entry nil (expand-file-name "~/sync/memo.txt")))
512 (define-key ctl-x-map "MM" #'memo)
513
514 (defun depression ()
515   (interactive)
516   (add-change-log-entry nil (expand-file-name "~/sync/depression.txt")))
517 (define-key ctl-x-map "MD" #'depression)
518
519 (defun plant ()
520   (interactive)
521   (add-change-log-entry nil (expand-file-name "~/sync/plant.txt")))
522 (define-key ctl-x-map "MP" #'plant)
523
524 (defun robinson ()
525   (interactive)
526   (elscreen-create)
527   (find-file (expand-file-name "~/sync/good-things.txt"))
528   (split-window-horizontally)
529   (next-window)
530   (find-file (expand-file-name "~/sync/bad-things.txt"))
531   (next-window))
532 (define-key ctl-x-map "MR" #'robinson)
533
534 ;; Emacs Calc
535 (add-hook 'calc-start-hook
536           (lambda ()
537             (if (functionp 'paren-deactivate)
538                 (paren-deactivate))))
539 (add-hook 'calc-end-hook
540           (lambda ()
541             (if (functionp 'paren-activate)
542                 (paren-activate))))
543
544 ;;; emacs-w3m
545 (autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
546 (autoload 'w3m-browse-url "w3m" "Browse url by w3m." t)
547 (autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
548 (autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
549 (autoload 'w3m-weather "w3m-weather" "Display weather report." t)
550 (autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)
551 (autoload 'w3m-namazu "w3m-namazu" "Search files with Namazu." t)
552
553 ;; pov-mode
554 (autoload 'pov-mode "pov-mode" "POV-Ray scene file mode" t)
555 (setq auto-mode-alist
556       (append '(("\\.pov$" . pov-mode)
557                 ("\\.inc$" . pov-mode)
558                 ) auto-mode-alist))
559
560 ;; End of user configuration ---------------------------------------------------
561
562 ;; emacs auto edit
563 (put 'narrow-to-region 'disabled nil)
564 (custom-set-variables
565  ;; custom-set-variables was added by Custom.
566  ;; If you edit it by hand, you could mess it up, so be careful.
567  ;; Your init file should contain only one such instance.
568  ;; If there is more than one, they won't work right.
569  '(Info-additional-directory-list
570    (quote
571     ("/sw/share/info" "/usr/local/info" "/usr/local/share/info")))
572  '(ac-ignore-case nil)
573  '(appt-display-format (quote window))
574  '(appt-message-warning-time 20)
575  '(browse-url-browser-function (quote browse-url-firefox))
576  '(canlock-password "a14fa4d2601465d55585c291fa8b3943e189e716")
577  '(cleite:auto-refresh-interval nil)
578  '(cleite:measure-srpc-call-time t)
579  '(compilation-scroll-output (quote first-error))
580  '(completion-ignored-extensions
581    (quote
582     (".svn/" "CVS/" ".o" "~" ".bin" ".lbin" ".so" ".a" ".ln" ".blg" ".bbl" ".elc" ".lof" ".glo" ".idx" ".lot" ".dvi" ".fmt" ".tfm" ".pdf" ".class" ".fas" ".lib" ".mem" ".x86f" ".sparcf" ".fasl" ".ufsl" ".fsl" ".dxl" ".pfsl" ".dfsl" ".lo" ".la" ".gmo" ".mo" ".toc" ".aux" ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" ".cps" ".fns" ".kys" ".pgs" ".tps" ".vrs" ".pyc" ".pyo" ".hi")))
583  '(cperl-merge-trailing-else nil)
584  '(csv-align-style (quote auto))
585  '(default-frame-alist
586     (quote
587      ((tool-bar-lines . 0)
588       (menu-bar-lines . 1)
589       (width . 80)
590       (height . 25)
591       (right-fringe)
592       (left-fringe))))
593  '(ditz-find-issue-directory-automatically-flag t)
594  '(ecb-add-path-for-not-matching-files (quote (t)))
595  '(ecb-help-info-path "/sw/share/info/ecb.info")
596  '(ecb-layout-name "left14")
597  '(ecb-options-version "2.32")
598  '(ecb-show-sources-in-directories-buffer (quote always))
599  '(ecb-tip-of-the-day nil)
600  '(ecb-tree-buffer-style (quote ascii-guides))
601  '(ecb-windows-width 0.2)
602  '(elscreen-display-tab t)
603  '(global-whitespace-mode t)
604  '(graphviz-dot-auto-indent-on-newline nil)
605  '(graphviz-dot-auto-indent-on-semi nil)
606  '(haskell-program-name "ghci")
607  '(ido-enable-flex-matching t)
608  '(ido-everywhere t)
609  '(ido-ignore-files
610    (quote
611     ("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./" "\\.ttc")))
612  '(ido-work-directory-list-ignore-regexps (quote ("^\\(/mnt/ibm/\\|/Volumes/IBM80GB/\\)")))
613  '(indent-tabs-mode nil)
614  '(ispell-dictionary "english")
615  '(jabber-nickname "PHO")
616  '(jabber-resource "emacs")
617  '(jabber-server "jabber.jp")
618  '(jabber-username "phonohawk")
619  '(js2-auto-indent-flag nil)
620  '(js2-basic-offset 4)
621  '(js2-indent-on-enter-key nil)
622  '(js2-mirror-mode nil)
623  '(js2-use-font-lock-faces t)
624  '(lua-indent-level 4)
625  '(makefile-mode-hook (quote ((lambda nil (set-variable (quote tab-width) 8)))))
626  '(markdown-live-preview-delete-export (quote delete-on-export))
627  '(mediawiki-site-alist
628    (quote
629     (("Wikipedia" "http://en.wikipedia.org/w/" "username" "password" "Main Page")
630      ("YmirDev" "https://ymirlink:santamo@update.forcast.jp/fcdiv/mwiki/" "PHO" "" "メインページ"))))
631  '(mew-field-spec
632    (quote
633     (("^Resent-\\(From\\|To\\|Cc\\|Date\\)" t mew-face-header-important mew-face-header-important)
634      ("^Subject:$" t mew-face-header-important mew-face-header-subject)
635      ("^From:$" t mew-face-header-important mew-face-header-from)
636      ("^\\(To\\|Apparently-To\\):$" t mew-face-header-important mew-face-header-to)
637      ("^\\(Cc\\|Dcc\\|Bcc\\):$" t mew-face-header-important mew-face-header-to)
638      ("^Newsgroups:$" t mew-face-header-important mew-face-header-to)
639      ("^Date:$" t mew-face-header-important mew-face-header-date)
640      ("^Reply-To:$" t)
641      ("^X-Mailer:$" t)
642      ("^X-Mew:$" t mew-face-header-important mew-face-header-xmew)
643      ("^\\(Received\\|Return-Path\\|Sender\\|Errors-To\\):$" nil)
644      ("^\\(Path\\|Distribution\\|Xref\\):$" nil)
645      ("^NNTP-Posting-" nil)
646      ("^\\(Message-Id\\|Posted\\|In-Reply-To\\|References\\|Precedence\\):$" nil)
647      ("^Delivered-" nil)
648      ("^List-" nil)
649      ("^\\(Mime-Version\\|Lines\\):$" nil)
650      ("^From$" nil)
651      ("^Status:$" nil)
652      ("^Face:$" nil mew-face-header-private mew-face-header-marginal)
653      ("^X-Text-Classification:$" t mew-face-header-important mew-face-header-important)
654      ("^X-POPFile-Link:$" t mew-face-header-important mew-face-body-url)
655      ("^\\(X\\|Original\\)-" nil mew-face-header-private mew-face-header-marginal))))
656  '(mew-refile-guess-alist
657    (quote
658     (("From:"
659       ("noreply@adc1.apple.com" "+mm/adc")
660       ("mag2 ID 0000022139" "+mm/2ch")
661       ("noreply@sourceforge.net" "+from/sf-net"))
662      ("Subject:"
663       ("w3m-dev" "+ml/w3m-dev"))
664      ("To:"
665       ("glasgow-haskell-users@haskell.org" "+ml/ghc-users")
666       ("fink-devel@lists.sourceforge.net" "+ml/fink-devel"))
667      ("Reply-To:"
668       ("yun@kokonoe.com" "+mm/kokonoe"))
669      ("Cc:"
670       ("glasgow-haskell-users@haskell.org" "+ml/ghc-users")))))
671  '(mew-scan-fields
672    (quote
673     ("Folder:" "Filename:" "Subject:" "Date:" "From:" "To:" "Cc:" "Content-Type:" "Content-Transfer-Encoding:" "X-Mew-Uidl:" "Message-Id:" "In-Reply-To:" "References:" "X-Mew-Ref:" "X-Text-Classification:" "Body")))
674  '(mew-spam: "X-Text-Classification:")
675  '(mew-summary-form
676    (quote
677     (type
678      (5 date)
679      " "
680      (14 from)
681      " " t
682      (14 x-classification)
683      " "
684      (30 subj)
685      "|"
686      (0 body))))
687  '(mouse-wheel-progessive-speed nil)
688  '(mouse-wheel-scroll-amount (quote (1 ((shift) . 5) ((control)))))
689  '(mpc-browser-tags
690    (quote
691     (Directory Genre Artist|Composer|Performer Album|Playlist)))
692  '(navi2ch-browse-url-browser-function (quote browse-url-firefox))
693  '(navi2ch-display-splash-screen nil)
694  '(navi2ch-list-moved-board-alist
695    (quote
696     (("http://mamono.2ch.net/ihou/" . "http://hideyoshi.2ch.net/ihou/"))))
697  '(navi2ch-mona-face-variable (quote navi2ch-mona12-face))
698  '(navi2ch-mona-on-message-mode t)
699  '(newsticker-html-renderer (quote w3m-region))
700  '(newsticker-url-list nil)
701  '(newsticker-url-list-defaults
702    (quote
703     (("slashdot" "http://slashdot.org/index.rss" nil 3600))))
704  '(nxml-auto-insert-xml-declaration-flag t)
705  '(nxml-slash-auto-complete-flag t)
706  '(org-replace-disputed-keys t)
707  '(rcirc-server-alist (quote (("irc1.ymir.jp" :nick "PHO`cons" nil nil))))
708  '(riece-layout "default")
709  '(riece-layout-alist
710    (quote
711     (("middle-right" riece-configure-windows right middle)
712      ("middle-left" riece-configure-windows left middle)
713      ("top-right" riece-configure-windows right top)
714      ("top-left" riece-configure-windows left top)
715      ("bottom-right" riece-configure-windows right bottom)
716      ("bottom-left" riece-configure-windows left bottom)
717      ("top" riece-configure-windows-top)
718      ("spiral" riece-configure-windows-spiral)
719      ("default" . "middle-right"))))
720  '(riece-others-buffer-mode nil)
721  '(rng-schema-locating-files
722    (quote
723     ("schemas.xml" "~/share/nxml/schemas.xml" "/usr/pkg/share/emacs/site-lisp/nxml-mode/schema/schemas.xml")))
724  '(rst-level-face-base-light 50)
725  '(safe-local-variable-values (quote ((todo-categories "Todo" "Todo" "Todo" "Todo"))))
726  '(select-enable-clipboard t)
727  '(session-use-package t nil (session))
728  '(tramp-auto-save-directory "/tmp/tramp-auto-save")
729  '(tramp-completion-reread-directory-timeout 2)
730  '(tramp-default-host "localhost")
731  '(tramp-default-method "sshx")
732  '(uniquify-buffer-name-style (quote forward) nil (uniquify))
733  '(uniquify-trailing-separator-p t)
734  '(vc-cvs-diff-switches (quote ("-u")))
735  '(vc-cvs-stay-local nil)
736  '(w3m-bookmark-file-coding-system (quote utf-8))
737  '(w3m-coding-system (quote utf-8))
738  '(w3m-coding-system-priority-list (quote (utf-8)))
739  '(w3m-default-coding-system (quote utf-8))
740  '(w3m-default-display-inline-images t)
741  '(w3m-file-coding-system (quote utf-8))
742  '(w3m-file-name-coding-system (quote utf-8))
743  '(w3m-fill-column 80)
744  '(w3m-input-coding-system (quote utf-8))
745  '(w3m-key-binding nil)
746  '(w3m-output-coding-system (quote utf-8))
747  '(w3m-terminal-coding-system (quote utf-8))
748  '(w3m-use-cookies t)
749  '(whitespace-global-modes (quote (not mew-draft-mode mew-summary-mode)))
750  '(whitespace-style
751    (quote
752     (face tabs trailing space-before-tab newline indentation empty space-after-tab)))
753  '(woman-cache-filename "~/.wmncach.el"))
754 (custom-set-faces
755  ;; custom-set-faces was added by Custom.
756  ;; If you edit it by hand, you could mess it up, so be careful.
757  ;; Your init file should contain only one such instance.
758  ;; If there is more than one, they won't work right.
759  '(diff-added ((t (:inherit diff-changed :foreground "medium spring green" :weight extra-bold))))
760  '(diff-removed ((t (:foreground "gold3" :weight extra-bold))))
761  '(flyspell-incorrect ((t (:foreground "OrangeRed" :overline t))))
762  '(jaspace-highlight-tab-face ((((class color) (background dark)) (:foreground "gray70" :underline t))))
763  '(navi2ch-bm-new-unread-face ((t (:foreground "PaleGreen" :weight bold))))
764  '(navi2ch-bm-updated-cache-face ((t (:foreground "CornflowerBlue" :weight bold))))
765  '(navi2ch-bm-updated-unread-face ((t (:foreground "DarkSeaGreen3" :weight bold))))
766  '(textile-link-face ((t (:foreground "cyan"))))
767  '(textile-ol-bullet-face ((t (:foreground "dark orange"))))
768  '(textile-ul-bullet-face ((t (:foreground "deep sky blue"))))
769  '(which-func-face ((t (:background "black" :foreground "dark orange"))))
770  '(whitespace-empty ((t (:background "gray20" :foreground "firebrick"))))
771  '(whitespace-indentation ((t (:foreground "dimgray" :underline t))))
772  '(whitespace-line ((t (:background "gray20"))))
773  '(whitespace-tab ((t (:background "grey22" :foreground "dim gray" :underline (:color foreground-color :style wave))))))