]> 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 ;; 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 ;; cmake
145 (autoload 'cmake-mode "cmake-mode" nil t)
146 (add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
147 (add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))
148
149 ;; ditz
150 (require-if-present 'ditz)
151
152 ;; flyspell
153 (require-if-present 'flyspell)
154
155 ;; jaspace
156 (require-if-present 'jaspace)
157
158 ;; glsl
159 (autoload 'glsl-mode "glsl-mode" nil t)
160 (add-to-list 'auto-mode-alist '("\\.glsl\\'" . glsl-mode))
161 (add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode))
162 (add-to-list 'auto-mode-alist '("\\.frag\\'" . glsl-mode))
163 (add-to-list 'auto-mode-alist '("\\.geom\\'" . glsl-mode))
164
165 ;; rust
166 (autoload 'rust-mode "rust-mode" nil t)
167 (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
168
169 ;; session
170 (require-if-present 'session)
171 (if (featurep 'session)
172     (session-initialize))
173
174 ;; mediawiki
175 (require-if-present 'mediawiki)
176
177 ;; midnight
178 (require-if-present 'midnight)
179
180 ;; color-theme
181 (require-if-present 'color-theme)
182 (if (featurep 'color-theme)
183     (progn
184       (color-theme-initialize)
185       (color-theme-subtle-hacker)))
186
187 ;; multi-term
188 (autoload 'multi-term "multi-term"
189   "Create new term buffer.
190 Will prompt you shell name when you type `C-u' before this command." t)
191
192 ;; auto-complete
193 (require-if-present 'auto-complete-config)
194 (if (featurep 'auto-complete-config)
195     (progn
196       (add-to-list 'ac-dictionary-directories
197                    "/usr/pkg/share/emacs/site-lisp/auto-complete/ac-dict")
198       (mapcar (lambda (mode)
199                 (add-to-list 'ac-modes mode))
200               '(autoconf-mode
201                 erlang-mode
202                 sql-mode))
203       (setq ac-modes (remove 'css-mode ac-modes))
204       (add-hook 'erlang-mode-hook
205                 (lambda ()
206                   (add-to-list 'ac-sources 'ac-source-semantic)))
207       (ac-config-default)))
208
209 ;; mic-paren
210 (require-if-present 'mic-paren)
211 (if (featurep 'mic-paren)
212     (paren-activate))
213
214 ;; elscreen
215 (condition-case e
216     (load "elscreen" "ElScreen" t)
217   (file-error
218    (if (equal (cadr e) "Cannot open load file")
219        (message "Warning: feature %s is absent" feature) ; warn and ignore
220      (apply 'signal (car e) (cdr e))))) ; rethrow
221 (if (featurep 'elscreen)
222     (elscreen-start))
223 (require-if-present 'elscreen-w3m)
224
225 ;; undo-tree
226 (require-if-present 'undo-tree)
227 (if (featurep 'undo-tree)
228     (global-undo-tree-mode))
229
230 ;; MPC
231 ;(require-if-present 'mpc-autoloads)
232
233 ;; rst-mode
234 (autoload 'rst-mode "rst"
235   "mode for editing reStructuredText documents" t)
236 (setq auto-mode-alist
237       (append '(("\\.rst$" . rst-mode)
238                 ("\\.rest$" . rst-mode)) auto-mode-alist))
239
240 ;; graphviz-dot-mode
241 (autoload 'graphviz-dot-mode "graphviz-dot-mode"
242   "Major mode for the dot language." t)
243 (add-to-list 'auto-mode-alist '("\\.dot\\'" . graphviz-dot-mode))
244 (add-to-list 'auto-mode-alist '("\\.gv\\'" . graphviz-dot-mode))
245
246 ;; textile-mode
247 (autoload 'textile-mode "textile-mode"
248   "Major mode for editing Textile documents." t)
249 (add-to-list 'auto-mode-alist '("\\.textile\\'" . textile-mode))
250
251 ;; xsltxt-mode
252 (autoload 'xsltxt-mode "xsltxt-mode" "Major mode for xsltxt." t)
253 (add-to-list 'auto-mode-alist '("\\.xsltxt$" . xsltxt-mode))
254
255 ;; lua-mode
256 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
257 (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
258
259 ;; protobuf-mode
260 (autoload 'protobuf-mode "protobuf-mode")
261 (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
262
263 ;; scala-mode2
264 (add-to-list 'load-path "~/sandbox/_scala/scala-mode2")
265 (require-if-present 'scala-mode2)
266
267 ;; sbt-mode
268 (add-to-list 'load-path "~/sandbox/_scala/sbt-mode")
269 (require-if-present 'sbt-mode)
270
271 ;; twittering-mode
272 (require-if-present 'twittering-mode)
273 (setq twittering-username "phonohawk")
274
275 ;; riece
276 (autoload 'riece "riece" "Start Riece" t)
277 (add-hook 'riece-after-load-startup-hook
278           #'(lambda ()
279               (add-to-list 'riece-addons 'riece-alias)
280               (add-to-list 'riece-addons 'riece-skk-kakutei)
281               (add-to-list 'riece-addons 'riece-keyword)
282               (add-to-list 'riece-addons 'riece-ctlseq)))
283
284 ;; CEDET
285 (add-to-list 'load-path "/usr/pkg/share/emacs/cedet/common")
286 (require-if-present 'cedet)
287
288 ;; ECB
289 (require-if-present 'ecb-autoloads)
290 (let* ((hosts '(("netbsd." .
291                  (("~/sandbox/yxmimeproc" "yxmimeproc")
292                   ("~/sandbox/YxMIME" "YxMIME.pm")
293                   ))
294                 ("g1.cuenote.jp" .
295                  (("~/sandbox/MR/engine/libycom" "libycom")
296                   ))
297                 ("aria.cielonegro.org" .
298                  (("~/sandbox/_web-app/Rakka"           "Rakka")
299                   ("~/sandbox/_haskell/Lucu"            "Lucu")
300                   ("~/sandbox/_web-app/Kirschbaum"      "Kirschbaum")
301                   ("~/sandbox/_haskell/HsOpenSSL"       "HsOpenSSL")
302                   ("~/sandbox/_haskell/HsHyperEstraier" "HsHyperEstraier")
303                   ("~/sandbox/_haskell/HsSVN"           "HsSVN")
304                   ("~/sandbox/_game/RoRo"               "RoRo")
305                   ("~/sandbox/_haskell/HXT"             "HXT")
306                   ("~/sandbox/_haskell/hxt-compile"     "hxt-compile")
307                   ("~/src/ghc-6.10.1"                   "ghc-6.10.1")
308                   ("~/sandbox/sugar"                    "sugar")
309                   ("~/sandbox/_haskell/dns"             "dns")
310                   ("~/sandbox/_haskell/blackboard-ddns" "blackboard-ddns")
311                   ))))
312        (paths (cdr (assoc (system-name) hosts))))
313   (setq ecb-source-path paths))
314
315 ;; leim
316 (require-if-present 'gaelic)
317
318 ;; rnc-mode
319 (autoload 'rnc-mode "rnc-mode")
320 (add-to-list 'auto-mode-alist '("\\.rnc\\'" . rnc-mode))
321
322 ;; bookmark
323 (setq bookmark-sort-flag nil)
324
325 ;; sudoku
326 (autoload 'sudoku "sudoku" "The Sudoku" t)
327
328 ;; mew
329 (autoload 'mew "mew" "Mew" t)
330
331 ;; cleite
332 (autoload 'cleite "cleite" "Cleite RSS Aggregator -- Emacs Interface" t)
333
334 ;; javascript
335 (add-to-list 'auto-mode-alist '("\\.js$" . javascript-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 ;; Erlang
426 (require-if-present 'erlang-start)
427 (setq erlang-electric-commands nil)
428
429 ;; SKK
430 (require-if-present 'skk-autoloads)
431 (if (featurep 'skk-autoloads)
432         (progn
433           (require-if-present 'skk-study)
434           (global-set-key "\C-x\C-j" 'skk-mode)
435           (global-set-key "\C-xj" 'skk-auto-fill-mode)
436           (global-set-key "\C-xt" 'skk-tutorial)
437           (setq skk-use-jisx0201-input-method t)
438           (setq skk-rom-kana-rule-list
439                         '(("@" nil "@")
440                           ("wi" nil ("ヰ" . "ゐ"))
441                           ("we" nil ("ヱ" . "ゑ"))
442                           ;;("hh" "h" ("ン" . "ん"))
443                           ;;("mm" "m" ("ン" . "ん"))
444                           ("zx" nil ("ゝ" . "ヽ"))
445                           ("zc" nil ("ゞ" . "ヾ"))))
446           (set-input-method 'japanese-skk))) ; INPUT METHOD
447
448 ;; navi2ch
449 (autoload 'navi2ch "navi2ch" "Navigator for 2ch for Emacs" t)
450
451 ;; migemo
452 (require-if-present 'migemo)
453 (setq migemo-isearch-enable-p nil)
454
455 ;; tiarra-conf
456 (setq load-path (cons (expand-file-name "~/sandbox/Tiarra") load-path))
457 (autoload 'tiarra-conf-mode "tiarra-conf" "tiarra.conf editing mode" t)
458
459 ;; po-mode
460 (autoload 'po-mode "po-mode")
461 (setq auto-mode-alist
462       (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode)
463         auto-mode-alist))
464
465 ;; csv-mode
466 (autoload 'csv-mode "csv-mode"
467   "Major mode for editing comma-separated value files." t)
468 (add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
469
470 ;; tsv-mode
471 (autoload 'tsv-mode "tsv-mode" "A mode to edit table like file" t)
472 (autoload 'tsv-normal-mode "tsv-mode" "A minor mode to edit table like file" t)
473 (setq tsv-write-annotation nil)
474 (setq tsv-separator-list '("\t"))
475 ;(add-to-list 'auto-mode-alist '("\\.[Tt][Ss][Vv]\\'" . tsv-mode))
476
477 ;; markdown-mode
478 ;; http://jblevins.org/projects/markdown-mode/
479 (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t)
480 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
481
482 ;; yaml-mode
483 (autoload 'yaml-mode "yaml-mode"
484   "Major mode for editing YAML files." t)
485 (add-to-list 'auto-mode-alist '("\\.ya?ml$"  . yaml-mode))
486
487 ;; less-css-mode
488 (autoload 'less-css-mode "less-css-mode" "Major mode for editing LESS files" t)
489 (add-to-list 'auto-mode-alist '("\\.less\\'" . less-css-mode))
490
491 ;; Troublesome Tasks
492 (if (equal (system-name) "seras")
493     (progn
494       (defun edit-troublesome-tasks ()
495         (interactive)
496         (elscreen-create)
497         (find-file (expand-file-name "~/var/troublesome-tasks.txt")))
498       (define-key ctl-x-map "MT" #'edit-troublesome-tasks)))
499
500 ;; ChangeLog
501 (setq user-full-name "PHO")
502 (setq user-mail-address "pho@cielonegro.org")
503
504 (defun memo ()
505   (interactive)
506   (add-change-log-entry nil (expand-file-name "~/sync/memo.txt")))
507 (define-key ctl-x-map "MM" #'memo)
508
509 (defun depression ()
510   (interactive)
511   (add-change-log-entry nil (expand-file-name "~/sync/depression.txt")))
512 (define-key ctl-x-map "MD" #'depression)
513
514 (defun plant ()
515   (interactive)
516   (add-change-log-entry nil (expand-file-name "~/sync/plant.txt")))
517 (define-key ctl-x-map "MP" #'plant)
518
519 (defun robinson ()
520   (interactive)
521   (elscreen-create)
522   (find-file (expand-file-name "~/sync/good-things.txt"))
523   (split-window-horizontally)
524   (next-window)
525   (find-file (expand-file-name "~/sync/bad-things.txt"))
526   (next-window))
527 (define-key ctl-x-map "MR" #'robinson)
528
529 ;; Emacs Calc
530 (add-hook 'calc-start-hook
531           (lambda ()
532             (if (functionp 'paren-deactivate)
533                 (paren-deactivate))))
534 (add-hook 'calc-end-hook
535           (lambda ()
536             (if (functionp 'paren-activate)
537                 (paren-activate))))
538
539 ;;; emacs-w3m
540 (autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
541 (autoload 'w3m-browse-url "w3m" "Browse url by w3m." t)
542 (autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
543 (autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
544 (autoload 'w3m-weather "w3m-weather" "Display weather report." t)
545 (autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)
546 (autoload 'w3m-namazu "w3m-namazu" "Search files with Namazu." t)
547
548 ;; pov-mode
549 (autoload 'pov-mode "pov-mode" "POV-Ray scene file mode" t)
550 (setq auto-mode-alist
551       (append '(("\\.pov$" . pov-mode)
552                 ("\\.inc$" . pov-mode)
553                 ) auto-mode-alist))
554
555 ;; End of user configuration ---------------------------------------------------
556
557 ;; emacs auto edit
558 (put 'narrow-to-region 'disabled nil)
559 (custom-set-variables
560  ;; custom-set-variables was added by Custom.
561  ;; If you edit it by hand, you could mess it up, so be careful.
562  ;; Your init file should contain only one such instance.
563  ;; If there is more than one, they won't work right.
564  '(Info-additional-directory-list
565    (quote
566     ("/sw/share/info" "/usr/local/info" "/usr/local/share/info")))
567  '(ac-ignore-case nil)
568  '(appt-display-format (quote window))
569  '(appt-message-warning-time 20)
570  '(browse-url-browser-function (quote browse-url-firefox))
571  '(canlock-password "a14fa4d2601465d55585c291fa8b3943e189e716")
572  '(clean-buffer-list-delay-general 7)
573  '(cleite:auto-refresh-interval nil)
574  '(cleite:measure-srpc-call-time t)
575  '(compilation-scroll-output (quote first-error))
576  '(completion-ignored-extensions
577    (quote
578     (".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")))
579  '(cperl-merge-trailing-else nil)
580  '(csv-align-style (quote auto))
581  '(default-frame-alist
582     (quote
583      ((tool-bar-lines . 0)
584       (menu-bar-lines . 1)
585       (width . 80)
586       (height . 25)
587       (right-fringe)
588       (left-fringe))))
589  '(ditz-find-issue-directory-automatically-flag t)
590  '(ecb-add-path-for-not-matching-files (quote (t)))
591  '(ecb-help-info-path "/sw/share/info/ecb.info")
592  '(ecb-layout-name "left14")
593  '(ecb-options-version "2.32")
594  '(ecb-show-sources-in-directories-buffer (quote always))
595  '(ecb-tip-of-the-day nil)
596  '(ecb-tree-buffer-style (quote ascii-guides))
597  '(ecb-windows-width 0.2)
598  '(electric-indent-mode nil)
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  '(midnight-mode t)
685  '(mouse-wheel-progessive-speed nil)
686  '(mouse-wheel-scroll-amount (quote (1 ((shift) . 5) ((control)))))
687  '(mpc-browser-tags
688    (quote
689     (Directory Genre Artist|Composer|Performer Album|Playlist)))
690  '(navi2ch-browse-url-browser-function (quote browse-url-firefox))
691  '(navi2ch-display-splash-screen nil)
692  '(navi2ch-list-moved-board-alist
693    (quote
694     (("http://mamono.2ch.net/ihou/" . "http://hideyoshi.2ch.net/ihou/"))))
695  '(navi2ch-mona-face-variable (quote navi2ch-mona12-face))
696  '(navi2ch-mona-on-message-mode t)
697  '(newsticker-html-renderer (quote w3m-region))
698  '(newsticker-url-list nil)
699  '(newsticker-url-list-defaults
700    (quote
701     (("slashdot" "http://slashdot.org/index.rss" nil 3600))))
702  '(ns-command-modifier (quote meta))
703  '(nxml-auto-insert-xml-declaration-flag t)
704  '(nxml-slash-auto-complete-flag t)
705  '(org-replace-disputed-keys t)
706  '(rcirc-server-alist (quote (("irc1.ymir.jp" :nick "PHO`cons" nil nil))))
707  '(riece-layout "default")
708  '(riece-layout-alist
709    (quote
710     (("middle-right" riece-configure-windows right middle)
711      ("middle-left" riece-configure-windows left middle)
712      ("top-right" riece-configure-windows right top)
713      ("top-left" riece-configure-windows left top)
714      ("bottom-right" riece-configure-windows right bottom)
715      ("bottom-left" riece-configure-windows left bottom)
716      ("top" riece-configure-windows-top)
717      ("spiral" riece-configure-windows-spiral)
718      ("default" . "middle-right"))))
719  '(riece-others-buffer-mode nil)
720  '(rng-schema-locating-files
721    (quote
722     ("schemas.xml" "~/share/nxml/schemas.xml" "/usr/pkg/share/emacs/site-lisp/nxml-mode/schema/schemas.xml")))
723  '(rst-level-face-base-light 50)
724  '(safe-local-variable-values (quote ((todo-categories "Todo" "Todo" "Todo" "Todo"))))
725  '(select-enable-clipboard t)
726  '(tramp-auto-save-directory "/tmp/tramp-auto-save")
727  '(tramp-completion-reread-directory-timeout 2 nil (tramp))
728  '(tramp-default-host "localhost" nil (tramp))
729  '(tramp-default-method "sshx" nil (tramp))
730  '(uniquify-buffer-name-style (quote forward) nil (uniquify))
731  '(uniquify-trailing-separator-p t)
732  '(vc-cvs-diff-switches (quote ("-u")))
733  '(vc-cvs-stay-local nil)
734  '(w3m-bookmark-file-coding-system (quote utf-8))
735  '(w3m-coding-system (quote utf-8))
736  '(w3m-coding-system-priority-list (quote (utf-8)))
737  '(w3m-default-coding-system (quote utf-8))
738  '(w3m-default-display-inline-images t)
739  '(w3m-file-coding-system (quote utf-8))
740  '(w3m-file-name-coding-system (quote utf-8))
741  '(w3m-fill-column 80)
742  '(w3m-input-coding-system (quote utf-8))
743  '(w3m-key-binding nil)
744  '(w3m-output-coding-system (quote utf-8))
745  '(w3m-terminal-coding-system (quote utf-8))
746  '(w3m-use-cookies t)
747  '(whitespace-global-modes (quote (not mew-draft-mode mew-summary-mode)))
748  '(whitespace-style
749    (quote
750     (face tabs trailing space-before-tab newline indentation empty space-after-tab)))
751  '(woman-cache-filename "~/.wmncach.el")
752  '(yaml-block-literal-electric-alist (quote ((62 . "-")))))
753 (custom-set-faces
754  ;; custom-set-faces was added by Custom.
755  ;; If you edit it by hand, you could mess it up, so be careful.
756  ;; Your init file should contain only one such instance.
757  ;; If there is more than one, they won't work right.
758  '(diff-added ((t (:inherit diff-changed :foreground "medium spring green" :weight extra-bold))))
759  '(diff-removed ((t (:foreground "gold3" :weight extra-bold))))
760  '(flyspell-incorrect ((t (:foreground "OrangeRed" :overline t))))
761  '(jaspace-highlight-tab-face ((((class color) (background dark)) (:foreground "gray70" :underline t))))
762  '(navi2ch-bm-new-unread-face ((t (:foreground "PaleGreen" :weight bold))))
763  '(navi2ch-bm-updated-cache-face ((t (:foreground "CornflowerBlue" :weight bold))))
764  '(navi2ch-bm-updated-unread-face ((t (:foreground "DarkSeaGreen3" :weight bold))))
765  '(textile-link-face ((t (:foreground "cyan"))))
766  '(textile-ol-bullet-face ((t (:foreground "dark orange"))))
767  '(textile-ul-bullet-face ((t (:foreground "deep sky blue"))))
768  '(which-func-face ((t (:background "black" :foreground "dark orange"))))
769  '(whitespace-empty ((t (:background "gray20" :foreground "firebrick"))))
770  '(whitespace-indentation ((t (:foreground "dimgray" :underline t))))
771  '(whitespace-line ((t (:background "gray20"))))
772  '(whitespace-tab ((t (:background "grey22" :foreground "dim gray" :underline (:color foreground-color :style wave))))))