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