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