]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_emacs_el
1d149cef97fab23eac4b3c9c64d0a60cec9fa30a
[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 ;; jaspace
179 (require-if-present 'jaspace)
180
181 ;; pkgdiff
182 (add-to-list 'load-path "~/sandbox/_editors/emacs-pkgdiff")
183 (autoload 'pkgvi "pkgdiff" "Edit a copy of specified file." t)
184 (autoload 'pkgdiff "pkgdiff" "Show differences from a backup file." t)
185
186 ;; rust
187 (autoload 'rust-mode "rust-mode" nil t)
188 (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
189
190 (require-if-present 'flycheck-rust)
191 (if (featurep 'flycheck-rust)
192     (with-eval-after-load 'rust-mode
193       (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)))
194
195 ;; session
196 (require-if-present 'session)
197 (if (featurep 'session)
198     (session-initialize))
199
200 ;; mediawiki
201 (require-if-present 'mediawiki)
202
203 ;; midnight
204 (require-if-present 'midnight)
205
206 ;; color-theme
207 (require-if-present 'color-theme)
208 (if (featurep 'color-theme)
209     (progn
210       (color-theme-initialize)
211       (color-theme-subtle-hacker)))
212
213 ;; multi-term
214 (autoload 'multi-term "multi-term"
215   "Create new term buffer.
216 Will prompt you shell name when you type `C-u' before this command." t)
217
218 ;; auto-complete
219 (require-if-present 'auto-complete-config)
220 (if (featurep 'auto-complete-config)
221     (progn
222       (add-to-list 'ac-dictionary-directories
223                    "/usr/pkg/share/emacs/site-lisp/auto-complete/ac-dict")
224       (mapcar (lambda (mode)
225                 (add-to-list 'ac-modes mode))
226               '(autoconf-mode
227                 erlang-mode
228                 sql-mode))
229       (setq ac-modes (remove 'css-mode ac-modes))
230       (add-hook 'erlang-mode-hook
231                 (lambda ()
232                   (add-to-list 'ac-sources 'ac-source-semantic)))
233       (ac-config-default)))
234
235 ;; mic-paren
236 (require-if-present 'mic-paren)
237 (if (featurep 'mic-paren)
238     (paren-activate))
239
240 ;; elscreen
241 (require-if-present 'elscreen)
242 (require-if-present 'elscreen-w3m)
243 (if (featurep 'elscreen)
244     (elscreen-start))
245
246 ;; undo-tree
247 (require-if-present 'undo-tree)
248 (if (featurep 'undo-tree)
249     (global-undo-tree-mode))
250
251 ;; MPC
252 ;(require-if-present 'mpc-autoloads)
253
254 ;; rst-mode
255 (autoload 'rst-mode "rst"
256   "mode for editing reStructuredText documents" t)
257 (setq auto-mode-alist
258       (append '(("\\.rst$" . rst-mode)
259                 ("\\.rest$" . rst-mode)) auto-mode-alist))
260
261 ;; graphviz-dot-mode
262 (autoload 'graphviz-dot-mode "graphviz-dot-mode"
263   "Major mode for the dot language." t)
264 (add-to-list 'auto-mode-alist '("\\.dot\\'" . graphviz-dot-mode))
265 (add-to-list 'auto-mode-alist '("\\.gv\\'" . graphviz-dot-mode))
266
267 ;; textile-mode
268 (autoload 'textile-mode "textile-mode"
269   "Major mode for editing Textile documents." t)
270 (add-to-list 'auto-mode-alist '("\\.textile\\'" . textile-mode))
271
272 ;; xsltxt-mode
273 (autoload 'xsltxt-mode "xsltxt-mode" "Major mode for xsltxt." t)
274 (add-to-list 'auto-mode-alist '("\\.xsltxt$" . xsltxt-mode))
275
276 ;; lua-mode
277 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
278 (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
279
280 ;; projectile-mode
281 (require-if-present 'projectile)
282 (if (featurep 'projectile)
283     (progn
284       (projectile-mode +1)
285       (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)))
286
287 ;; protobuf-mode
288 (autoload 'protobuf-mode "protobuf-mode")
289 (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
290
291 ;; scala-mode2
292 (add-to-list 'load-path "~/sandbox/_scala/scala-mode2")
293 (require-if-present 'scala-mode2)
294
295 ;; sbt-mode
296 (add-to-list 'load-path "~/sandbox/_scala/sbt-mode")
297 (require-if-present 'sbt-mode)
298
299 ;; twittering-mode
300 (require-if-present 'twittering-mode)
301 (setq twittering-username "phonohawk")
302
303 ;; riece
304 (autoload 'riece "riece" "Start Riece" t)
305 (add-hook 'riece-after-load-startup-hook
306           #'(lambda ()
307               (add-to-list 'riece-addons 'riece-alias)
308               (add-to-list 'riece-addons 'riece-skk-kakutei)
309               (add-to-list 'riece-addons 'riece-keyword)
310               (add-to-list 'riece-addons 'riece-ctlseq)))
311
312 ;; CEDET
313 (add-to-list 'load-path "/usr/pkg/share/emacs/cedet/common")
314 (require-if-present 'cedet)
315
316 ;; ECB
317 (require-if-present 'ecb-autoloads)
318 (let* ((hosts '( ("yukari.cielonegro.org" .
319                   ( ("~/sandbox/_games/acid-rain" "acid rain")
320                     ("~/sandbox/_games/Natural-Mystic-Shaders" "Natural Mystic")
321                     ))))
322        (paths (cdr (assoc (system-name) hosts))))
323   (setq ecb-source-path paths))
324
325 ;; leim
326 (require-if-present 'gaelic)
327
328 ;; rnc-mode
329 (autoload 'rnc-mode "rnc-mode")
330 (add-to-list 'auto-mode-alist '("\\.rnc\\'" . rnc-mode))
331
332 ;; bookmark
333 (setq bookmark-sort-flag nil)
334
335 ;; sudoku
336 (autoload 'sudoku "sudoku" "The Sudoku" t)
337
338 ;; mew
339 (autoload 'mew "mew" "Mew" t)
340
341 ;; cleite
342 (autoload 'cleite "cleite" "Cleite RSS Aggregator -- Emacs Interface" t)
343
344 ;; javascript
345 (add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
346 (add-to-list 'auto-mode-alist '("\\.json$" . javascript-mode))
347
348 ;; typescript
349 (autoload 'typescript-mode "typescript-mode"
350   "Major mode for editing typescript." t)
351 (add-to-list 'auto-mode-alist '("\\.ts$" . typescript-mode))
352
353 ;; vimrc
354 (autoload 'vimrc-mode "vimrc-mode"
355   "Major mode for editing `.vimrc', `xxx.vim' and `.exrc' files." t)
356 (add-to-list 'auto-mode-alist '("\\.vim\\(rc\\)?$" . vimrc-mode))
357
358 ;; ido
359 (require 'ido)
360 (ido-mode t)
361
362 ;; sokoban
363 (autoload 'sokoban "sokoban.el" "Start a new game of Sokoban." t)
364 (autoload 'sokoban-mode "sokoban.el" "Play Sokoban in current buffer." t)
365 (setq sokoban-playerfiles-dir "/usr/local/var/games/emacs-sokoban")
366
367 ;; nXML
368 (load-file-if-present "/usr/pkg/share/emacs/site-lisp/nxml-mode/rng-auto.el")
369 (defalias 'xml-mode 'nxml-mode)
370 (add-to-list 'auto-mode-alist '("\\.xml$" . nxml-mode))
371 (add-to-list 'auto-mode-alist '("\\.xi$" . nxml-mode))
372 (add-to-list 'auto-mode-alist '("\\.rdf$" . nxml-mode))
373 (add-to-list 'auto-mode-alist '("\\.rng$" . nxml-mode))
374
375 ;; sstp
376 (autoload 'sstp-mode "sstp" "SSTP Editing Major-Mode" t)
377
378 ;; ruby-mode
379 (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files")
380 (setq auto-mode-alist
381       (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
382 (setq interpreter-mode-alist (append '(("ruby" .ruby-mode))
383                                      interpreter-mode-alist))
384 (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process")
385 (autoload 'inf-ruby-keys "inf-ruby" "set local key defs for inf-ruby in ruby-mode")
386 (add-hook 'ruby-mode-hook
387           '(lambda ()
388             (inf-ruby-keys)
389           ))
390
391 ;; Haskell
392 (autoload 'haskell-mode "haskell-mode"
393   "Major mode for editing Haskell scripts." t)
394 (autoload 'literate-haskell-mode "haskell-mode"
395   "Major mode for editing literate Haskell scripts." t)
396
397 (autoload 'run-haskell "inf-haskell" "" t)
398 (autoload 'switch-to-haskell "inf-haskell" "" t)
399 (autoload 'inferior-haskell-load-file "inf-haskell" "" t)
400 (autoload 'inferior-haskell-type "inf-haskell" "" t)
401 (autoload 'inferior-haskell-info "inf-haskell" "" t)
402 (autoload 'inferior-haskell-find-definition "inf-haskell" "" t)
403 (autoload 'inferior-haskell-find-haddock "inf-haskell" "" t)
404
405 (add-to-list 'auto-mode-alist '("\\.hs$" . haskell-mode))
406 (add-to-list 'auto-mode-alist '("\\.hsc$" . haskell-mode))
407
408 (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
409 (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
410 (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
411
412 ;(add-hook 'haskell-mode-hook #'flycheck-haskell-setup)
413
414 (load-if-present "~/sandbox/_input-method/emacs-haskell-unicode-input-method/haskell-unicode-input-method")
415  (add-hook 'haskell-mode-hook
416    (lambda () (set-input-method "haskell-unicode")))
417
418 ;; Hoogle
419 (autoload 'hoogle-lookup "hoogle" "Hoogle" t)
420 (global-set-key (kbd "C-c h") 'hoogle-lookup)
421
422 ;; c-mode
423 (mapcar (lambda (hook)
424       (add-hook hook
425             (lambda () (c-set-style "user"))))
426     '(c-mode-hook
427       c++-mode-hook
428       objc-mode-hook
429       java-mode-hook))
430
431 ;; EmacsWiki
432 (autoload 'emacs-wiki-find-file "emacs-wiki" "Emacs Wiki" t)
433 (defalias 'wiki 'emacs-wiki-find-file)
434
435 ;; cperl
436 (defalias 'perl-mode 'cperl-mode)
437 (setq cperl-indent-level 4)
438 (setq cperl-indent-parens-as-block t)
439
440 ;; Erlang
441 (require-if-present 'erlang-start)
442 (setq erlang-electric-commands nil)
443
444 ;; SKK
445 (require-if-present 'skk-autoloads)
446 (if (featurep 'skk-autoloads)
447         (progn
448           (require-if-present 'skk-study)
449           (global-set-key "\C-x\C-j" 'skk-mode)
450           (global-set-key "\C-xj" 'skk-auto-fill-mode)
451           (global-set-key "\C-xt" 'skk-tutorial)
452           (setq skk-use-jisx0201-input-method t)
453           (setq skk-rom-kana-rule-list
454                         '(("@" nil "@")
455                           ("wi" nil ("ヰ" . "ゐ"))
456                           ("we" nil ("ヱ" . "ゑ"))
457                           ;;("hh" "h" ("ン" . "ん"))
458                           ;;("mm" "m" ("ン" . "ん"))
459                           ("zx" nil ("ゝ" . "ヽ"))
460                           ("zc" nil ("ゞ" . "ヾ"))))
461           (set-input-method 'japanese-skk))) ; INPUT METHOD
462
463 ;; navi2ch
464 (autoload 'navi2ch "navi2ch" "Navigator for 2ch for Emacs" t)
465
466 ;; migemo
467 (require-if-present 'migemo)
468 (setq migemo-isearch-enable-p nil)
469
470 ;; tiarra-conf
471 (setq load-path (cons (expand-file-name "~/sandbox/Tiarra") load-path))
472 (autoload 'tiarra-conf-mode "tiarra-conf" "tiarra.conf editing mode" t)
473
474 ;; po-mode
475 (autoload 'po-mode "po-mode")
476 (setq auto-mode-alist
477       (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode)
478         auto-mode-alist))
479
480 ;; csv-mode
481 (autoload 'csv-mode "csv-mode"
482   "Major mode for editing comma-separated value files." t)
483 (add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
484
485 ;; tsv-mode
486 (autoload 'tsv-mode "tsv-mode" "A mode to edit table like file" t)
487 (autoload 'tsv-normal-mode "tsv-mode" "A minor mode to edit table like file" t)
488 (setq tsv-write-annotation nil)
489 (setq tsv-separator-list '("\t"))
490 ;(add-to-list 'auto-mode-alist '("\\.[Tt][Ss][Vv]\\'" . tsv-mode))
491
492 ;; markdown-mode
493 ;; http://jblevins.org/projects/markdown-mode/
494 (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t)
495 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
496
497 ;; yaml-mode
498 (autoload 'yaml-mode "yaml-mode"
499   "Major mode for editing YAML files." t)
500 (add-to-list 'auto-mode-alist '("\\.ya?ml$"  . yaml-mode))
501
502 ;; less-css-mode
503 (autoload 'less-css-mode "less-css-mode" "Major mode for editing LESS files" t)
504 (add-to-list 'auto-mode-alist '("\\.less\\'" . less-css-mode))
505
506 ;; Troublesome Tasks
507 (if (equal (system-name) "seras")
508     (progn
509       (defun edit-troublesome-tasks ()
510         (interactive)
511         (elscreen-create)
512         (find-file (expand-file-name "~/var/troublesome-tasks.txt")))
513       (define-key ctl-x-map "MT" #'edit-troublesome-tasks)))
514
515 ;; ChangeLog
516 (setq user-full-name "PHO")
517 (setq user-mail-address "pho@cielonegro.org")
518
519 (defun memo ()
520   (interactive)
521   (add-change-log-entry nil (expand-file-name "~/sync/memo.txt")))
522 (define-key ctl-x-map "MM" #'memo)
523
524 (defun depression ()
525   (interactive)
526   (add-change-log-entry nil (expand-file-name "~/sync/depression.txt")))
527 (define-key ctl-x-map "MD" #'depression)
528
529 (defun plant ()
530   (interactive)
531   (add-change-log-entry nil (expand-file-name "~/sync/plant.txt")))
532 (define-key ctl-x-map "MP" #'plant)
533
534 (defun robinson ()
535   (interactive)
536   (elscreen-create)
537   (find-file (expand-file-name "~/sync/good-things.txt"))
538   (split-window-horizontally)
539   (next-window)
540   (find-file (expand-file-name "~/sync/bad-things.txt"))
541   (next-window))
542 (define-key ctl-x-map "MR" #'robinson)
543
544 ;; Emacs Calc
545 (add-hook 'calc-start-hook
546           (lambda ()
547             (if (functionp 'paren-deactivate)
548                 (paren-deactivate))))
549 (add-hook 'calc-end-hook
550           (lambda ()
551             (if (functionp 'paren-activate)
552                 (paren-activate))))
553
554 ;;; emacs-w3m
555 (autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
556 (autoload 'w3m-browse-url "w3m" "Browse url by w3m." t)
557 (autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
558 (autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
559 (autoload 'w3m-weather "w3m-weather" "Display weather report." t)
560 (autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)
561 (autoload 'w3m-namazu "w3m-namazu" "Search files with Namazu." t)
562
563 ;; pov-mode
564 (autoload 'pov-mode "pov-mode" "POV-Ray scene file mode" t)
565 (setq auto-mode-alist
566       (append '(("\\.pov$" . pov-mode)
567                 ("\\.inc$" . pov-mode)
568                 ) auto-mode-alist))
569
570 ;; End of user configuration ---------------------------------------------------
571
572 ;; emacs auto edit
573 (put 'narrow-to-region 'disabled nil)
574 (custom-set-variables
575  ;; custom-set-variables was added by Custom.
576  ;; If you edit it by hand, you could mess it up, so be careful.
577  ;; Your init file should contain only one such instance.
578  ;; If there is more than one, they won't work right.
579  '(ac-ignore-case nil)
580  '(appt-display-format (quote window))
581  '(appt-message-warning-time 20)
582  '(browse-url-browser-function (quote browse-url-firefox))
583  '(canlock-password "a14fa4d2601465d55585c291fa8b3943e189e716")
584  '(clean-buffer-list-delay-general 7)
585  '(cleite:auto-refresh-interval nil)
586  '(cleite:measure-srpc-call-time t)
587  '(compilation-scroll-output (quote first-error))
588  '(completion-ignored-extensions
589    (quote
590     (".svn/" "CVS/" ".o" "~" ".bin" ".lbin" ".so" ".a" ".ln" ".blg" ".bbl" ".elc" ".lof" ".glo" ".idx" ".lot" ".dvi" ".fmt" ".tfm" ".pdf" ".class" ".fas" ".lib" ".mem" ".x86f" ".sparcf" ".fasl" ".ufsl" ".fsl" ".dxl" ".pfsl" ".dfsl" ".lo" ".la" ".gmo" ".mo" ".toc" ".aux" ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" ".cps" ".fns" ".kys" ".pgs" ".tps" ".vrs" ".pyc" ".pyo" ".hi")))
591  '(cperl-merge-trailing-else nil)
592  '(csv-align-style (quote auto))
593  '(default-frame-alist
594     (quote
595      ((tool-bar-lines . 0)
596       (menu-bar-lines . 1)
597       (width . 80)
598       (height . 25)
599       (right-fringe)
600       (left-fringe))))
601  '(ditz-find-issue-directory-automatically-flag t)
602  '(ecb-add-path-for-not-matching-files (quote (t)))
603  '(ecb-help-info-path "/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     (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  '(font-lock-function-name-face ((t (:foreground "light steel blue" :weight bold))))
783  '(jaspace-highlight-tab-face ((((class color) (background dark)) (:foreground "gray70" :underline t))))
784  '(navi2ch-bm-new-unread-face ((t (:foreground "PaleGreen" :weight bold))))
785  '(navi2ch-bm-updated-cache-face ((t (:foreground "CornflowerBlue" :weight bold))))
786  '(navi2ch-bm-updated-unread-face ((t (:foreground "DarkSeaGreen3" :weight bold))))
787  '(org-level-1 ((t (:foreground "pale turquoise"))))
788  '(textile-link-face ((t (:foreground "cyan"))))
789  '(textile-ol-bullet-face ((t (:foreground "dark orange"))))
790  '(textile-ul-bullet-face ((t (:foreground "deep sky blue"))))
791  '(which-func-face ((t (:background "black" :foreground "dark orange"))))
792  '(whitespace-empty ((t (:background "gray20" :foreground "firebrick"))))
793  '(whitespace-indentation ((t (:foreground "dimgray" :underline t))))
794  '(whitespace-line ((t (:background "gray20"))))
795  '(whitespace-tab ((t (:background "grey22" :foreground "dim gray" :underline (:color foreground-color :style wave))))))