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