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