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