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