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