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