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