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