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