]> 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 ;; Added by Package.el.  This must come before configurations of
4 ;; installed packages.  Don't delete this line.  If you don't want it,
5 ;; just comment it out by adding a semicolon to the start of the line.
6 ;; You may delete these explanatory comments.
7 (package-initialize)
8
9 ;; Load paths -----------------------------------------------------------------
10 (add-to-list 'load-path (expand-file-name "~/.elisp"))
11 (add-to-list 'load-path "/usr/local/share/emacs/site-lisp")
12
13 ;; Setting for encodings of the environment -----------------------------------
14 (set-locale-environment "en_US.UTF-8")
15 (set-default-coding-systems 'utf-8)
16 (set-terminal-coding-system 'utf-8)
17 (setq default-file-name-coding-system 'utf-8)
18 (set-keyboard-coding-system 'utf-8)
19 (set-clipboard-coding-system 'utf-8)
20
21 ;; Settings for the Emacs itself ----------------------------------------------
22 (setq truncate-partial-width-windows t)
23 (setq make-backup-files nil)
24
25 (setq read-file-name-completion-ignore-case t)
26 (tool-bar-mode nil)
27
28 (global-set-key (kbd "C-\\" ) 'toggle-input-method)
29 (global-set-key (kbd "C-RET") 'completion-at-point)
30 (global-set-key (kbd "C-<return>") 'completion-at-point)
31
32 (unless window-system
33   (normal-erase-is-backspace-mode t))
34
35 (setq-default tab-width 4)
36 (global-font-lock-mode t)
37
38 (auto-compression-mode t)
39 (which-function-mode t)
40 (setq visible-bell t)
41 (setq ring-bell-function (lambda ()))
42
43 (require 'server)
44 (if (server-running-p)
45     (message "Warning: server %S is already running." server-name)
46   (server-start))
47
48 ;; windmove
49 (windmove-default-keybindings)
50
51 ;; file renaming
52 ;; Originally from stevey, adapted to support moving to a new directory.
53 (defun rename-file-and-buffer (new-name)
54   "Renames both current buffer and file it's visiting to NEW-NAME."
55   (interactive
56    (progn
57      (if (not (buffer-file-name))
58          (error "Buffer '%s' is not visiting a file!" (buffer-name)))
59      ;; Disable ido auto merge since it too frequently jumps back to the original
60      ;; file name if you pause while typing. Reenable with C-z C-z in the prompt.
61      (let ((ido-auto-merge-work-directories-length -1))
62        (list (read-file-name (format "Rename %s to: " (file-name-nondirectory
63                                                        (buffer-file-name))))))))
64   (if (equal new-name "")
65       (error "Aborted rename"))
66   (setq new-name (if (file-directory-p new-name)
67                      (expand-file-name (file-name-nondirectory
68                                         (buffer-file-name))
69                                        new-name)
70                    (expand-file-name new-name)))
71   ;; Only rename if the file was saved before. Update the
72   ;; buffer name and visited file in all cases.
73   (if (file-exists-p (buffer-file-name))
74       (rename-file (buffer-file-name) new-name 1))
75   (let ((was-modified (buffer-modified-p)))
76     ;; This also renames the buffer, and works with uniquify
77     (set-visited-file-name new-name)
78     (if was-modified
79         (save-buffer)
80       ;; Clear buffer-modified flag caused by set-visited-file-name
81       (set-buffer-modified-p nil)))
82
83   (setq default-directory (file-name-directory new-name))
84
85   (message "Renamed to %s." new-name))
86
87 ;; Host specific configuration ------------------------------------------------
88 (let ((host (system-name)))
89   (cond ((equal host "aria.cielonegro.org")
90          (progn
91            ;; Use firefox as the default browser.
92            (setq browse-url-firefox-program "/usr/pkg/bin/firefox")
93            ;; Specify how to connect to some of the remote servers.
94            (setq tramp-default-proxies-alist nil)
95            (mapcar #'(lambda (proxy)
96                        (add-to-list 'tramp-default-proxies-alist proxy))
97             '( ("rd8"                                 nil "/sshx:pho@seras.vpn.cielonegro.org:")
98                ("pho\\.dev\\.office\\.ymir\\.co\\.jp" nil "/sshx:pho@seras.vpn.cielonegro.org:")
99                ))))))
100
101 ;; Settings for Browser --------------------------------------------------------
102 (global-set-key "\C-xm" 'browse-url-at-point)
103
104 ;; Setting for the Mode Line ---------------------------------------------------
105 (line-number-mode t)
106 (column-number-mode t)
107 (display-time)
108
109 ;; Setting for Frames ----------------------------------------------------------
110 (when window-system
111   (let ((host (system-name)))
112     (cond ((equal host "seras")
113            (set-frame-font "Dejavu Sans Mono 11" t))
114
115           ((equal host "yukari.cielonegro.org")
116            (set-frame-font "Dejavu Sans Mono 11" t))
117
118           ((equal host "aria.cielonegro.org")
119            (progn
120              (set-frame-font "Dejavu Sans Mono 13" t)
121              ;; Emacs 24.4.1 somehow gets very slow when the following
122              ;; lines are uncommented.
123              ;;(set-fontset-font nil 'japanese-jisx0208 "さざなみゴシック")
124              ;;(set-fontset-font nil 'japanese-jisx0212 "さざなみゴシック")
125              ;;(set-fontset-font nil 'katakana-jisx0201 "さざなみゴシック")
126              )))))
127
128 ;; Setting for Packages --------------------------------------------------------
129 (defun require-if-present (feature)
130   (condition-case e
131       (require feature)
132     (file-error
133      (if (equal (cadr e) "Cannot open load file")
134          (message "Warning: feature %s is absent" feature) ; warn and ignore
135        (apply 'signal (car e) (cdr e)))))) ; rethrow
136
137 (defun load-if-present (file)
138   (condition-case e
139       (load file)
140     (file-error
141      (if (equal (cadr e) "Cannot open load file")
142          (message "Warning: file named %s is absent" file) ; warn and ignore
143        (apply 'signal (car e) (cdr e)))))) ; rethrow
144
145 (defun load-file-if-present (path)
146   (if (file-exists-p path)
147       (load-file path)
148     (message "Warning: file %s is absent" path)))
149
150 ;; cmake
151 (autoload 'cmake-mode "cmake-mode" nil t)
152 (add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
153 (add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))
154
155 ;; ditz
156 (require-if-present 'ditz)
157
158 ;; flycheck
159 (require-if-present 'flycheck)
160 ;(if (featurep 'flycheck)
161 ;    (global-flycheck-mode))
162
163 (require-if-present 'flycheck-inline)
164 (if (featurep 'flycheck-inline)
165     (with-eval-after-load 'flycheck
166       (add-hook 'flycheck-mode-hook #'flycheck-inline-mode)))
167
168 ;; flyspell
169 (require-if-present 'flyspell)
170
171 ;; glsl
172 (autoload 'glsl-mode "glsl-mode" nil t)
173 (add-to-list 'auto-mode-alist '("\\.glsl\\'" . glsl-mode))
174 (add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode))
175 (add-to-list 'auto-mode-alist '("\\.frag\\'" . glsl-mode))
176 (add-to-list 'auto-mode-alist '("\\.geom\\'" . glsl-mode))
177
178 ;; hengband-pickpref
179 (autoload 'hengband-pickpref-mode "hengband-pickpref-mode" nil t)
180
181 ;; jaspace
182 (require-if-present 'jaspace)
183
184 ;; pkgdiff
185 (add-to-list 'load-path "~/sandbox/_editors/emacs-pkgdiff")
186 (autoload 'pkgvi "pkgdiff" "Edit a copy of specified file." t)
187 (autoload 'pkgdiff "pkgdiff" "Show differences from a backup file." t)
188
189 ;; rust
190 (autoload 'rust-mode "rust-mode" nil t)
191 (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
192
193 (require-if-present 'flycheck-rust)
194 (if (featurep 'flycheck-rust)
195     (with-eval-after-load 'rust-mode
196       (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)))
197
198 ;; session
199 (require-if-present 'session)
200 (if (featurep 'session)
201     (session-initialize))
202
203 ;; mediawiki
204 (require-if-present 'mediawiki)
205
206 ;; midnight
207 (require-if-present 'midnight)
208
209 ;; multi-term
210 (autoload 'multi-term "multi-term"
211   "Create new term buffer.
212 Will prompt you shell name when you type `C-u' before this command." t)
213
214 ;; auto-complete
215 (require-if-present 'auto-complete-config)
216 (if (featurep 'auto-complete-config)
217     (progn
218       (add-to-list 'ac-dictionary-directories
219                    "/usr/pkg/share/emacs/site-lisp/auto-complete/ac-dict")
220       (mapcar (lambda (mode)
221                 (add-to-list 'ac-modes mode))
222               '(autoconf-mode
223                 erlang-mode
224                 sql-mode))
225       (setq ac-modes (remove 'css-mode ac-modes))
226       (add-hook 'erlang-mode-hook
227                 (lambda ()
228                   (add-to-list 'ac-sources 'ac-source-semantic)))
229       (ac-config-default)))
230
231 ;; mic-paren
232 (require-if-present 'mic-paren)
233 (if (featurep 'mic-paren)
234     (paren-activate))
235
236 ;; elscreen
237 (require-if-present 'elscreen)
238 (require-if-present 'elscreen-w3m)
239 (if (featurep 'elscreen)
240     (elscreen-start))
241
242 ;; undo-tree
243 (require-if-present 'undo-tree)
244 (if (featurep 'undo-tree)
245     (global-undo-tree-mode))
246
247 ;; MPC
248 ;(require-if-present 'mpc-autoloads)
249
250 ;; rst-mode
251 (autoload 'rst-mode "rst"
252   "mode for editing reStructuredText documents" t)
253 (setq auto-mode-alist
254       (append '(("\\.rst$" . rst-mode)
255                 ("\\.rest$" . rst-mode)) auto-mode-alist))
256
257 ;; graphviz-dot-mode
258 (autoload 'graphviz-dot-mode "graphviz-dot-mode"
259   "Major mode for the dot language." t)
260 (add-to-list 'auto-mode-alist '("\\.dot\\'" . graphviz-dot-mode))
261 (add-to-list 'auto-mode-alist '("\\.gv\\'" . graphviz-dot-mode))
262
263 ;; textile-mode
264 (autoload 'textile-mode "textile-mode"
265   "Major mode for editing Textile documents." t)
266 (add-to-list 'auto-mode-alist '("\\.textile\\'" . textile-mode))
267
268 ;; xsltxt-mode
269 (autoload 'xsltxt-mode "xsltxt-mode" "Major mode for xsltxt." t)
270 (add-to-list 'auto-mode-alist '("\\.xsltxt$" . xsltxt-mode))
271
272 ;; lua-mode
273 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
274 (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
275
276 ;; projectile-mode
277 (require-if-present 'projectile)
278 (if (featurep 'projectile)
279     (progn
280       (projectile-mode +1)
281       (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)))
282
283 ;; protobuf-mode
284 (autoload 'protobuf-mode "protobuf-mode")
285 (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
286
287 ;; scala-mode2
288 (add-to-list 'load-path "~/sandbox/_scala/scala-mode2")
289 (require-if-present 'scala-mode2)
290
291 ;; sbt-mode
292 (add-to-list 'load-path "~/sandbox/_scala/sbt-mode")
293 (require-if-present 'sbt-mode)
294
295 ;; twittering-mode
296 (require-if-present 'twittering-mode)
297 (setq twittering-username "phonohawk")
298
299 ;; riece
300 (autoload 'riece "riece" "Start Riece" t)
301 (add-hook 'riece-after-load-startup-hook
302           #'(lambda ()
303               (add-to-list 'riece-addons 'riece-alias)
304               (add-to-list 'riece-addons 'riece-skk-kakutei)
305               (add-to-list 'riece-addons 'riece-keyword)
306               (add-to-list 'riece-addons 'riece-ctlseq)))
307
308 ;; CEDET
309 (add-to-list 'load-path "/usr/pkg/share/emacs/cedet/common")
310 (require-if-present 'cedet)
311
312 ;; ECB
313 (require-if-present 'ecb-autoloads)
314 (let* ((hosts '( ("yukari.cielonegro.org" .
315                   ( ("~/sandbox/_games/acid-rain" "acid rain")
316                     ("~/sandbox/_games/Natural-Mystic-Shaders" "Natural Mystic")
317                     ))))
318        (paths (cdr (assoc (system-name) hosts))))
319   (setq ecb-source-path paths))
320
321 ;; leim
322 (require-if-present 'gaelic)
323
324 ;; rnc-mode
325 (autoload 'rnc-mode "rnc-mode")
326 (add-to-list 'auto-mode-alist '("\\.rnc\\'" . rnc-mode))
327
328 ;; bookmark
329 (setq bookmark-sort-flag nil)
330
331 ;; sudoku
332 (autoload 'sudoku "sudoku" "The Sudoku" t)
333
334 ;; mew
335 (autoload 'mew "mew" "Mew" t)
336
337 ;; cleite
338 (autoload 'cleite "cleite" "Cleite RSS Aggregator -- Emacs Interface" t)
339
340 ;; javascript
341 (add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
342 (add-to-list 'auto-mode-alist '("\\.json$" . javascript-mode))
343
344 ;; typescript
345 (autoload 'typescript-mode "typescript-mode"
346   "Major mode for editing typescript." t)
347 (add-to-list 'auto-mode-alist '("\\.ts$" . typescript-mode))
348
349 ;; vimrc
350 (autoload 'vimrc-mode "vimrc-mode"
351   "Major mode for editing `.vimrc', `xxx.vim' and `.exrc' files." t)
352 (add-to-list 'auto-mode-alist '("\\.vim\\(rc\\)?$" . vimrc-mode))
353
354 ;; ido
355 (require 'ido)
356 (ido-mode t)
357
358 ;; sokoban
359 (autoload 'sokoban "sokoban.el" "Start a new game of Sokoban." t)
360 (autoload 'sokoban-mode "sokoban.el" "Play Sokoban in current buffer." t)
361 (setq sokoban-playerfiles-dir "/usr/local/var/games/emacs-sokoban")
362
363 ;; nXML
364 (load-file-if-present "/usr/pkg/share/emacs/site-lisp/nxml-mode/rng-auto.el")
365 (defalias 'xml-mode 'nxml-mode)
366 (add-to-list 'auto-mode-alist '("\\.xml$" . nxml-mode))
367 (add-to-list 'auto-mode-alist '("\\.xi$" . nxml-mode))
368 (add-to-list 'auto-mode-alist '("\\.rdf$" . nxml-mode))
369 (add-to-list 'auto-mode-alist '("\\.rng$" . nxml-mode))
370
371 ;; sstp
372 (autoload 'sstp-mode "sstp" "SSTP Editing Major-Mode" t)
373
374 ;; ruby-mode
375 (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files")
376 (setq auto-mode-alist
377       (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
378 (setq interpreter-mode-alist (append '(("ruby" .ruby-mode))
379                                      interpreter-mode-alist))
380 (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process")
381 (autoload 'inf-ruby-keys "inf-ruby" "set local key defs for inf-ruby in ruby-mode")
382 (add-hook 'ruby-mode-hook
383           '(lambda ()
384             (inf-ruby-keys)
385           ))
386
387 ;; Haskell
388 (autoload 'haskell-mode "haskell-mode"
389   "Major mode for editing Haskell scripts." t)
390 (autoload 'literate-haskell-mode "haskell-mode"
391   "Major mode for editing literate Haskell scripts." t)
392
393 (autoload 'run-haskell "inf-haskell" "" t)
394 (autoload 'switch-to-haskell "inf-haskell" "" t)
395 (autoload 'inferior-haskell-load-file "inf-haskell" "" t)
396 (autoload 'inferior-haskell-type "inf-haskell" "" t)
397 (autoload 'inferior-haskell-info "inf-haskell" "" t)
398 (autoload 'inferior-haskell-find-definition "inf-haskell" "" t)
399 (autoload 'inferior-haskell-find-haddock "inf-haskell" "" t)
400
401 (add-to-list 'auto-mode-alist '("\\.hs$" . haskell-mode))
402 (add-to-list 'auto-mode-alist '("\\.hsc$" . haskell-mode))
403
404 (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
405 (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
406 (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
407
408 ;(add-hook 'haskell-mode-hook #'flycheck-haskell-setup)
409
410 (load-if-present "~/sandbox/_input-method/emacs-haskell-unicode-input-method/haskell-unicode-input-method")
411  (add-hook 'haskell-mode-hook
412    (lambda () (set-input-method "haskell-unicode")))
413
414 ;; Hoogle
415 (autoload 'hoogle-lookup "hoogle" "Hoogle" t)
416 (global-set-key (kbd "C-c h") 'hoogle-lookup)
417
418 ;; c-mode
419 (mapcar (lambda (hook)
420       (add-hook hook
421             (lambda () (c-set-style "user"))))
422     '(c-mode-hook
423       c++-mode-hook
424       objc-mode-hook
425       java-mode-hook))
426
427 ;; EmacsWiki
428 (autoload 'emacs-wiki-find-file "emacs-wiki" "Emacs Wiki" t)
429 (defalias 'wiki 'emacs-wiki-find-file)
430
431 ;; cperl
432 (defalias 'perl-mode 'cperl-mode)
433 (setq cperl-indent-level 4)
434 (setq cperl-indent-parens-as-block t)
435
436 ;; Erlang
437 (require-if-present 'erlang-start)
438 (setq erlang-electric-commands nil)
439
440 ;; SKK
441 (require-if-present 'skk-autoloads)
442 (if (featurep 'skk-autoloads)
443         (progn
444           (require-if-present 'skk-study)
445           (global-set-key "\C-x\C-j" 'skk-mode)
446           (global-set-key "\C-xj" 'skk-auto-fill-mode)
447           (global-set-key "\C-xt" 'skk-tutorial)
448           (setq skk-use-jisx0201-input-method t)
449           (setq skk-rom-kana-rule-list
450                         '(("@" nil "@")
451                           ("wi" nil ("ヰ" . "ゐ"))
452                           ("we" nil ("ヱ" . "ゑ"))
453                           ;;("hh" "h" ("ン" . "ん"))
454                           ;;("mm" "m" ("ン" . "ん"))
455                           ("zx" nil ("ゝ" . "ヽ"))
456                           ("zc" nil ("ゞ" . "ヾ"))))
457           (set-input-method 'japanese-skk))) ; INPUT METHOD
458
459 ;; navi2ch
460 (autoload 'navi2ch "navi2ch" "Navigator for 2ch for Emacs" t)
461
462 ;; migemo
463 ;(require-if-present 'migemo)
464 ;(setq migemo-isearch-enable-p nil)
465
466 ;; tiarra-conf
467 (setq load-path (cons (expand-file-name "~/sandbox/Tiarra") load-path))
468 (autoload 'tiarra-conf-mode "tiarra-conf" "tiarra.conf editing mode" t)
469
470 ;; po-mode
471 (autoload 'po-mode "po-mode")
472 (setq auto-mode-alist
473       (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode)
474         auto-mode-alist))
475
476 ;; csv-mode
477 (autoload 'csv-mode "csv-mode"
478   "Major mode for editing comma-separated value files." t)
479 (add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
480
481 ;; tsv-mode
482 (autoload 'tsv-mode "tsv-mode" "A mode to edit table like file" t)
483 (autoload 'tsv-normal-mode "tsv-mode" "A minor mode to edit table like file" t)
484 (setq tsv-write-annotation nil)
485 (setq tsv-separator-list '("\t"))
486 ;(add-to-list 'auto-mode-alist '("\\.[Tt][Ss][Vv]\\'" . tsv-mode))
487
488 ;; markdown-mode
489 ;; http://jblevins.org/projects/markdown-mode/
490 (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t)
491 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
492
493 ;; yaml-mode
494 (autoload 'yaml-mode "yaml-mode"
495   "Major mode for editing YAML files." t)
496 (add-to-list 'auto-mode-alist '("\\.ya?ml$"  . yaml-mode))
497
498 ;; less-css-mode
499 (autoload 'less-css-mode "less-css-mode" "Major mode for editing LESS files" t)
500 (add-to-list 'auto-mode-alist '("\\.less\\'" . less-css-mode))
501
502 ;; Troublesome Tasks
503 (if (equal (system-name) "seras")
504     (progn
505       (defun edit-troublesome-tasks ()
506         (interactive)
507         (elscreen-create)
508         (find-file (expand-file-name "~/var/troublesome-tasks.txt")))
509       (define-key ctl-x-map "MT" #'edit-troublesome-tasks)))
510
511 ;; ChangeLog
512 (setq user-full-name "PHO")
513 (setq user-mail-address "pho@cielonegro.org")
514
515 (defun memo ()
516   (interactive)
517   (add-change-log-entry nil (expand-file-name "~/sync/memo.txt")))
518 (define-key ctl-x-map "MM" #'memo)
519
520 (defun depression ()
521   (interactive)
522   (add-change-log-entry nil (expand-file-name "~/sync/depression.txt")))
523 (define-key ctl-x-map "MD" #'depression)
524
525 (defun plant ()
526   (interactive)
527   (add-change-log-entry nil (expand-file-name "~/sync/plant.txt")))
528 (define-key ctl-x-map "MP" #'plant)
529
530 (defun robinson ()
531   (interactive)
532   (elscreen-create)
533   (find-file (expand-file-name "~/sync/good-things.txt"))
534   (split-window-horizontally)
535   (next-window)
536   (find-file (expand-file-name "~/sync/bad-things.txt"))
537   (next-window))
538 (define-key ctl-x-map "MR" #'robinson)
539
540 ;; Emacs Calc
541 (add-hook 'calc-start-hook
542           (lambda ()
543             (if (functionp 'paren-deactivate)
544                 (paren-deactivate))))
545 (add-hook 'calc-end-hook
546           (lambda ()
547             (if (functionp 'paren-activate)
548                 (paren-activate))))
549
550 ;;; emacs-w3m
551 (autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
552 (autoload 'w3m-browse-url "w3m" "Browse url by w3m." t)
553 (autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
554 (autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
555 (autoload 'w3m-weather "w3m-weather" "Display weather report." t)
556 (autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)
557 (autoload 'w3m-namazu "w3m-namazu" "Search files with Namazu." t)
558
559 ;; pov-mode
560 (autoload 'pov-mode "pov-mode" "POV-Ray scene file mode" t)
561 (setq auto-mode-alist
562       (append '(("\\.pov$" . pov-mode)
563                 ("\\.inc$" . pov-mode)
564                 ) auto-mode-alist))
565
566 ;; End of user configuration ---------------------------------------------------
567
568 ;; emacs auto edit
569 (put 'narrow-to-region 'disabled nil)
570 (custom-set-variables
571  ;; custom-set-variables was added by Custom.
572  ;; If you edit it by hand, you could mess it up, so be careful.
573  ;; Your init file should contain only one such instance.
574  ;; If there is more than one, they won't work right.
575  '(ac-ignore-case nil)
576  '(appt-display-format (quote window))
577  '(appt-message-warning-time 20)
578  '(browse-url-browser-function (quote browse-url-firefox))
579  '(canlock-password "a14fa4d2601465d55585c291fa8b3943e189e716")
580  '(clean-buffer-list-delay-general 7)
581  '(cleite:auto-refresh-interval nil)
582  '(cleite:measure-srpc-call-time t)
583  '(compilation-scroll-output (quote first-error))
584  '(completion-ignored-extensions
585    (quote
586     (".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")))
587  '(cperl-merge-trailing-else nil)
588  '(csv-align-style (quote auto))
589  '(custom-enabled-themes (quote (gnome2)))
590  '(custom-safe-themes
591    (quote
592     ("64affc3597b4271ba6b0b428777d616cfb20d8f7f147dbd00f1de220b2b59bbf" "06e0662b31a2ae8da5c6b5e9a05b25fabd1dc8dd3c3661ac194201131cafb080" default)))
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 "/usr/pkg/info/ecb.info")
604  '(ecb-layout-name "left7")
605  '(ecb-options-version "2.50")
606  '(ecb-show-sources-in-directories-buffer (quote always))
607  '(ecb-tip-of-the-day nil)
608  '(ecb-tree-buffer-style (quote image))
609  '(ecb-windows-width 0.2)
610  '(electric-indent-mode nil)
611  '(elscreen-display-tab t)
612  '(global-whitespace-mode t)
613  '(graphviz-dot-auto-indent-on-newline nil)
614  '(graphviz-dot-auto-indent-on-semi nil)
615  '(haskell-program-name "ghci")
616  '(ido-enable-flex-matching t)
617  '(ido-everywhere t)
618  '(ido-ignore-files
619    (quote
620     ("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./" "\\.ttc")))
621  '(ido-work-directory-list-ignore-regexps (quote ("^\\(/mnt/ibm/\\|/Volumes/IBM80GB/\\)")))
622  '(indent-tabs-mode nil)
623  '(ispell-dictionary "english")
624  '(jabber-nickname "PHO")
625  '(jabber-resource "emacs")
626  '(jabber-server "jabber.jp")
627  '(jabber-username "phonohawk")
628  '(js2-auto-indent-flag nil)
629  '(js2-basic-offset 4)
630  '(js2-indent-on-enter-key nil)
631  '(js2-mirror-mode nil)
632  '(js2-use-font-lock-faces t)
633  '(lua-indent-level 4)
634  '(makefile-mode-hook (quote ((lambda nil (set-variable (quote tab-width) 8)))))
635  '(markdown-live-preview-delete-export (quote delete-on-export))
636  '(mediawiki-site-alist
637    (quote
638     (("Wikipedia" "http://en.wikipedia.org/w/" "username" "password" "Main Page")
639      ("YmirDev" "https://ymirlink:santamo@update.forcast.jp/fcdiv/mwiki/" "PHO" "" "メインページ"))))
640  '(mew-field-spec
641    (quote
642     (("^Resent-\\(From\\|To\\|Cc\\|Date\\)" t mew-face-header-important mew-face-header-important)
643      ("^Subject:$" t mew-face-header-important mew-face-header-subject)
644      ("^From:$" t mew-face-header-important mew-face-header-from)
645      ("^\\(To\\|Apparently-To\\):$" t mew-face-header-important mew-face-header-to)
646      ("^\\(Cc\\|Dcc\\|Bcc\\):$" t mew-face-header-important mew-face-header-to)
647      ("^Newsgroups:$" t mew-face-header-important mew-face-header-to)
648      ("^Date:$" t mew-face-header-important mew-face-header-date)
649      ("^Reply-To:$" t)
650      ("^X-Mailer:$" t)
651      ("^X-Mew:$" t mew-face-header-important mew-face-header-xmew)
652      ("^\\(Received\\|Return-Path\\|Sender\\|Errors-To\\):$" nil)
653      ("^\\(Path\\|Distribution\\|Xref\\):$" nil)
654      ("^NNTP-Posting-" nil)
655      ("^\\(Message-Id\\|Posted\\|In-Reply-To\\|References\\|Precedence\\):$" nil)
656      ("^Delivered-" nil)
657      ("^List-" nil)
658      ("^\\(Mime-Version\\|Lines\\):$" nil)
659      ("^From$" nil)
660      ("^Status:$" nil)
661      ("^Face:$" nil mew-face-header-private mew-face-header-marginal)
662      ("^X-Text-Classification:$" t mew-face-header-important mew-face-header-important)
663      ("^X-POPFile-Link:$" t mew-face-header-important mew-face-body-url)
664      ("^\\(X\\|Original\\)-" nil mew-face-header-private mew-face-header-marginal))))
665  '(mew-refile-guess-alist
666    (quote
667     (("From:"
668       ("noreply@adc1.apple.com" "+mm/adc")
669       ("mag2 ID 0000022139" "+mm/2ch")
670       ("noreply@sourceforge.net" "+from/sf-net"))
671      ("Subject:"
672       ("w3m-dev" "+ml/w3m-dev"))
673      ("To:"
674       ("glasgow-haskell-users@haskell.org" "+ml/ghc-users")
675       ("fink-devel@lists.sourceforge.net" "+ml/fink-devel"))
676      ("Reply-To:"
677       ("yun@kokonoe.com" "+mm/kokonoe"))
678      ("Cc:"
679       ("glasgow-haskell-users@haskell.org" "+ml/ghc-users")))))
680  '(mew-scan-fields
681    (quote
682     ("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")))
683  '(mew-spam: "X-Text-Classification:")
684  '(mew-summary-form
685    (quote
686     (type
687      (5 date)
688      " "
689      (14 from)
690      " " t
691      (14 x-classification)
692      " "
693      (30 subj)
694      "|"
695      (0 body))))
696  '(midnight-mode t)
697  '(mouse-wheel-progessive-speed nil)
698  '(mouse-wheel-scroll-amount (quote (1 ((shift) . 5) ((control)))))
699  '(mpc-browser-tags
700    (quote
701     (Directory Genre Artist|Composer|Performer Album|Playlist)))
702  '(navi2ch-browse-url-browser-function (quote browse-url-firefox))
703  '(navi2ch-display-splash-screen nil)
704  '(navi2ch-list-moved-board-alist
705    (quote
706     (("http://mamono.2ch.net/ihou/" . "http://hideyoshi.2ch.net/ihou/"))))
707  '(navi2ch-mona-face-variable (quote navi2ch-mona12-face))
708  '(navi2ch-mona-on-message-mode t)
709  '(newsticker-html-renderer (quote w3m-region))
710  '(newsticker-url-list nil)
711  '(newsticker-url-list-defaults
712    (quote
713     (("slashdot" "http://slashdot.org/index.rss" nil 3600))))
714  '(ns-command-modifier (quote meta))
715  '(nxml-auto-insert-xml-declaration-flag t)
716  '(nxml-slash-auto-complete-flag t)
717  '(org-replace-disputed-keys t)
718  '(package-archives
719    (quote
720     (("gnu" . "https://elpa.gnu.org/packages/")
721      ("melpa" . "https://melpa.org/packages/"))))
722  '(package-selected-packages
723    (quote
724     (color-theme-modern elscreen elscreen-multi-term projectile elixir-mode flycheck-haskell flycheck-inline flycheck-rust undo-tree auto-complete typescript-mode cargo toml-mode rust-mode)))
725  '(rcirc-server-alist (quote (("irc1.ymir.jp" :nick "PHO`cons" nil nil))))
726  '(riece-layout "default")
727  '(riece-layout-alist
728    (quote
729     (("middle-right" riece-configure-windows right middle)
730      ("middle-left" riece-configure-windows left middle)
731      ("top-right" riece-configure-windows right top)
732      ("top-left" riece-configure-windows left top)
733      ("bottom-right" riece-configure-windows right bottom)
734      ("bottom-left" riece-configure-windows left bottom)
735      ("top" riece-configure-windows-top)
736      ("spiral" riece-configure-windows-spiral)
737      ("default" . "middle-right"))))
738  '(riece-others-buffer-mode nil)
739  '(rng-schema-locating-files
740    (quote
741     ("schemas.xml" "~/share/nxml/schemas.xml" "/usr/pkg/share/emacs/site-lisp/nxml-mode/schema/schemas.xml")))
742  '(rst-level-face-base-light 50)
743  '(safe-local-variable-values (quote ((todo-categories "Todo" "Todo" "Todo" "Todo"))))
744  '(select-enable-clipboard t)
745  '(session-use-package t nil (session))
746  '(tramp-auto-save-directory "/tmp/tramp-auto-save")
747  '(tramp-completion-reread-directory-timeout 2)
748  '(tramp-default-host "localhost")
749  '(tramp-default-method "sshx")
750  '(uniquify-buffer-name-style (quote forward) nil (uniquify))
751  '(uniquify-trailing-separator-p t)
752  '(vc-cvs-diff-switches (quote ("-u")))
753  '(vc-cvs-stay-local nil)
754  '(vc-handled-backends (quote (Git Hg)))
755  '(w3m-bookmark-file-coding-system (quote utf-8))
756  '(w3m-coding-system (quote utf-8))
757  '(w3m-coding-system-priority-list (quote (utf-8)))
758  '(w3m-default-coding-system (quote utf-8))
759  '(w3m-default-display-inline-images t)
760  '(w3m-file-coding-system (quote utf-8))
761  '(w3m-file-name-coding-system (quote utf-8))
762  '(w3m-fill-column 80)
763  '(w3m-input-coding-system (quote utf-8))
764  '(w3m-key-binding nil)
765  '(w3m-output-coding-system (quote utf-8))
766  '(w3m-terminal-coding-system (quote utf-8))
767  '(w3m-use-cookies t)
768  '(whitespace-global-modes (quote (not mew-draft-mode mew-summary-mode)))
769  '(whitespace-style
770    (quote
771     (face tabs trailing space-before-tab newline indentation empty space-after-tab)))
772  '(woman-cache-filename "~/.wmncach.el")
773  '(yaml-block-literal-electric-alist (quote ((62 . "-")))))
774 (custom-set-faces
775  ;; custom-set-faces was added by Custom.
776  ;; If you edit it by hand, you could mess it up, so be careful.
777  ;; Your init file should contain only one such instance.
778  ;; If there is more than one, they won't work right.
779  '(diff-added ((t (:inherit diff-changed :foreground "medium spring green" :weight extra-bold))))
780  '(diff-removed ((t (:foreground "gold3" :weight extra-bold))))
781  '(flyspell-incorrect ((t (:foreground "OrangeRed" :overline t))))
782  '(jaspace-highlight-tab-face ((((class color) (background dark)) (:foreground "gray70" :underline t))))
783  '(navi2ch-bm-new-unread-face ((t (:foreground "PaleGreen" :weight bold))))
784  '(navi2ch-bm-updated-cache-face ((t (:foreground "CornflowerBlue" :weight bold))))
785  '(navi2ch-bm-updated-unread-face ((t (:foreground "DarkSeaGreen3" :weight bold))))
786  '(org-level-1 ((t (:foreground "pale turquoise"))))
787  '(textile-link-face ((t (:foreground "cyan"))))
788  '(textile-ol-bullet-face ((t (:foreground "dark orange"))))
789  '(textile-ul-bullet-face ((t (:foreground "deep sky blue"))))
790  '(which-func-face ((t (:background "black" :foreground "dark orange"))))
791  '(whitespace-empty ((t (:background "gray20" :foreground "firebrick"))))
792  '(whitespace-indentation ((t (:foreground "dimgray" :underline t))))
793  '(whitespace-line ((t (:background "gray20"))))
794  '(whitespace-tab ((t (:background "grey22" :foreground "dim gray" :underline (:color foreground-color :style wave))))))