diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..8736905 --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,7 @@ +!! +!! .Xdefaults for koeki-u.ac.jp users +!! + + + +#include "/etc/skel/.Xdefaults.default" diff --git a/.Xdefaults.default b/.Xdefaults.default new file mode 100644 index 0000000..cff5afa --- /dev/null +++ b/.Xdefaults.default @@ -0,0 +1,177 @@ +OpenWindows.WorkspaceColor: #40a0c0 +OpenWindows.IconLocation: bottom +KTerm*openIm: true +kterm*allowSendEvents: true +kterm*vt100*translations: #override\ + Mod1F1: set-vt-font(d) \n\ + Mod1F2: set-vt-font(2) \n\ + Mod1F3: set-vt-font(3) \n\ + Mod1F4: set-vt-font(4) \n\ + Mod1F5: set-vt-font(5) \n\ + Mod1F6: set-vt-font(6) \n\ + Mod1F8: set-reverse-video(toggle) \n\ + Mod1F9: hard-reset() \n\ + Mod1e: set-kanji-mode(euc) \n\ + Mod1s: set-kanji-mode(sjis) \n\ + Ctrl: scroll-back(1,page) \n\ + Ctrl: scroll-forw(1,page) \n\ + : scroll-back(1,halfpage) \n\ + : scroll-forw(1,halfpage) \n\ + Shiftspace: begin-conversion(JAPANESE_CONVERSION) +kterm*vt100*ShiftF29: scroll-back(1,page) \n\ + ShiftF35: scroll-forw(1,page) \n\ + ShiftF31: select-cursor-start() \ + select-cursor-end(PRIMARY,CUT_BUFFER0) \n\ + ShiftF27: scroll-back(1,1) \n\ + ShiftF33: scroll-forw(1,1) +!kterm*ScrollBar: on +kterm*saveLines: 1000 +kterm*reverseVideo: on +xterm*reverseVideo: on +kterm*bordercolor: blue +!kterm*statusLine: True +!kterm*statusNormal: True +kterm*title: Kterm: +!kterm*titeInhibit: true +!kterm*romanKanaFont: a14 +kterm*KanjiMode: utf8 +!kterm*cursorColor: LemonChiffon +kterm*pointerColor: spring green +kterm*borderColor: cyan +kterm*background: gray25 +!kterm*textColor4: red +!KTerm.vt100.fontList: -microsoft-min-medium-r-normal--32-*-*-*-c-*-*-* +!KTerm.vt100.boldFontList: -microsoft-min-bold-r-normal--32-*-*-*-c-*-*-* +!kterm*fontList: -*-fixed-medium-normal--16-iso* +kterm*kanjiFont: kanji16 +kterm*font: 8x16 +kterm*foreground: ivory +kterm*VT100*textColor4: SkyBlue1 +kterm*VT100*textColor1: lightpink +canna*reverseVideo: on +emacs*reverseVideo: on +Kinput2*conversionEngine: canna +Kinput2*Iroha.irohafile: /home/okoma/yuuji/.canna +Kinput2*wnnEnvrc: /usr2/local/lib/ja_JP/wnnenvrc +Kinput2*modeLocation: tracktext +!Kinput2*XlcConversionStartKey: Ctrlsemicolon +Kinput2*SeparateConversion.input: false +Kinput2*selectionShell.input: false +Kinput2*auxShell.input: false +Kinput2*ConversionStartKeys: Ctrlo\n\ + Shiftspace\n\ + Kanji + +#include "script/Xdefaults/tgif" +Xpbiff*mhscan: on +Xpbiff*scan_command: scan -file +mule*lineSpace: 0+0 +Emacs*reverseVideo: off +xemacs*reverseVideo: off +!Emacs*foreground: ivory +!Emacs*background: gray20 +Emacs*cursorColor: ivory +Emacs*pointerColor: pink +Emacs*menubar.font: lucidasans-bolditalic-12 +Emacs*menubar.background: cadet blue +Emacs*menubar.foreground: black +Emacs*menu.popup.font: lucidasans-italic-12 +Emacs.italic.attributeBackground: cadet blue +xemacs.modeline.attributeForeground: gray20 +xemacs.modeline.attributeBackground: mistyrose +xemacs.default.attributeForeground: ivory +xemacs.default.attributeBackground: gray30 +!mule*foreground: black +!mule*background: wheat +! Mule-2.0 +Emacs*FontSetList: i,16,14,18,24,48 +Emacs*FontSet-14:\ + -*-fixed-medium-r-*--14-*-iso8859-1,\ + -*-fixed-medium-r-*--14-*-iso8859-2,\ + -*-fixed-medium-r-*--14-*-iso8859-3,\ + -*-fixed-medium-r-*--14-*-iso8859-4,\ + -*-fixed-medium-r-*--14-*-iso8859-5,\ + -*-fixed-medium-r-*--14-*-iso8859-7,\ + -*-fixed-medium-r-*--14-*-iso8859-8,\ + -*-fixed-medium-r-*--14-*-iso8859-9,\ + -*-fixed-medium-r-*--14-*-viscii1.1-1,\ + -*-fixed-medium-r-*--14-*-mulearabic-0,\ + -*-fixed-medium-r-*--14-*-mulearabic-1,\ + -*-fixed-medium-r-*--14-*-mulearabic-2,\ + -*-fixed-medium-r-*--14-*-muleipa-1,\ + -*-fixed-medium-r-*--14-*-jisx0201.1976-*,\ + -*-fixed-medium-r-*--14-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--14-*-jisx0212.1990-*, +Emacs.Fontset-0: -*-fixed-medium-r-normal--16-*-*-*-*-*-fontset-16,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-16-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--16-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--16-*-*-*-*-*-ksc5601* +Emacs.Fontset-1: -*-fixed-medium-r-normal--14-*-*-*-*-*-fontset-14,\ + ascii:-*-fixed-medium-r-normal-*-14-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-14-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--14-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--14-*-*-*-*-*-ksc5601* +Emacs.Fontset-2: -*-fixed-medium-r-normal--24-*-*-*-*-*-fontset-24,\ + ascii:-*-fixed-medium-r-normal-*-24-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-24-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--24-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--24-*-*-*-*-*-ksc5601* +Emacs.Fontset-3: -*-hgseikaishotai-medium-r-normal--16-*-*-*-*-*-fontset-mojikyo,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-hgseikaishotai-medium-r-normal-*-16-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--16-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--16-*-*-*-*-*-ksc5601* +Emacs.Fontset-9: -*-hgseikaishotai-medium-r-normal--16-*-*-*-*-*-fontset-sk,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-hgseikaishotai-medium-r-normal-*-0-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--*-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--*-*-*-*-*-*-ksc5601* +!!Emacs.Fontset-5: -*-hgheiseikakugothictaiw3-medium-r-normal--16-*-*-*-*-*-fontset-normal,\ +Emacs.Fontset-5: -*-fixed-medium-r-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-16-*-jisx0208* +Emacs.Fontset-6: -*-fixed-medium-i-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw3-medium-o-normal-*-0-*-jisx0208* +Emacs.Fontset-7: -*-fixed-bold-r-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw7-bold-r-normal-*-0-*-jisx0208* +Emacs.Fontset-8: -*-fixed-bold-i-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw7-bold-i-normal-*-0-*-jisx0208* +Emacs.Font: fontset-standard +Emacs*FontSet-16i: -*-fixed-medium-i-normal--16-*-iso8859-1\ + -*-fixed-medium-r-*--16-*-jisx0208.1983-* +Emacs*FontSet-16:\ + -sony-fixed-medium-r-*--16-*-iso8859-1,\ + -*-fixed-medium-r-*--16-*-iso8859-2,\ + -*-fixed-medium-r-*--16-*-viscii1.1-1,\ + -*-fixed-medium-r-*--16-*-mulearabic-0,\ + -*-fixed-medium-r-*--16-*-mulearabic-1,\ + -*-fixed-medium-r-*--16-*-mulearabic-2,\ + -*-fixed-medium-r-*--16-*-muleipa-1,\ + -*-fixed-medium-r-*--16-*-jisx0201.1976-*,\ + -jis-fixed-medium-r-*--16-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--16-*-jisx0212.1990-*,\ + -*-medium-r-*--16-*-gb2312.1980-*,\ + -*-mincho-medium-r-*--16-*-ksc5601.1987-*,\ + -*-fixed-medium-r-*--16-*-tis620.2529-1 +Emacs*FontSet-24:\ + -sony-fixed-medium-r-*--24-*-iso8859-1,\ + -*-fixed-medium-r-*--24-*-iso8859-2,\ + -*-fixed-medium-r-*--24-*-iso8859-3,\ + -*-fixed-medium-r-*--24-*-iso8859-4,\ + -*-fixed-medium-r-*--24-*-iso8859-5,\ + -*-fixed-medium-r-*--24-*-iso8859-7,\ + -*-fixed-medium-r-*--24-*-iso8859-8,\ + -*-fixed-medium-r-*--24-*-iso8859-9,\ + -*-fixed-medium-r-*--24-*-viscii1.1-1,\ + -*-fixed-medium-r-*--24-*-mulearabic-0,\ + -*-fixed-medium-r-*--24-*-mulearabic-1,\ + -*-fixed-medium-r-*--24-*-mulearabic-2,\ + -*-fixed-medium-r-*--24-*-muleipa-1,\ + -*-fixed-medium-r-*--24-*-jisx0201.1976-*,\ + -*-fixed-medium-r-*--24-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--24-*-jisx0212.1990-*,\ + -*-medium-r-*--24-*-gb2312.1980-*,\ + -*-mincho-medium-r-*--24-*-ksc5601.1987-*,\ + -*-fixed-medium-r-*--24-*-tis620.2529-1 + +Dtwm*VCLSalFrame*secondariesOnTop: True diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..237623a --- /dev/null +++ b/.emacs @@ -0,0 +1,9 @@ +; +; Private settings here +; + +(load "/etc/skel/.emacs.default") + +;; �����˼�ʬ�Υᥤ�륢�ɥ쥹�Υɥᥤ��̾������Ʋ����� +;; itl.koeki-u.ac.jp ����ʬ��񤭴����ޤ� +(setq mew-mail-domain "itl.koeki-u.ac.jp") diff --git a/.emacs.default b/.emacs.default new file mode 100644 index 0000000..19673cf --- /dev/null +++ b/.emacs.default @@ -0,0 +1,462 @@ +;;; ;;; +; .emacs for GNU Emacs Koeki-u Generic Users ; +;;; ;;; +; Last modified Tue Sep 8 11:56:07 2009 on pan + +;;; +;; Grobal Settings +;;; +;; set 'Do not make back up file' +(setq make-backup-files nil) +(setq-default major-mode 'lisp-interaction-mode) +(setq require-final-newline t) +(setq visible-bell t) +;(setq-default indent-tabs-mode nil) +(setq completion-ignored-extensions + (cons ".class" completion-ignored-extensions)) +(setq debug-on-error t) + +(setq my-system-type + (cond + ((eq system-type 'ms-dos) (if (boundp 'MULE) 'dos-mule 'demacs)) + ((or (file-exists-p "/386bsd") + (file-exists-p "/kernel")) + (if (boundp 'MULE) 'bsd-mule 'bsd-nemacs)) + (t (if (boundp 'MULE) 'mule 'nemacs)))) +(defconst Emacs-18 (string= "18" (substring emacs-version 0 2))) +(defconst Emacs-19 (string= "19" (substring emacs-version 0 2))) +(defconst Emacs-20 (string< "20" (substring emacs-version 0 2))) +(defconst Emacs-21 (string< "21" (substring emacs-version 0 2))) +(defconst Emacs-22 (string< "22" (substring emacs-version 0 2))) +(defconst Emacs-23 (string< "23" (substring emacs-version 0 2))) +(cond + (Emacs-20 + (set-language-environment "japanese") + (set-terminal-coding-system + ;; (if (string= (getenv "TERM") "xterm") 'utf-8 'junet) + ;;(if (string= (getenv "TERM") "xterm") 'utf-8 'euc-jp) + 'utf-8 + ) + (set-buffer-file-coding-system 'utf-8) + (set-keyboard-coding-system 'utf-8) + (prefer-coding-system 'utf-8)) + (Emacs-19 + (set-default-process-coding-system *junet* *autoconv*) + (set-display-coding-system *junet*))) +(setq diff-switches "-uab") + +(defvar system-load-path load-path) +(defvar my-load-path "/usr/koeki/share/emacs/lisp") +(or (member my-load-path load-path) + (setq load-path (cons my-load-path load-path))) + + +;;; +;; text mode +;;; +(setq text-mode-hook + '(lambda () + (turn-on-auto-fill) + (define-key text-mode-map "\e\C-i" 'lisp-complete-symbol) + (or (boundp 'text-mode-hook-running) + (let (text-mode-hook-running) + (hack-local-variables))))) +(setq-default fill-column 72) + +;;; +;; YaTeX version 1.x + +;;; +(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) +(setq ;; YaTeX-prefix "\^L" + ;; YaTeX-fill-prefix " " + YaTeX-kanji-code 2 + YaTeX-nervous t + YaTeX-help-file "~yuuji/src/emacs-lisp/yatex/help/YATEXHLP.jp" + ;;YaTeX-inhibit-prefix-letter t + tex-command "platex" + YaTeX-no-begend-shortcut t + YaTeX-create-file-prefix-g t + dviprint-command-format "dvips %f %t %s.dvi" + dviprint-from-format "-p %b" + dviprint-to-format "-l %e" + dvi2-command (concat "xdvi -geo +50+0 -dis " (getenv "DISPLAY"))) + +;;; +;; yahtml - YaTeX interfaces for html +;;; +(autoload 'yahtml-mode "yahtml" "Yet Another html-mode" t) +(setq yahtml-kanji-code 3 + yahtml-lint-program "htmllint" + yahtml-www-browser "openurl" + yahtml-always-/li t + yahtml-always-/dt t + yahtml-always-/dd t) + +;;; +;; autoload functions for private use +;;; +;(autoload 'insert-header "header" "Set time stamp" t) +(autoload 'status-line-and-col-no-mode "status-line-no" "status" t) +(autoload 'status-line-line-no-mode "status-line-no" "status" t) +(autoload 'status-line-column-no-mode "status-line-no" "status" t) +;--------------- Begins private customization / Functions ---------------- +(if (and (boundp 'MULE) (not (fboundp 'line-move))) + (fset 'line-move 'next-line-internal)) + +(defun next-line (arg) + (interactive "p") + (if (= arg 1) + (let ((opoint (point))) + (forward-line 1) + (if (or (= opoint (point)) + (not (eq (preceding-char) ?\n))) + (ding) + (goto-char opoint) + (line-move arg))) + (line-move arg)) + nil) + +(defun file-complete () + (interactive) + (let*((p (point)) + (s (save-excursion + (skip-chars-backward + (if (eq system-type 'ms-dos) "^ \t\n;\"\'" "^ \t\n:;\"\'")) + (point))) + (path (buffer-substring s p)) + (dir (or (file-name-directory path) "")) + (file (file-name-nondirectory path)) + (res (file-name-completion file dir))) + (cond + ((eq res t) (message "Sole completion")) + ((eq res nil) (ding) (message "No match!")) + ((string= file res) + (message (mapconcat 'princ (file-name-all-completions file dir) " "))) + (t + (delete-region p s) + (insert dir res))))) + +;;; +;; Miscellaneous Settings +;;; +;(setq write-file-hooks (cons 'insert-header write-file-hooks)) +(setq find-file-hooks (cons 'start-line-col find-file-hooks)) +(defun start-line-col () + (if (fboundp 'line-number-mode) + (line-number-mode 1) + (if (> (buffer-size) 20000) + (status-line-column-no-mode 1) + (status-line-and-col-no-mode 1)))) +(setq auto-mode-alist + (list + '("\\.[Tt][Ee][Xx]$" . yatex-mode) + '("\\.[Ss][Tt][Yy]$" . yatex-mode) + '("\\.html?$" . yahtml-mode) + '("\\.[chy]$" . c-mode) + '("\\.el$" . emacs-lisp-mode) + '("_[Ee][Mm][Aa][Cc][Ss]" . emacs-lisp-mode) + '("\\.emacs\\.*" . emacs-lisp-mode) + '("^[Mm]akefile" . makefile-mode) + '("\\.tar$" . tar-mode) + '("diary\\.doc" . diary) + '("\\.[Dd][Oo][Cc]$" . text-mode) + '("\\.[Tt][Ee]?[Xx][Tt]$" . text-mode) + '("\\.[Zz]$" . tar-mode) + '("\\.lsp$" . lisp-mode) + '("\\.rb$" . ruby-mode) + '("\\.f$" . fortran-mode) + '("\\.cob$" . cobol-mode) + '("\\.as$" . actionscript-mode) + '("\\.pl$" . cperl-mode) + '("\\.texi[^\\.]*$" . texinfo-mode) + '("\\.js$" . javascript-mode) + '("/9.*\\.log$\\|/an$" . anmode))) + +;;; +;; Windows +;;; +(setq win:frame-title-function + '(lambda (index) + (format "emacs[%d]" index))) +;(setq win:no-raise-at-save t +; win:new-frame-offset-x 5 +; win:new-frame-offset-y 2 +; win:resumed-frame-offset-x 3 +; win:resumed-frame-offset-y 3 +; win:frame-parameters-to-save-private '(name font)) + +;;;; +;;; Resume +;;;; +;;(defvar revive:save-variables-global-private nil) + +;;; +;; Scroll in place +;;; +(or (featurep 'scroll-in-place) (load "scroll-in-place" t)) + +;;; +;; font-lock +;;; +(setq frame-background-mode + (cond + ((and window-system (x-display-color-p) + (if (string-match + "on\\|yes\\|true" + (or (x-get-resource "reverseVideo" "ReverseVideo") "false")) + 'dark + 'light))) + (t 'mono))) +;(if window-system (require 'hilit19)) +(require 'font-lock) +(if (boundp 'global-font-lock-mode) + (global-font-lock-mode t) + (font-lock-mode 1)) + +(custom-set-faces + '(font-lock-comment-face + ((((class color) (background dark)) (:foreground "seashell2")))) + '(font-lock-function-name-face + ((((class static-color)) (:foreground "blue" :background "yellow")) + (((type tty)) (:foreground "blue" :background "yellow")) + (((class color) (background dark)) + (:foreground "yellow" :background "navy")))) + '(font-lock-variable-name-face + ((((type tty)) (:foreground "yellow")) + (((class color) (background dark)) + (:foreground "white" :background "navy")))) + '(font-lock-string-face + ((((type tty)) (:foreground "green")) + (((class color) (background dark)) (:foreground "OliveDrab2")))) + '(font-lock-doc-string-face + ((((type tty)) (:foreground "green")) + (((class color) (background dark)) (:foreground "OliveDrab1"))))) + +;;; +;; InputMethod +;;; +(defvar my-input-method + (cond + ((getenv "INPUT_METHOD") + (intern (getenv "INPUT_METHOD"))) + ((executable-find "mozc_emacs_helper") 'mozc) + (t 'canna))) + +;;; +;; Canna +;;; +(cond + ((and (eq my-input-method 'canna) + window-system) + (setq canna-use-color t) + (require 'canna) + (canna) + (global-set-key "\C-_" 'canna-undo) + (if window-system + (progn + (define-key global-map [?\C-/] 'canna-undo) + (define-key global-map [?\C- ] 'canna-set-mark-command))))) +;;; +;; mozc +;;; +(cond + ((and (eq my-input-method 'mozc) + (load "mozc" t)) + (setq default-input-method "japanese-mozc" + ;; mozc-candidate-style 'echo-area ;; 'overlay is heavy + mozc-leim-title "((かな))") + (define-key global-map "\C-o" 'toggle-input-method) + (define-key global-map (kbd "") 'toggle-input-method))) + + + +;;; +;; X Window System dependent +;;; +;(setq default-frame-alist +; (cons '(height . 36) default-frame-alist)) + +;;; +;; mew +;;; +(autoload 'mew "mewsetup" nil t) +(setq mew-init-hook + '(lambda () + (define-key mew-summary-mode-map "\e\C-m" 'mew-edit-mail-file) + (define-key mew-draft-mode-map "\C-cy" + 'xcite-yank-cur-msg))) + +(setq mew-mail-domain + (or (getenv "QMAILHOST") + (getenv "MAILHOST") + (cond + ((string-match "^c1\\([0-9][0-9]\\)" user-login-name) + (let ((n (substring user-login-name + (match-beginning 1) (match-end 1)))) + (concat + (cdr (assoc (% (string-to-int n) 4) + '((1 . "e") (2 . "f") (3 . "g") (0 . "h")))) + ".koeki-u.ac.jp"))) + ((string-match "^i20\\([0-9][0-9]\\)" user-login-name) + "itl.koeki-u.ac.jp")) + "e.koeki-u.ac.jp")) + +(setq mew-highlight-lines-use nil + mew-window-use-full t + mew-replyto-to-list '("From:") + mew-replyto-to-list '("Reply-to:") + mew-noreplyto-to-list '("Reply-to:" "From:") + ;; mew-auto-add-content-type t + mew-refile-ctrl-multi nil + mew-mail-domain-list (list mew-mail-domain) + mew-summary-show-direction 'stop + mew-mailbox-type (if (string-match "^i20[0-9][0-9]" user-login-name) + 'mbox + 'pop) + mew-theme-file "mew-theme2" + mew-pop-server "pop.e.koeki-u.ac.jp" + ;;mew-pop-user (concat user-login-name "@" mew-mail-domain) + mew-mbox-command "incm" + ;;mew-fcc nil + mew-dcc (concat user-login-name "@" mew-mail-domain) + mew-mbox-command-arg (format "-d %s/maildir" (getenv "HOME"))) + + +(put 'eval-expression 'disabled nil) + +(setq xcite:cite-hook + '(lambda () + (goto-char (point-min)) + (replace-regexp + (concat "^" xcite:current-citation-prefix ">") ">") + (goto-char (point-min)) + (remove-trailing-spaces nil))) + +(defun remove-trailing-spaces (squeeze) + "Remove all trailing spaces of each line after point. +Optional argument SQUEEZE non-nil squeeze the multiple newlines." + (interactive "P") + (save-excursion + (if squeeze + (while (re-search-forward "\\(\n\n\n+\\)\\|\\(\\s +$\\)" nil t) + (if (match-beginning 2) + (replace-match "") + (forward-char -1) + (delete-blank-lines))) + (replace-regexp "[ \t]+$" "")))) + +(defun mew-edit-mail-file () + (interactive) + (save-excursion + (beginning-of-line) + (skip-chars-forward " ") + (let ((n (buffer-substring + (point) (progn (skip-chars-forward "0-9") (point)))) + (folder (substring (buffer-name) 1)) + (rest (buffer-substring (point) (progn (end-of-line) (point))))) + (find-file-other-window + (cond + ((string-match "Guest Book" rest) + (save-window-excursion + (select-window (next-window)) + (save-excursion + (goto-char (point-min)) + (re-search-forward "file=\\(.*\\)") + (concat "~/http/gb/books/" + (buffer-substring (match-beginning 1) (match-end 1)))))))) + ))) + + +;;; +;; gnyognyo +;;; +(setq gnyo:score-file "/usr/koeki/emacs/share/emacs/site-lisp/gnyognyo.score" + gnyo:mute t) +(autoload 'gnyognyo "gnyognyo" "gnyognyo" t) +(autoload 'gnyo-fight "gnyognyo" "gnyognyo fighting mode" t) + +;;; +;; W3 +;;; +(autoload 'w3-preview-this-buffer "w3" "WWW Previewer" t) +(autoload 'w3-follow-url-at-point "w3" "Find document at pt" t) +(autoload 'w3 "w3" "WWW Browser" t) +(autoload 'w3-open-local "w3" "Open local file for WWW browsing" t) +(autoload 'w3-fetch "w3" "Open remote file for WWW browsing" t) +(autoload 'w3-use-hotlist "w3" "Use shortcuts to view WWW docs" t) +(autoload 'w3-show-hotlist "w3" "Use shortcuts to view WWW docs" t) +(autoload 'w3-follow-link "w3" "Follow a hypertext link." t) +(autoload 'w3-batch-fetch "w3" "Batch retrieval of URLs" t) +(autoload 'url-get-url-at-point "url" "Find the url under the cursor" nil) +(autoload 'url-file-attributes "url" "File attributes of a URL" nil) +(autoload 'url-popup-info "url" "Get info on a URL" t) +(autoload 'url-retrieve "url" "Retrieve a URL" nil) +(autoload 'url-buffer-visiting "url" "Find buffer visiting a URL." nil) +(autoload 'gopher-dispatch-object "gopher" "Fetch gopher dir" t) +(setq url-mail-command 'mew-summary-send) +(setq w3-default-homepage "http://www.gentei.org/" + url-personal-mail-address "hogehoge@gentei.org" + w3-mode-hook + '(lambda () +; (define-key w3-mode-map "o" 'w3-fetch) ;open +; (define-key w3-mode-map "w" 'w3-save-url) ;save +; (define-key w3-mode-map "W" 'w3-save-this-url) ; +; (define-key w3-mode-map "j" 'w3-forward-link) ;forward-link +; (define-key w3-mode-map "p" 'w3-back-link) ;previous-link +; (define-key w3-mode-map "k" 'w3-back-link) +; (define-key w3-mode-map "b" 'w3-goto-last-buffer) ;back +; (define-key w3-mode-map "1" 'delete-other-windows) +; (define-key w3-mode-map "0" 'delete-window) + )) + +;;; +;; cobol-mode +;;; +(autoload 'cobol-mode "cobol-mode" "Major mode for Tandem COBOL files." t nil) + +;;; +;; actionscript-mode +;;; +(autoload 'actionscript-mode "actionscript-mode" "actionscript" t nil) + +;;; +;; Mercurial +;;; +(defvar hg-mode-map (make-sparse-keymap)) +(load "mercurial" t) + +;;; +;; javascript mode +;;; +(autoload 'javascript-mode "javascript" "javascript mode" t) +(setq javascript-mode-hook + '(lambda () + (setq javascript-indent-level 2) + (or (fboundp 'saved-javascript-indent-line) + (fset 'saved-javascript-indent-line + (symbol-function 'javascript-indent-line))) + ;; emacs23 can't count column after Kanji characters. + (defun javascript-indent-line () + "Indent the current line as JavaScript source text." + (save-excursion + (saved-javascript-indent-line)) + (skip-chars-forward " \t")))) + +;;; +;; Global +;;; +(load "term/bobcat") +(cond + ((boundp 'minibuffer-local-filename-completion-map) + (define-key minibuffer-local-filename-completion-map + " " 'minibuffer-complete-word) + (define-key minibuffer-local-must-match-filename-map + " " 'minibuffer-complete-word) + (and (fboundp 'partial-completion-mode) (partial-completion-mode t)) + (and (fboundp 'terminal-init-bobcat) (terminal-init-bobcat)))) + +(put 'narrow-to-region 'disabled nil) +(require 'windows) +(win:startup-with-window) +(setq debug-on-error nil) diff --git a/.fvwm2rc b/.fvwm2rc new file mode 100644 index 0000000..791cc26 --- /dev/null +++ b/.fvwm2rc @@ -0,0 +1,610 @@ +# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. +# It should be customized before install. See other sample .fvwm2rc files +# for hints, as well as pointers from the various links on the official +# fvwm web page (see the FAQ). + +#TitleStyle ActiveUp HGradient 16 Yellow tomato +# be sure to customize these paths for your installation: +#ModulePath /usr/X11R6/lib/X11/fvwm2 +ImagePath /usr/X11R7/include/X11/pixmaps +ImagePath /usr/local/Xc/fvwm2/share/fvwm/images/button:/usr/koeki/share/images/button:/usr/X11R6/include/X11/bitmaps +# WIDTH + +OpaqueMoveSize 80 +EdgeResistance 250 20 +#EdgeScroll 100 100 +EdgeScroll 20 20 +ClickTime 750 + +# make sure these fonts exist on your system: +WindowFont -misc-*-medium-*-*-*-14-*-*-*-*-*-*-* +IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* + +HilightColor seashell mistyrose lemonchiffon +HilightColor seashell mistyrose lemonchiffon +TitleStyle ActiveUp HGradient 64 2 mistyrose 50 #7faec8 50 mistyrose +#Module FvwmPager + +DeskTopSize 1x1 +MenuStyle * Font -misc-*-*-r-*-*-14-*-*-*-*-*-*-* fvwm +MenuStyle * Foreground lemonchiffon grey60 grey40 +MenuStyle * Menuface BGradient 64 2 #1a6b86 50 #7faec8 50 #1a6b86 +MenuStyle * Hilight3DThick ActiveFore gold + +ColormapFocus FollowsMouse + +# default Styles: +Style "*" BorderWidth 2, HandleWidth 7 +Style "*" Icon unknown1.xpm +Style "*" ForeColor lemonchiffon, BackColor slategray +Style "*" MWMFunctions, MWMDecor, HintOverride +Style "*" DecorateTransient +Style "*" NoPPosition +Style "*" IconBox 0 -10 -280 -1 +Style "*" FocusFollowsMouse +Style "*" SmartPlacement + +# Styles for various Fvwm modules: +Style "Fvwm*" NoTitle, Sticky, WindowListSkip +Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip +Style "FvwmPager" StaysOnTop +Style "FvwmBanner" StaysOnTop +Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus + +# Styles for your common terminal emulator programs: +Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140 +Style "rxvt" Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140 +Style "rxvt" MWMBorder, MWMButtons + +# Styles for various common programs: +Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "*alarm" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, StaysOnTop +Style "*biff*" NoTitle, Sticky, WindowListSkip, ClickToFocus +# kinput2 selection menu (Candidate* & Auxiliary*) +Style "Candidate*" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "Auxiliary*" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "xyoubin*" NoTitle, Sticky, WindowListSkip, ClickToFocus +Style "header" NoTitle, Sticky, WindowListSkip, ClickToFocus, NoHandles +Style "MINI*" NoTitle, Sticky, WindowListSkip, ClickToFocus +Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus + +# some simple default key bindings: +Key Next A SCM Next [*] Focus +Key Prior A SCM Prev [*] Focus + +# some simple default mouse bindings: +# for the root window: +Mouse 1 R A Menu RootMenu Nop +Mouse 2 R A Menu Window-Ops Nop +Mouse 3 R A WindowList + +# for the title bar buttons: +Mouse 0 1 A Menu Window-Ops2 Close +Mouse 0 2 A Close +Mouse 0 4 A Maximize-Func +Mouse 0 6 A Iconify + +ButtonStyle All Solid +ButtonStyle 2 Pixmap fv-close.xpm +ButtonStyle 4 Pixmap fv-window-maximize.xpm +ButtonStyle 6 Pixmap fv-window-iconify.xpm + +# for other parts of the window/borders/icons: +Mouse 1 F A Resize-or-Raise +Mouse 1 TS A Move-or-Raise +Mouse 1 I A Move-or-Iconify +Mouse 2 I A Iconify +Mouse 2 FST A Menu Window-Ops2 Nop +Mouse 3 TSIF A RaiseLower + +######################## Initialization Functions ############################ +#AddToFunc InitFunction "I" Module FvwmButtons +#+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 + +#AddToFunc RestartFunction "I" Module FvwmButtons +#+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 + + +######################## Menus ################### +AddToMenu RootMenu "Root Menu" Title ++ "Emacs" Exec exec emacs ++ "端末" Exec exec term ++ "Emacs24" Exec exec emacs -fn fontset-24 -g 75x27+0+0 ++ "term24" Exec exec term24 ++ "ホーム(caja)" Exec exec caja ~ ++ "" Nop ++ "Firefox" Exec exec firefox ++ "Chromium" Exec exec chrome +#+ "Firefoxその他" Popup Firefox ++ "マルチメディア" Popup Graphics ++ "LibreOffice" Exec exec loffice ++ "ウィンドウサイズ調整" Exec exec winsize ++ "" Nop ++ "Fvwm Modules" Popup Module-Popup ++ "Fvwm Window Ops" Popup Window-Ops ++ "Fvwm Simple Config Ops" Popup Misc-Ops ++ "" Nop ++ "Refresh Screen" Refresh ++ "Recapture Screen" Recapture ++ "" Nop ++ "終了メニュー" Popup Quit-Verify + +AddToMenu Graphics "マルチメディア" Title ++ "GIMP" Exec exec gimp ++ "Inkscape" Exec exec inkscape ++ "Geeqie" Exec exec geeqie ++ "Audacity" Exec exec audacity ++ "Olive-Editor" Exec exec olive-editor ++ "SimpleScreenRecorder" Exec exec simplescreenrecorder + +AddToMenu Firefox "Firefox" Title ++ "firefox-restart(強制再起動)" Exec exec firefox-restart ++ "firefox-refresh(初期化+再起動)" Exec exec firefox-refresh +#+ "Firefox-1.0" Exec exec firefox-1.0 +#+ "Firefox-1.5" Exec exec firefox-1.5 + +AddToMenu Misc-Ops "Misc Config Opts" Title ++ "Sloppy Focus" ChangeDefaultFocus SloppyFocus ++ "Click To Focus" ChangeDefaultFocus ClickToFocus ++ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse ++ "" Nop ++ "Colormap Follows Mouse" ColormapFocus FollowsMouse ++ "Colormap Follows Focus" ColormapFocus FollowsFocus ++ "" Nop ++ "Full Paging ON" EdgeScroll 100 100 ++ "All Paging OFF" EdgeScroll 0 0 ++ "Horizontal Paging Only" EdgeScroll 100 0 ++ "Vertical Paging Only" EdgeScroll 0 100 ++ "Partial Paging" EdgeScroll 50 50 ++ "Full Paging && Edge Wrap" EdgeScroll 100000 100000 + +AddToMenu Window-Ops "Window Ops" Title ++ "Move" Move ++ "Resize" Resize ++ "Raise" Raise ++ "Lower" Lower ++ "(De)Iconify" Iconify ++ "(Un)Stick" Stick ++ "(Un)Maximize" Maximize ++ "" Nop ++ "Delete" Delete ++ "Close" Close ++ "Destroy" Destroy ++ "" Nop ++ "Refresh Window" RefreshWindow + +AddToMenu Window-Ops2 "&Move" Move ++ "&Resize" Resize ++ "R&aise" Raise ++ "&Lower" Lower ++ "(De)&Iconify" Iconify ++ "(Un)&Stick" Stick ++ "(Un)Ma&ximize" Maximize ++ "" Nop ++ "&Delete" Delete ++ "&Close" Close ++ "Destroy" Destroy ++ "" Nop ++ "ScrollBar" Module FvwmScroll 2 2 ++ "Print" PrintFunction ++ "Print Reverse" PrintReverseFunction + +# be sure to fill these in with your correct machine names: +#AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY & +#+ "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY & +#+ "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY & +#+ "happy" Exec rsh happy rxvt -display $HOSTDISPLAY & +#+ "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY & +#+ "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY & +#+ "joker" Exec rsh joker rxvt -display $HOSTDISPLAY & +#+ "signal" Exec rxterm signal + +AddToMenu Module-Popup "FvwmModules" Title ++ "Identify" Module FvwmIdent ++ "Talk" Module FvwmTalk ++ "" Nop ++ "Button-Bar" Module FvwmButtons ++ "Pager" Module FvwmPager 0 0 ++ "Pager (2 desks)" Module FvwmPager 0 1 ++ "WinList" Module FvwmWinList ++ "" Nop ++ "Banner" Module FvwmBanner ++ "ScrollBar" Module FvwmScroll 50 50 ++ "Background" Module FvwmBacker ++ "AutoRaise" Module FvwmAuto 200 Raise Nop ++ "Stop AutoRaise" KillModule FvwmAuto ++ "" Nop ++ "IconBox" Module FvwmIconBox ++ "IconMan" Module FvwmIconMan ++ "" Nop ++ "Form - Rlogin" Module FvwmForm Rlogin ++ "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk ++ "Form - QuitVerify" Module FvwmForm QuitVerify + +AddToMenu Quit-Verify "Really Quit Fvwm?" Title ++ "fvwmを終了" Quit ++ "" Nop ++ "Restart Fvwm2" Restart +#+ "Restart Fvwm" Restart fvwm1 -s +#+ "" Nop ++ "Start twm" Restart twm +#+ "Start ctwm" Restart ctwm +#+ "Start tvtwm" Restart tvtwm +#+ "Start vtwm" Restart vtwm +#+ "Start mwm" Restart mwm +#+ "Start olwm" Restart /usr/openwin/bin/olwm ++ "" Nop ++ "シャットダウン" Exec exec /sbin/shutdown -p now ++ "再起動" Exec exec /sbin/shutdown -r now ++ "" Nop ++ "No, Don't Quit" Nop + +######################## Sample Functions ########################## + +AddToFunc MailFunction "I" Next [$0] Iconify -1 ++ "I" Next [$0] Focus ++ "I" None [$0] Exec $0 $1 + +AddToFunc Move-or-Raise "I" Raise ++ "M" Move ++ "D" Lower + +AddToFunc Move-or-Raise2 "M" Raise ++ "M" Move ++ "D" Lower + +AddToFunc Maximize-Func "M" Maximize 0 100 ++ "C" Maximize 95 95 ++ "D" Maximize 100 100 + +AddToFunc Move-or-Iconify "I" Raise ++ "M" Move ++ "D" Iconify + +AddToFunc Resize-or-Raise "I" Raise ++ "M" Resize ++ "D" Lower + +AddToFunc Resize-or-Raise2 "M" Raise ++ "M" Resize ++ "D" Lower + +AddToFunc PrintFunction "I" Raise ++ "I" Exec xdpr -id $w + +AddToFunc PrintReverseFunction "I" Raise ++ "I" Exec xdpr 1/2 -h -rv -id $w + +AddToFunc Iconify-and-Raise "I" Iconify ++ "I" Raise + +# RLOGIN machine fg bg +AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8 + +# TELNET machine fg bg +AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0 + +AddToFunc FocusAndWarp "I" Focus ++ "I" WarpToWindow $0 $1 ++ "I" CursorMove +3 +2 +#+ "I" WarpToWindow 2p 2p + +AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 ++ "I" FocusAndWarp $0 $1 + +AddToFunc ChangeDefaultFocus "I" Style "*" $0 ++ "I" Recapture + +################## FvwmButtons button-bar ################################ +*FvwmButtonsBack bisque3 +*FvwmButtons(Frame 2 Padding 2 2 Container(Rows 2 Frame 1 Padding 10 0 \ + Swallow(Respawn))) +*FvwmButtons(NoSize Title Close, Icon bomb.xpm, Action Close) +*FvwmButtons(Title Resize Icon mini.resize.xpm Back bisque4 Action Resize) +#*FvwmButtons(Frame -3 Swallow(Respawn,NoHints) xclock \ +# `Exec exec xclock -bg darkolivegreen -padding 0 -geometry +2000+0`) +*FvwmButtons(3x1 Back darkolivegreen Fore white Frame 2 Padding 2 2 \ + Container(Rows 1 Frame -2 Padding 1 1 Back darkolivegreen)) +#*FvwmButtons(Frame 2 Title(Side,Right) Mail Fore white \ +# Swallow(UseOld,NoRespawn)\ +# xbiff `Exec exec xbiff -bg darkolivegreen -geometry +200+200`) +*FvwmButtons(2x1 Swallow (NoHints) "FvwmTalk" "FvwmTalk") +*FvwmButtons(End) +*FvwmButtons(End) + + +########################## Window-Identifier ############################### +# Just choose colors and a fonts +*FvwmIdentBack MidnightBlue +*FvwmIdentFore Yellow +*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* + +########################### Pager ######################################### +*FvwmPagerBack #908090 +*FvwmPagerFore #484048 +*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* +# *FvwmPagerHilight #cab3ca +*FvwmPagerHilight yellow +*FvwmPagerGeometry -1-1 +*FvwmPagerLabel 0 Misc +*FvwmPagerLabel 1 Maker +*FvwmPagerLabel 2 Mail +*FvwmPagerLabel 3 Matlab +*FvwmPagerSmallFont 5x8 + +##########################FvwmWinList################################## +*FvwmWinListBack #908090 +*FvwmWinListFore Black +*FvwmWinListFont -misc-*-*-*-*-*-14-*-*-*-*-*-*-* +*FvwmWinListAction Click1 Iconify -1,Focus +*FvwmWinListAction Click2 Iconify +*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent +*FvwmWinListUseSkipList +*FvwmWinListGeometry +0-1 + + +*FvwmBackerDesk 0 -solid steelblue +*FvwmBackerDesk 1 -solid midnightblue + +*FvwmScrollBack grey40 +*FvwmScrollFore green + +############################################################ +############################################################ +# Note that icons are shown in the module +# only if NoIcon commnand is applied. +#Style "*" NoIcon + +############################################################ +*FvwmIconBoxIconBack #cfcfcf +*FvwmIconBoxIconHiFore black +*FvwmIconBoxIconHiBack LightSkyBlue +*FvwmIconBoxBack #5f9ea0 +#*FvwmIconBoxFore blue +*FvwmIconBoxGeometry 5x1+0+0 +*FvwmIconBoxMaxIconSize 64x38 +*FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* +*FvwmIconBoxSortIcons IconName +*FvwmIconBoxPadding 4 +*FvwmIconBoxLines 10 +*FvwmIconBoxSBWidth 11 +*FvwmIconBoxPlacement Left Top +*FvwmIconBoxPixmap fvwm.xpm +#*FvwmIconBoxHideSC Horizontal +*FvwmIconBoxSetWMIconSize +*FvwmIconBoxHilightFocusWin +#*FvwmIconBoxResolution Desk +*FvwmIconBoxMouse 1 Click RaiseLower +*FvwmIconBoxMouse 1 DoubleClick Iconify +*FvwmIconBoxMouse 2 Click Iconify -1, Focus +*FvwmIconBoxMouse 3 Click Module FvwmIdent +*FvwmIconBoxKey r RaiseLower +*FvwmIconBoxKey space Iconify +*FvwmIconBoxKey d Close +*FvwmIconBoxKey n Next +*FvwmIconBoxKey p Prev +*FvwmIconBoxKey h Left +*FvwmIconBoxKey j Down +*FvwmIconBoxKey k Up +*FvwmIconBoxKey l Right +# +# Icon file specifications +# +# Mostly, you don't have to specify icon files, as FvwmIconBox now +# reads icon files specified in Style commands. +# +*FvwmIconBox "Fvwm*" - + +# FvwmForm alias - rlogin to host via xterm +*RloginWarpPointer +*RloginFont *helvetica*m*r*n*14* +*RloginButtonFont *helvetica*m*o*n*14* +*RloginInputFont *cour*m*r*n*14* +*RloginFore Black +*RloginBack Light Gray +*RloginItemFore Wheat +*RloginItemBack Gray50 +# begin items +*RloginLine center +*RloginText "Login to Remote Host" +*RloginLine center +*RloginText "Host:" +*RloginInput HostName 20 "" +*RloginLine center +*RloginSelection UserSel single +*RloginChoice Default Default on "same user" +*RloginChoice Custom Custom off "user:" +*RloginInput UserName 10 "" +*RloginLine expand +*RloginButton quit "Login" ^M +*RloginCommand Exec xterm -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName)) +*RloginButton restart "Clear" +*RloginCommand Beep +*RloginButton quit "Cancel" +*RloginCommand Nop + +# FvwmForm alias - query exit ala mwm +*QuitVerifyGrabServer +*QuitVerifyWarpPointer +*QuitVerifyFont *helvetica*m*r*n*14* +#*QuitVerifyButtonFont *helvetica*m*o*n*14* +*QuitVerifyButtonFont 7x13bold +*QuitVerifyFore Black +*QuitVerifyBack Light Gray +*QuitVerifyItemFore Wheat +*QuitVerifyItemBack Gray50 +# begin items +*QuitVerifyLine center +*QuitVerifyText "Do you really want to exit FVWM?" +*QuitVerifyLine expand +*QuitVerifyButton quit " Exit " +*QuitVerifyCommand Quit +*QuitVerifyButton quit "Cancel" +*QuitVerifyCommand Nop + +# MyTalk & MyFvwmTalk from Dave Goldberg +# MyTalk Form - dissappears after use +*MyTalkWarpPointer +*MyTalkFont *helvetica*m*r*n*14* +*MyTalkButtonFont *helvetica*m*o*n*14* +*MyTalkInputFont *cour*m*r*n*14* +*MyTalkFore Red +*MyTalkBack Gray +*MyTalkItemFore Blue +*MyTalkItemBack Gray +*MyTalkLine center +*MyTalkText "Fvwm Function" +*MyTalkInput Func 40 "" +*MyTalkLine expand +*MyTalkButton quit "Run" ^M +*MyTalkCommand $(Func) +*MyTalkButton restart "Clear" ^R +*MyTalkButton quit "Cancel" ^C +*MyTalkCommand Nop +# MyFvwmTalk Form - sticks around +*MyFvwmTalkWarpPointer +*MyFvwmTalkFont *helvetica*m*r*n*14* +*MyFvwmTalkButtonFont *helvetica*m*o*n*14* +*MyFvwmTalkInputFont *cour*m*r*n*14* +*MyFvwmTalkFore Red +*MyFvwmTalkBack Gray +*MyFvwmTalkItemFore Blue +*MyFvwmTalkItemBack Gray +*MyFvwmTalkLine center +*MyFvwmTalkText "Fvwm Function" +*MyFvwmTalkInput Func 40 "" +*MyFvwmTalkLine expand +*MyFvwmTalkButton restart "Run" ^M +*MyFvwmTalkCommand $(Func) +*MyFvwmTalkButton restart "Clear" ^R +*MyFvwmTalkCommand Nop +*MyFvwmTalkButton restart "Iconify" ^Z +*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify +*MyFvwmTalkButton quit "Quit" ^C +*MyFvwmTalkCommand Nop + +# to change banner pixmap +#*FvwmBannerPixmap fvwm3.xpm +#*FvwmBannerTimeout 2 + +# Arrow Keys +# press arrow + control anywhere, and scroll by 1 page +Key Left A C Scroll -100 0 +Key Right A C Scroll +100 +0 +Key Up A C Scroll +0 -100 +Key Down A C Scroll +0 +100 + +# press arrow + meta key, and scroll by 1/10 of a page +Key Left A 2 Scroll -10 +0 +Key Right A 2 Scroll +10 +0 +Key Up A 2 Scroll +0 -10 +Key Down A 2 Scroll +0 +10 + +# press shift arrow + control anywhere, and move the pointer by 1% of a page +Key Left A SC CursorMove -1 0 +Key Right A SC CursorMove +1 +0 +Key Up A SC CursorMove +0 -1 +Key Down A SC CursorMove +0 +1 + +# press shift arrow + control anywhere, and move the pointer by 10% of a page +# Key Left A S CursorMove -10 0 +# Key Right A S CursorMove +10 +0 +# Key Up A S CursorMove +0 -10 +# Key Down A S CursorMove +0 +10 + +# press shift arrow + meta key, and move the pointer by 1/10 of a page +Key Left A S2 CursorMove -10 +0 +Key Right A S2 CursorMove +10 +0 +Key Up A S2 CursorMove +0 -10 +Key Down A S2 CursorMove +0 +10 + +# Resize functions +Key r A SC Resize +key z a SC Maximize +Key m A SC Maximize 0 95 +Key m A SC2 Maximize 0 101 +Key t A SC Maximize 100 0 +Key o A SC Move +Key e A SC Move + +# vi-like CursorMove 5% functions +Key h A C2 CursorMove -5 0 +Key j A C2 CursorMove 0 +5 +Key k A C2 CursorMove 0 -5 +Key l A C2 CursorMove +5 0 + +# ws-like CursorMove 2% functions +Key s A C2 CursorMove -2 0 +Key d A C2 CursorMove +2 +0 +Key e A C2 CursorMove +0 -2 +Key x A C2 CursorMove +0 +2 + +# Source +Key s A SC Restart fvwm2 +Key F6 A C Restart fvwm2 + +# Raise or Lower +Key 9 A C RaiseLower +Key 0 A C Iconify + +# vi-like scroll functions +Key h A SC Scroll -50 0 +Key j A SC Scroll 0 +50 +Key k A SC Scroll 0 -50 +Key l A SC Scroll +50 0 + +# Emulate Mouse clicks +Key m A 2 FakeClick depth 0 press 1 wait 100 release 1 +Key comma A 2 FakeClick depth 0 press 2 wait 100 release 2 +Key period A 2 FakeClick depth 0 press 3 wait 100 release 3 + + +# emacs-like circulate bindings. +Key n A SC Next [CurrentDesk *] DeiconifyFocusAndWarp +Key p A SC Prev [CurrentDesk *] DeiconifyFocusAndWarp + +# Keyboard accelerators +Key F1 A C Popup "Window-Ops" +Key F2 A C Popup "Utilities" +Key F4 A C WindowList +Key 1 A SC WindowList +Key F5 A C Move +#Key F6 A N Resize + +# CenterOnCirculate + +Key 1 A C Next [CurrentDesk emacs*]DeiconifyFocusAndWarp 0 0 +Key 2 A C Next [CurrentDesk *term-2:]DeiconifyFocusAndWarp 0 0 +Key 3 A C Next [CurrentDesk console:]DeiconifyFocusAndWarp 0 0 +Key 4 A C Next [CurrentDesk Firefox*]DeiconifyFocusAndWarp 0 0 +Key 5 A C Next [CurrentDesk *office*]DeiconifyFocusAndWarp 0 0 +Key 6 A C Next [CurrentDesk caja|*hunar*]DeiconifyFocusAndWarp 0 0 +Key h A 2 Next [CurrentDesk *term-h:]DeiconifyFocusAndWarp 0 0 +Key j A 2 Next [CurrentDesk *term-j:]DeiconifyFocusAndWarp 0 0 +Key k A 2 Next [CurrentDesk *term:]DeiconifyFocusAndWarp 0 0 +Key l A 2 Next [CurrentDesk *term-l:]DeiconifyFocusAndWarp 0 0 +# Warp to Mule +Key 1 A 2 Next [emacs?1*]DeiconifyFocusAndWarp +Key 2 A 2 Next [emacs?2*]DeiconifyFocusAndWarp +Key 3 A 2 Next [emacs?3*]DeiconifyFocusAndWarp +Key 4 A 2 Next [emacs?4*]DeiconifyFocusAndWarp +Key 5 A 2 Next [emacs?5*]DeiconifyFocusAndWarp +Key 6 A 2 Next [emacs?6*]DeiconifyFocusAndWarp +Key 7 A 2 Next [emacs?7*]DeiconifyFocusAndWarp +Key 8 A 2 Next [emacs?8*]DeiconifyFocusAndWarp +Key 9 A 2 Next [emacs?9*]DeiconifyFocusAndWarp +Key m A 2S Next [*MINI*]DeiconifyFocusAndWarp +# Warp to applications +Key n A 2 Next [!Iconic *etscape*]FocusAndWarp 50 50 +Key n A S2 Next [Iconic *etscape*]DeiconifyFocusAndWarp 50 50 +Key d A 2 Next [CurrentDesk *dvi*]DeiconifyFocusAndWarp 50 50 +Key i A 2 Next [CurrentDesk *mageMagick*]DeiconifyFocusAndWarp 50 50 +Key g A S2 Next [CurrentDesk *hostview*]DeiconifyFocusAndWarp 50 50 +Key g A 2 Next [CurrentDesk *Gimp*]DeiconifyFocusAndWarp 50 50 +Key s A 2 Next [CurrentDesk *VCLSalFrame*]DeiconifyFocusAndWarp 3 10 +Key a A 2 Next [CurrentDesk Acro?ead]DeiconifyFocusAndWarp 50 50 +Key o A 2 Next [CurrentDesk *Office*]DeiconifyFocusAndWarp 50 50 +Key t A 2 Next [CurrentDesk Tgif]DeiconifyFocusAndWarp 50 50 +Key f A 2 Next [CurrentDesk Firefox*]DeiconifyFocusAndWarp 50 50 +Key z A 2 Next [CurrentDesk *ozilla*]DeiconifyFocusAndWarp 50 50 +Key p A 2 Next [CurrentDesk *ozilla*]DeiconifyFocusAndWarp 50 50 diff --git a/.mlterm/aafont b/.mlterm/aafont new file mode 100644 index 0000000..3bf9ed0 --- /dev/null +++ b/.mlterm/aafont @@ -0,0 +1 @@ +ISO10646_UCS4_1 = VL ゴシック diff --git a/.mlterm/main b/.mlterm/main new file mode 100644 index 0000000..bdc3b6c --- /dev/null +++ b/.mlterm/main @@ -0,0 +1,6 @@ +bg_color = black +ENCODING = UTF-8 +fontsize = 14 +fg_color = white +receive_string_via_ucs = true +line_space = -2 diff --git a/.mozc/cform.db b/.mozc/cform.db new file mode 100644 index 0000000..c776de5 --- /dev/null +++ b/.mozc/cform.db Binary files differ diff --git a/.mozc/config1.db b/.mozc/config1.db new file mode 100644 index 0000000..6b808dc --- /dev/null +++ b/.mozc/config1.db Binary files differ diff --git a/.mozc/keymap.txt b/.mozc/keymap.txt new file mode 100644 index 0000000..c07d365 --- /dev/null +++ b/.mozc/keymap.txt @@ -0,0 +1,137 @@ +status key command +Composition Backspace Backspace +Composition Ctrl ; DisplayAsHalfWidth +Composition Ctrl : DisplayAsHalfAlphanumeric +Composition Ctrl ' DisplayAsHalfAlphanumeric +Composition Ctrl a MoveCursorToBeginning +Composition Ctrl b MoveCursorLeft +Composition Ctrl d Delete +Composition Ctrl e MoveCursorToEnd +Composition Ctrl f MoveCursorRight +Composition Ctrl g Cancel +Composition Ctrl h Backspace +Composition Ctrl j DisplayAsHiragana +Composition Ctrl k DisplayAsFullKatakana +;Composition Ctrl l DisplayAsFullAlphanumeric +Composition Ctrl l ConvertToHalfAlphanumeric +Composition Ctrl Left MoveCursorToBeginning +Composition Ctrl m Commit +Composition Ctrl x PredictAndConvert +Composition Ctrl Right MoveCursorToEnd +Composition Delete Delete +Composition Eisu ToggleAlphanumericMode +Composition End MoveCursorToEnd +Composition Enter Commit +Composition ESC Cancel +Composition F10 DisplayAsHalfAlphanumeric +Composition F2 ConvertWithoutHistory +Composition F6 DisplayAsHiragana +Composition F7 DisplayAsFullKatakana +Composition F8 DisplayAsHalfWidth +Composition F9 DisplayAsFullAlphanumeric +Composition Hankaku/Zenkaku IMEOff +Composition Home MoveCursorToBeginning +Composition Left MoveCursorLeft +Composition Option a DisplayAsHalfWidth +Composition Option c DisplayAsFullAlphanumeric +Composition Option F1 DisplayAsHiragana +Composition Option F2 DisplayAsFullKatakana +Composition Option F3 DisplayAsFullAlphanumeric +Composition Option F4 DisplayAsHalfWidth +Composition Option F5 DisplayAsHalfAlphanumeric +Composition Option j MoveCursorLeft +Composition Option l MoveCursorRight +Composition Option s DisplayAsHalfAlphanumeric +Composition Option Space InsertFullSpace +Composition Option x DisplayAsFullKatakana +Composition Option z DisplayAsHiragana +Composition Right MoveCursorRight +Composition Space Convert +Composition Tab PredictAndConvert +Conversion Backspace Cancel +Conversion Ctrl ; DisplayAsHalfWidth +Conversion Ctrl : DisplayAsHalfAlphanumeric +Conversion Ctrl ' DisplayAsHalfAlphanumeric +Conversion Ctrl a SegmentFocusFirst +Conversion Ctrl b SegmentFocusLeft +Conversion Ctrl d SegmentFocusRight +Conversion Ctrl e ConvertPrev +Conversion Ctrl f SegmentFocusRight +Conversion Ctrl h Cancel +Conversion Ctrl i SegmentWidthShrink +Conversion Ctrl j DisplayAsHiragana +Conversion Ctrl k DisplayAsFullKatakana +;Conversion Ctrl l DisplayAsFullAlphanumeric +Conversion Ctrl l ConvertToHalfAlphanumeric +Conversion Ctrl Left SegmentFocusFirst +Conversion Ctrl m Commit +Conversion Ctrl n CommitOnlyFirstSegment +Conversion Ctrl o SegmentWidthExpand +Conversion Ctrl p ConvertPrev +Conversion Ctrl q SegmentWidthShrink +Conversion Ctrl Right SegmentFocusLast +Conversion Ctrl s SegmentFocusLeft +Conversion Ctrl w SegmentWidthExpand +Conversion Ctrl x ConvertNext +Conversion Down ConvertNext +Conversion End SegmentFocusLast +Conversion Enter Commit +Conversion ESC Cancel +Conversion F10 DisplayAsHalfAlphanumeric +Conversion F6 DisplayAsHiragana +Conversion F7 DisplayAsFullKatakana +Conversion F8 DisplayAsHalfWidth +Conversion F9 DisplayAsFullAlphanumeric +Conversion Hankaku/Zenkaku IMEOff +Conversion Home SegmentFocusFirst +Conversion Left SegmentFocusLeft +Conversion Option a DisplayAsHalfWidth +Conversion Option c DisplayAsFullAlphanumeric +Conversion Option F1 DisplayAsHiragana +Conversion Option F2 DisplayAsFullKatakana +Conversion Option F3 DisplayAsFullAlphanumeric +Conversion Option F4 DisplayAsHalfWidth +Conversion Option F5 DisplayAsHalfAlphanumeric +Conversion Option i ConvertPrev +Conversion Option k ConvertNext +Conversion Option s DisplayAsHalfAlphanumeric +Conversion Option x DisplayAsFullKatakana +Conversion Option z DisplayAsHiragana +Conversion PageDown ConvertNextPage +Conversion PageUp ConvertPrevPage +Conversion Right SegmentFocusRight +Conversion Shift Down ConvertNextPage +Conversion Shift Left SegmentWidthShrink +Conversion Shift Right SegmentWidthExpand +Conversion Shift Space ConvertPrev +Conversion Shift Tab ConvertPrev +Conversion Shift Up ConvertPrevPage +Conversion Space ConvertNext +Conversion Tab PredictAndConvert +Conversion Up ConvertPrev +DirectInput Ctrl Shift r Reconvert +DirectInput Hankaku/Zenkaku IMEOn +Precomposition Backspace Revert +Precomposition Ctrl Backspace Undo +Precomposition Ctrl Shift r Reconvert +Precomposition Eisu ToggleAlphanumericMode +Precomposition Hankaku/Zenkaku IMEOff +Precomposition Shift Space InsertAlternateSpace +Precomposition Space InsertSpace +Prediction Ctrl Delete DeleteSelectedCandidate +Suggestion Ctrl n CommitFirstSuggestion +Suggestion Down PredictAndConvert +Suggestion Shift Enter CommitFirstSuggestion +Composition Ctrl r ToggleAlphanumericMode +Precomposition Ctrl r ToggleAlphanumericMode +Composition Kanji IMEOff +Composition OFF IMEOff +Composition ON IMEOn +Conversion Kanji IMEOff +Conversion OFF IMEOff +Conversion ON IMEOn +DirectInput Kanji IMEOn +DirectInput ON IMEOn +Precomposition Kanji IMEOff +Precomposition OFF IMEOff +Precomposition ON IMEOn diff --git a/.mozc/r2.txt b/.mozc/r2.txt new file mode 100644 index 0000000..b10a0f5 --- /dev/null +++ b/.mozc/r2.txt @@ -0,0 +1,443 @@ +. 。 +, 、 +z/ ・ +z. … +z, ‥ +zh ← +zj ↓ +zk ↑ +zl → +z- 〜 +z[ 『 +z] 』 +[ 「 +] 」 +x[ [ +[ 「 +x] ] +] 」 +z1 ○ +z2 ▽ +z3 △ +z4 □ +z5 ◇ +z6 ☆ +z7 ◎ +z8 ¢ +z9 ♂ +z0 ♀ +z- 〜 +z= ≠ +z! ● +z@ ▼ +z# ▲ +z$ ■ +z% ◆ +z^ ★ +z& £ +z* × +z( 【 +z) 】 +Z_ ∴ +z+ ± +zq 《 +zw 》 +zr 々 +zt 〆 +zp 〒 +z[ 『 +z] 』 +zs +zd ゝ +zf 〃 +zh ← +zj ↓ +zk ↑ +zl → +z'' \‘ +z\` \´ +zx :-) +z; \ ^^; +zc 〇 +zv ※ +zb ° +zn ′ +zm ″ +Z. . +Z, , +nx ん +Z{ { +Z} } +Z^ ^ +Z< < +Z> > +- ー +x- - +Z- − +Zs   +\ \ +Z\ ¥ +x, , +x. . +x/ / +Z|| ‖ +Z| | +x8 ♪ +;[ 〔 +;] 〕 +;h http://www.gentei.org/~yuuji/ +;g http://www.gentei.org/ +;y yuuji@gentei.org +;Y http://www.yatex.org/ +;ar ありがとうございます。 ;ar +;ari ありがとうございました。 ;ari +;arig どうもありがとうございます。 ;arig +;ariga どうもありがとうございました。 +;ap アプリケーション +;> > +;< < +;& & +;ut ユーティリティ +;dir ディレクトリ +;rep リポジトリ +;int インタラクティブ +;bu ビュッヒェルヒェン +;eg たとえば +cbr FireBlade +;pf 基礎プログラミング +;pe 応用プログラミング +;pr プロジェクト型応用演習 +;li 情報リテラシー +;ic 情報とコンピューティング +;id 情報デザイン論 +;ie インターネット演習 +;ma 数学的考え方 +;kj 公益自由研究 +;ki 基礎演習 +;si 社会情報処理 +;se 専門演習 +;xl クロスライン +;dk 大学を出て帰宅。 +;K Kei +;D Demio +;M Mazda2 +;- --yuuji +;el Emacs-Lisp +;js JavaScript +;me めんたま畑 +;mv MaxValu +;osx Mac OS X +;OSX Mac\ OS X +;osm OpenStreetMap +;fb FreeBSD +;FB FreeBSD +;nb NetBSD +;NB NetBSD +;ob OpenBSD +;OB OpenBSD +;(g (月) +;(ka (火) +;(s (水) +;(m (木) +;(ki (金) +;(d (土) +;(n (日) +;w (日)(月)(火)(水)(木)(金)(土) +va ゔぁ +vi ゔぃ +vu ゔ +ve ゔぇ +vo ゔぉ +vya ゔゃ +vyi ゔぃ +vyu ゔゅ +vye ゔぇ +vyo ゔょ +qq っ q +vv っ v +ll っ l +xx っ x +kk っ k +gg っ g +ss っ s +zz っ z +jj っ j +tt っ t +dd っ d +hh っ h +ff っ f +bb っ b +pp っ p +mm っ m +yy っ y +rr っ r +ww っ w +www w ww +cc っ c +kya きゃ +kyi きぃ +kyu きゅ +kye きぇ +kyo きょ +gya ぎゃ +gyi ぎぃ +gyu ぎゅ +gye ぎぇ +gyo ぎょ +sya しゃ +syi しぃ +syu しゅ +sye しぇ +syo しょ +sha しゃ +shi し +shu しゅ +she しぇ +sho しょ +zya じゃ +zyi じぃ +zyu じゅ +zye じぇ +zyo じょ +tya ちゃ +tyi ちぃ +tyu ちゅ +tye ちぇ +tyo ちょ +cha ちゃ +chi ち +chu ちゅ +che ちぇ +cho ちょ +cya ちゃ +cyi ちぃ +cyu ちゅ +cye ちぇ +cyo ちょ +dya ぢゃ +dyi ぢぃ +dyu ぢゅ +dye ぢぇ +dyo ぢょ +tsa つぁ +tsi つぃ +tse つぇ +tso つぉ +tha てゃ +thi てぃ +t'i てぃ +thu てゅ +the てぇ +tho てょ +t'yu てゅ +dha でゃ +dhi でぃ +d'i でぃ +dhu でゅ +dhe でぇ +dho でょ +d'yu でゅ +twa とぁ +twi とぃ +twu とぅ +twe とぇ +two とぉ +t'u とぅ +dwa どぁ +dwi どぃ +dwu どぅ +dwe どぇ +dwo どぉ +d'u どぅ +nya にゃ +nyi にぃ +nyu にゅ +nye にぇ +nyo にょ +hya ひゃ +hyi ひぃ +hyu ひゅ +hye ひぇ +hyo ひょ +bya びゃ +byi びぃ +byu びゅ +bye びぇ +byo びょ +pya ぴゃ +pyi ぴぃ +pyu ぴゅ +pye ぴぇ +pyo ぴょ +fa ふぁ +fi ふぃ +fu ふ +fe ふぇ +fo ふぉ +fya ふゃ +fyu ふゅ +fyo ふょ +hwa ふぁ +hwi ふぃ +hwe ふぇ +hwo ふぉ +hwyu ふゅ +mya みゃ +myi みぃ +myu みゅ +mye みぇ +myo みょ +rya りゃ +ryi りぃ +ryu りゅ +rye りぇ +ryo りょ +n' ん +nn ん +n ん +xn ん +a あ +i い +u う +wu う +e え +o お +xa ぁ +xi ぃ +xu ぅ +xe ぇ +xo ぉ +la ぁ +li ぃ +lu ぅ +le ぇ +lo ぉ +lyi ぃ +xyi ぃ +lye ぇ +xye ぇ +ye いぇ +ka か +ki き +ku く +ke け +ko こ +xka ヵ +xke ヶ +lka ヵ +lke ヶ +ga が +gi ぎ +gu ぐ +ge げ +go ご +sa さ +si し +su す +se せ +so そ +ca か +ci し +cu く +ce せ +co こ +qa くぁ +qi くぃ +qu く +qe くぇ +qo くぉ +kwa くぁ +kwi くぃ +kwu くぅ +kwe くぇ +kwo くぉ +gwa ぐぁ +gwi ぐぃ +gwu ぐぅ +gwe ぐぇ +gwo ぐぉ +za ざ +zi じ +zu ず +ze ぜ +zo ぞ +ja じゃ +ji じ +ju じゅ +je じぇ +jo じょ +jya じゃ +jyi じぃ +jyu じゅ +jye じぇ +jyo じょ +ta た +ti ち +tu つ +tsu つ +te て +to と +da だ +di ぢ +du づ +de で +do ど +xtu っ +xtsu っ +ltu っ +ltsu っ +na な +ni に +nu ぬ +ne ね +no の +ha は +hi ひ +hu ふ +fu ふ +he へ +ho ほ +ba ば +bi び +bu ぶ +be べ +bo ぼ +pa ぱ +pi ぴ +pu ぷ +pe ぺ +po ぽ +ma ま +mi み +mu む +me め +mo も +xya ゃ +lya ゃ +ya や +wyi ゐ +xyu ゅ +lyu ゅ +yu ゆ +wye ゑ +xyo ょ +lyo ょ +yo よ +ra ら +ri り +ru る +re れ +ro ろ +xwa ゎ +lwa ゎ +wa わ +wi うぃ +we うぇ +wo を +wha うぁ +whi うぃ +whu う +whe うぇ +who うぉ +;t 東北公益文科大学の広瀬です。 ;t +;tt 東北公益文科大学の広瀬と申します。 diff --git a/.mozc/romantable.txt b/.mozc/romantable.txt new file mode 100644 index 0000000..d62131b --- /dev/null +++ b/.mozc/romantable.txt @@ -0,0 +1,418 @@ +. 。 +, 、 +[ 「 +] 」 +x[ [ +[ 「 +x] ] +] 」 +z1 ○ +z2 ▽ +z3 △ +z4 □ +z5 ◇ +z6 ☆ +z7 ◎ +z8 ¢ +z9 ♂ +z0 ♀ +z- 〜 +z= ≠ +z! ● +z@ ▼ +z# ▲ +z$ ■ +z% ◆ +z^ ★ +z& £ +z* × +z( 【 +z) 】 +Z_ ∴ +z+ ± +zq 《 +zw 》 +zr 々 +zt 〆 +zp 〒 +z[ 『 +z] 』 +zs +zd ゝ +zf 〃 +zh ← +zj ↓ +zk ↑ +zl → +z'' ‘ +z` ´ +zx :-) +z; ^^; +zc 〇 +zv ※ +zb ° +zn ′ +zm ″ +Z. . +Z, , +nx ん +Z{ { +Z} } +Z^ ^ +Z< < +Z> > +- ー +x- - +Z- − +Zs   +\ \ +;( 【 +;) 】 +x, , +x. . +x/ / +Z|| ‖ +Z| | +x8 ♪ +;[ 〔 +;] 〕 +;ar ありがとうございます。 +;ap アプリケーション +;> > +;< < +;& & +;ut ユーティリティ +;dir ディレクトリ +;rep リポジトリ +;int インタラクティブ +;eg たとえば +cbr FireBlade +;pf 基礎プログラミング +;pe 応用プログラミング +;pr プロジェクト型応用演習 +;li 情報リテラシー +;ic 情報とコンピューティング +;id 情報デザイン論 +;ie インターネット演習 +;ir インターネット論 +;kj 公益自由研究 +;ki 基礎演習 +;si 社会情報処理 +;gi 画像情報処理 +;se 専門演習 +;el Emacs-Lisp +;js JavaScript +;osx Mac OS X +;OSX Mac OS X +;osm OpenStreetMap +;fb FreeBSD +;FB FreeBSD +;nb NetBSD +;NB NetBSD +;ob OpenBSD +;OB OpenBSD +;(g (月) +;(ka (火) +;(s (水) +;(m (木) +;(ki (金) +;(d (土) +;(n (日) +;w (日)(月)(火)(水)(木)(金)(土) +;W (笑) +va ゔぁ +vi ゔぃ +vu ゔ +ve ゔぇ +vo ゔぉ +vya ゔゃ +vyi ゔぃ +vyu ゔゅ +vye ゔぇ +vyo ゔょ +qq っ q +vv っ v +ll っ l +xx っ x +kk っ k +gg っ g +ss っ s +zz っ z +jj っ j +tt っ t +dd っ d +hh っ h +ff っ f +bb っ b +pp っ p +mm っ m +yy っ y +rr っ r +ww っ w +www w ww +cc っ c +kya きゃ +kyi きぃ +kyu きゅ +kye きぇ +kyo きょ +gya ぎゃ +gyi ぎぃ +gyu ぎゅ +gye ぎぇ +gyo ぎょ +sya しゃ +syi しぃ +syu しゅ +sye しぇ +syo しょ +sha しゃ +shi し +shu しゅ +she しぇ +sho しょ +zya じゃ +zyi じぃ +zyu じゅ +zye じぇ +zyo じょ +tya ちゃ +tyi ちぃ +tyu ちゅ +tye ちぇ +tyo ちょ +cha ちゃ +chi ち +chu ちゅ +che ちぇ +cho ちょ +cya ちゃ +cyi ちぃ +cyu ちゅ +cye ちぇ +cyo ちょ +dya ぢゃ +dyi ぢぃ +dyu ぢゅ +dye ぢぇ +dyo ぢょ +tsa つぁ +tsi つぃ +tse つぇ +tso つぉ +tha てゃ +thi てぃ +t'i てぃ +thu てゅ +the てぇ +tho てょ +t'yu てゅ +dha でゃ +dhi でぃ +d'i でぃ +dhu でゅ +dhe でぇ +dho でょ +d'yu でゅ +twa とぁ +twi とぃ +twu とぅ +twe とぇ +two とぉ +t'u とぅ +dwa どぁ +dwi どぃ +dwu どぅ +dwe どぇ +dwo どぉ +d'u どぅ +nya にゃ +nyi にぃ +nyu にゅ +nye にぇ +nyo にょ +hya ひゃ +hyi ひぃ +hyu ひゅ +hye ひぇ +hyo ひょ +bya びゃ +byi びぃ +byu びゅ +bye びぇ +byo びょ +pya ぴゃ +pyi ぴぃ +pyu ぴゅ +pye ぴぇ +pyo ぴょ +fa ふぁ +fi ふぃ +fu ふ +fe ふぇ +fo ふぉ +fya ふゃ +fyu ふゅ +fyo ふょ +hwa ふぁ +hwi ふぃ +hwe ふぇ +hwo ふぉ +hwyu ふゅ +mya みゃ +myi みぃ +myu みゅ +mye みぇ +myo みょ +rya りゃ +ryi りぃ +ryu りゅ +rye りぇ +ryo りょ +n' ん +nn ん +n ん +xn ん +a あ +i い +u う +wu う +e え +o お +xa ぁ +xi ぃ +xu ぅ +xe ぇ +xo ぉ +la ぁ +li ぃ +lu ぅ +le ぇ +lo ぉ +lyi ぃ +xyi ぃ +lye ぇ +xye ぇ +ye いぇ +ka か +ki き +ku く +ke け +ko こ +xka ヵ +xke ヶ +lka ヵ +lke ヶ +ga が +gi ぎ +gu ぐ +ge げ +go ご +sa さ +si し +su す +se せ +so そ +ca か +ci し +cu く +ce せ +co こ +qa くぁ +qi くぃ +qu く +qe くぇ +qo くぉ +kwa くぁ +kwi くぃ +kwu くぅ +kwe くぇ +kwo くぉ +gwa ぐぁ +gwi ぐぃ +gwu ぐぅ +gwe ぐぇ +gwo ぐぉ +za ざ +zi じ +zu ず +ze ぜ +zo ぞ +ja じゃ +ji じ +ju じゅ +je じぇ +jo じょ +jya じゃ +jyi じぃ +jyu じゅ +jye じぇ +jyo じょ +ta た +ti ち +tu つ +tsu つ +te て +to と +da だ +di ぢ +du づ +de で +do ど +xtu っ +xtsu っ +ltu っ +ltsu っ +na な +ni に +nu ぬ +ne ね +no の +ha は +hi ひ +hu ふ +fu ふ +he へ +ho ほ +ba ば +bi び +bu ぶ +be べ +bo ぼ +pa ぱ +pi ぴ +pu ぷ +pe ぺ +po ぽ +ma ま +mi み +mu む +me め +mo も +xya ゃ +lya ゃ +ya や +wyi ゐ +xyu ゅ +lyu ゅ +yu ゆ +wye ゑ +xyo ょ +lyo ょ +yo よ +ra ら +ri り +ru る +re れ +ro ろ +xwa ゎ +lwa ゎ +wa わ +wi うぃ +we うぇ +wo を +wha うぁ +whi うぃ +whu う +whe うぇ +who うぉ diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..c78469f --- /dev/null +++ b/.vimrc @@ -0,0 +1,5 @@ +:map g 1G +:set ic +:set sm +:set nowrapscan +:set nobackup fepctrl notitle diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..fc189fb --- /dev/null +++ b/.xinitrc @@ -0,0 +1,8 @@ +#!/bin/sh +# 自分で好きなアプリケーションを起動するときはここに書く +# ここから + + + +# ここまで +. ${SKELDIR:-/etc/skel}/.xinitrc.default diff --git a/.xinitrc.default b/.xinitrc.default new file mode 100755 index 0000000..fdf8d41 --- /dev/null +++ b/.xinitrc.default @@ -0,0 +1,21 @@ +#!/bin/sh +NOFVWM=1 winsize +setxkbmap -layout ${KBD_LAYOUT:-jp} +setxkbmap -option ctrl:nocaps +xclock -geometry 60x60-0+0& +##sleep 2 +xmodmap $HOME/.xmodmap +#xset fp+ tcp/localhost:7100 +#xset fp rehash +#setxkbmap -option ctrl:nocaps +#xset bc r s 300 3 +XMODIFIERS=@im=none emacs -geometry 80x32+0+0 -fn fontset-standard& +export XMODIFIERS=@im=uim GTK_IM_MODULE=uim # QT_IM_MODULE=uim +LANG=${LANG:-ja_JP.UTF-8} M4PATH=/etc/skel fvwm2 & +uim-xim & +uim-toolbar-gtk3 -0-0 & +#kterm -fg ivory -bg DarkSlateGray -geo 80x37-0+60 -T kterm: -lsp 0& +term-2& +# (sleep 6;kinput2) & +term-3 +# kterm diff --git a/.xinitrc.default~ b/.xinitrc.default~ new file mode 100755 index 0000000..8ad5583 --- /dev/null +++ b/.xinitrc.default~ @@ -0,0 +1,19 @@ +#!/bin/sh +NOFVWM=1 winsize +xclock -geometry 60x60-0+0& +##sleep 2 +xmodmap $HOME/.xmodmap +#xset fp+ tcp/localhost:7100 +#xset fp rehash +#setxkbmap -option ctrl:nocaps +#xset bc r s 300 3 +XMODIFIERS=@im=none emacs -geometry 80x32+0+0 -fn fontset-standard& +export XMODIFIERS=@im=uim GTK_IM_MODULE=uim # QT_IM_MODULE=uim +LANG=${LANG:-ja_JP.UTF-8} M4PATH=/etc/skel fvwm2 & +uim-xim & +uim-toolbar-gtk3 -0-0 & +#kterm -fg ivory -bg DarkSlateGray -geo 80x37-0+60 -T kterm: -lsp 0& +term-2& +# (sleep 6;kinput2) & +term-3 +# kterm diff --git a/.xmodmap b/.xmodmap new file mode 100644 index 0000000..3d12bb3 --- /dev/null +++ b/.xmodmap @@ -0,0 +1,12 @@ +clear mod2 +clear mod4 +clear lock +keysym Zenkaku_Hankaku = Kanji +keycode 51 = bracketright braceright +keycode 64 = Meta_L +keycode 113 = Meta_R +keycode 123 = backslash underscore +keycode 131 = Alt_L +keycode 133 = backslash bar +add mod2 = Alt_L +add mod1 = Meta_L diff --git a/.xsession b/.xsession new file mode 120000 index 0000000..03280df --- /dev/null +++ b/.xsession @@ -0,0 +1 @@ +.xinitrc \ No newline at end of file diff --git a/.zlogin b/.zlogin new file mode 100644 index 0000000..c49e486 --- /dev/null +++ b/.zlogin @@ -0,0 +1,3 @@ +# +# +source ${SKELDIR:-/etc/skel}/.zlogin.default diff --git a/.zlogin.default b/.zlogin.default new file mode 100644 index 0000000..76aea25 --- /dev/null +++ b/.zlogin.default @@ -0,0 +1,7 @@ +stty erase '^H' +if df $HOME | grep '' >/dev/null; then + (cd $HOME + for d in public_html; do + rm -rf $d && ln -s /usr/$HOME/$d . + done) +fi diff --git a/.zshcompctl b/.zshcompctl new file mode 100644 index 0000000..ce309a5 --- /dev/null +++ b/.zshcompctl @@ -0,0 +1,485 @@ +# This file gives some examples of compctl commands. +# You can either put the compctl commands in your .zshrc +# or include a separate file from your .zshrc with the +# source command. + +### +# complete database +### +# All completions for zsh. + +if [ -f ~/.rhosts ]; then + hostnames=(`awk '{print $1}' ~/.rhosts` ) +else + hosnames=(localhost) +fi + +if [ -f ~/.netrc ]; then + ftpsites=( `grep '^machine' ~/.netrc | awk '{print $2}'` \ + $hosts ) +else + ftpsites=($hosts) +fi + +# These are just examples, use and modify to personal taste. Copying this +# file without thought will needlessly increase zsh's memory usage and +# startup time. + +# For an explanation of what all this means, read either the +# introduction for some explanation or the manual for a detailed +# description. + +# Strip, profile, and debug only executables. The compctls for the +# debuggers could be better, of course. +compctl -g '*(x-)' strip gprof adb dbx xdbx ups + +# See the func/cdmatch function in the distribution +autoload cdmatch +#compctl -K cdmatch -S '/' -x 'S[/][~]' -g '*(-/)' -- cd pushd +#compctl -g "*(/)" -S / -x 'S[/][~]' -g '*(-/)' -- cd pushd chdir pu +compctl -g "(|.)*(-/)" cd pushd chdir pu apath + +# For rcs users, co and rlog from the RCS directory. We don't want to see +# the RCS and ,v though. +compctl -g 'RCS/*(:t:s/\,v//)' co rlog rcs + +# Anything after nohup is a command by itself with its own completion +# (the one for the trap builtin isn't perfect -- it does not complete +# signal names) +compctl -l '' nohup exec nice eval trap time fep sudo +compctl -l '' -x 'p[1]' -B -- builtin + +# kill takes signal names as the first argument after -, but job names after % +compctl -j -P % -x 's[-] p[1]' -k signals -- kill + +# gzip files, but gzip -d only gzipped or compressed files +compctl -f -x 'R[-*d,^*]' -g '(|.)*.(gz|z|Z) (|.)*(-/)' + -g '(|.)*(-/)' -- gzip +compctl -g '*.gz *.z *.Z' + -g '(|.)*(-/)' gunzip # zcat if you use GNU +compctl -g '*.Z' + -g '(|.)*(-/)' uncompress zmore # zcat if you don't use GNU +## compctl -g '*.F' + -g '(|.)*(-/)' melt fcat + +## # find is very system dependend, this one is for GNU find. +## compctl -x 's[-]' -k "(daystart depth follow maxdepth mindepth noleaf version xdev \ +## amin anewer cmin cnewer ctime empty false fstype gid group inum links lname mmin \ +## mtime name newer nouser nogroup path perm regex size true type uid used user xtype \ +## exec fprint fprint0 fprintf ok print print0 printf prune ls)" - \ +## 'p[1]' -g '. .. *(-/)' - \ +## 'c[-1,-anewer][-1,-cnewer][-1,-newer][-1,-fprint][-1,fprint0][-1,fprintf]' -f - \ +## 'c[-1,-fstype]' -k '(ufs 4.2 4.3 nfs tmp mfs S51K S52K)' - \ +## 'c[-1,-group]' -s '$(groups)' - \ +## 'c[-1,-user]' -u - \ +## 'r[-exec,;][-ok,;]' -l '' -- find + +# xsetroot: gets possible colours, cursors and bitmaps from wherever. +# Uses two auxiliary functions. You might need to change the path names. +## Xcolours() { reply=($(awk '{ print $4 }' < /usr/lib/X11/X11/rgb.txt)) } +## Xcursor() { reply=($(awk '/^#define/ {print $2}' \ +## "3.0" ]]; then + compctl -C -c -x \ + 's[DISPLAY=]' -k hostnames -S ":0" - \ + 's[LANG=]' -k '(japanese C)' - \ + 's[TERM=]' -k '(vt100 kterm xterm news screen pc3 cons25)' - \ + 's[LESSCHARSET=]' -k '(japanese jis sjis ujis)' - \ + 'C[0,[A-Z][A-Z][A-Z_]*]' -v -S = + \ + -k '(LANG JAPANESE LESSCHARSET DISPLAY LD_LIBRARY_PATH)' -S = - \ + 'n[1,=]' -f +else + compctl -C -c -x \ + 's[DISPLAY=]' -k hostnames -S ":0" - \ + 's[LANG=]' -k (japanese C) - \ + 's[TERM=]' -k (vt100 kterm xterm news screen pc3 cons25) - \ + 's[LESSCHARSET=]' -k (japanese jis sjis ujis) - \ + 'C[0,[A-Z][A-Z][A-Z_]*]' -v \ + -k (LANG JAPANESE LESSCHARSET DISPLAY LD_LIBRARY_PATH) -S = - \ + 'n[1,=]' -f +fi +# Default completion maybe right of parameter assignment +compctl -D -f -x \ + 'C[-1,DISPLAY=*]' -k hostnames -S ":0" - \ + 'C[-1,LANG=*]' -k "(japanese C)" - \ + 'C[-1,PAGER=*]' -k "(less more)" - \ + 'C[-1,TERM=*]' -k "(vt100 kterm xterm news screen)" - \ + 'C[-1,*PATH*=*]' -f - \ + 'C[-1,LESSCHARSET=*]' -k "(japanese jis sjis ujis)" + +# setenv (personal function) +compctl -f -x \ + 'p[1]' -v + -k "(LANG DISPLAY TERM LESSCHARSET)" - \ + 'c[-1,DISPLAY]' -k hostnames -S ":0" - \ + 'c[-1,LANG]' -k "(japanese C)" - \ + 'c[-1,PAGER]' -k "(less more)" - \ + 'c[-1,TERM]' -k "(vt100 kterm xterm news screen)" - \ + 'c[-1,LESSCHARSET]' -k "(japanese jis sjis ujis)" -- setenv + +# Similar things for tex, texinfo and dvi files. +compctl -g '*.tex*' + -g '*(-/)' {big,}{J,j,}latex {big,}{J,j,}tex +compctl -g '*.dvi' + -g '*(-/)' -x \ + 'c[-1,-o]' -k "(landscape a5 b4 b4landscape)" -- dvi2ps jdvi2kps + +### +# for archivers and compression tools +### +compctl -f -x 'p[1,2]' \ + -g "*(-/) *.[Ll][Zz][Hh] *.[Ee][Xx][Ee]" -- lha lhp +compctl -f -x 'p[1]' -g "*(-/) *.[Aa][Rr][Cc]" -- arc +compctl -f -x 'p[1,2]' -g "*(-/) *.[Zz][Ii][Pp]" -- zip unzip +compctl -f -x 'p[1,2]' -g "*(-/) *.[Aa][Rr][Jj]" -- unarj +compctl -g "*(-/) *.(Z|z|gz)" zmore zless zgrep zcmp + +### +# for printers +### +printers=(sp620 cclbp{9,c}) +compctl -f -x 's[-P]' -k "($printers)" -- lp{r{,m},q} +compctl -f -x 'p[1]' -k "(abort enable disable help restart status topq \ + clean down start stop up)" - \ + 'p[2]' -k "($printers)" -- lpc +unset printers + +### +# for X-window +### +winopt=(geometry display fg bg fn popup_geometry) +# The next line is the template +# 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' +compctl -x \ + 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' - \ + 'c[-1,-geometry]' -k "(+0+0 80x37+0+0 80x26+0+0)" -- kterm xterm +compctl -g '*.dvi *(-/)' -x \ + 's[-]' -k "($winopt s S p l paper keep rv)" - \ + 'c[-1,-paper]' -k "(a4r)" - \ + 'c[-1,-display]' -k hostnames -S ':0 ' -- xdvi +compctl -g "*.ps *.eps ^*.* *(-/)" -x \ + 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' \ + -- ghostview gs +compctl -caF -x \ + 'p[1]' -k hostnames - \ + 'c[-1,-l]' -k "(yuuji)" - \ + 's[-]' -k winopt - 'c[-1,-display]' -k '($DISPLAY)' -S ' ' - \ + 'p[2,-1]' -l '' -- rsh rs + +compctl -caF -x \ + 'p[1]' -k hostnames - \ + 'c[-1,-l]' -k "(yuuji)" - \ + 'C[-1,-[RL]] C[0,[0-9]*] n[1,:]' -k hostnames -S : - \ + 's[-]' -k winopt - 'c[-1,-display]' -k '($DISPLAY)' -S ' ' - \ + 'C[-2,-[RLlp]][-1,-[fnqPtvxC]]' -k hostnames - \ + 'p[-1]' -l '' -- ssh + +compctl -caF -x 'p[1]' -k hostnames - \ + 'c[-1,kterm] s[-]' -k '(fn fl fk T)' - \ + 'p[2,-1]' -l '' - \ + 'c[-1,-fl]' \ + -k '("-*-fixed-medium-normal--16-iso*")' \ + -S ' -fn 8x16 -fk kanji16&' - \ + -- xon xrsh +compctl -x \ + 's[-]' -k winopt - \ + 'c[-1,-display]' -k hostnames -S ':0 ' - \ + 'c[-1,-file]' -f - \ + 'C[-1,-*geometry]' -k '(+0+0 +400+0 -0+0)' -- xpbiff xbiff + +compctl -f -x \ + 's[-]' -k winopt + -k \ + '(owncmap expand gamma aspect best24 mono wait nolimits 2xlimit)' - \ + 'C[-1,-geometry]' -k '(+1+1)' -- xv xv8 + + +glob_netscape () { + local n a p + read -cA a + read -cn n + p=`echo $a[$n]|sed 's,.*~yuuji/,,'` + reply=(~/http/$^p*(N:s,$HOME/http/,,)) +} + +compctl -x \ + 's[http://vfr/~yuuji/]' -K glob_netscape -- netscape + +# C compilers +compctl -g "*.[cCoa]" -x 's[-I][-L]' -g "*(/)" - \ + 'C[-1,-o]' -g "*.c(:r)" - \ + 's[-l]' -s '${(s.:.)^LD_LIBRARY_PATH}/lib*.a(:t:r:s/lib//) \ + /usr/{,*/}lib/lib*.a(:t:r:s/lib//)' -- cc gcc + +# Java compiler and interpreter +compctl -g "*(-/) *.java" javac +compctl -g "*.class(:r)" -x \ + 'p[2,-1]' -f -- java kaffe + +### +# for netpbm +### +compctl -f -x 's[-]' -k '(interlace transparent)' -- ppmtogif +compctl -f -x 'p[1]' -k '(256 200)' -S ' | ppmtogif' -- ppmquant + +### +# for ImageMagick +### +compctl -f -x \ + 's[-]' -k '(colors delay gamma geometry interlace monochrome \ + quality rotate)' - \ + 'c[-1,-interlace]' -k '(line none plane partition)' -- convert + +### +# Miscellaneous +### +# GNU Emacs +compctl -g "^*[#~] .*" -x \ + 's[-]' -k "(user nw batch e insert kill load display geometry)" - \ + 's[+]' -X "Line number" - \ + 'c[-2,-batch] c[-1,-e]' -k "(batch-byte-compile)" - \ + 'c[-1,-batch]' -k "(-e)" -S ' batch-byte-compile ' - \ + 'c[-1,-e]' -k "(mew mh-rmail mh-smail resume-windows trr)" - \ + 'c[-1,-display]' -k hostnames -S ":0 " - \ + 'c[-1,-geometry]' -k "(+0+0 80x37+0+0 80x26+0+0)" - \ + 'c[-1,-user]' -u -- mule $emacs m1 tamago canna emacs + +compctl -g "*(-/)" -x \ + 's[-]' -k '(fstype name perm prune type user nouser group nogroup \ + size \ + inum atime mtime ctime exec ok print ls cpio ncpio newer \ + xdev depth)' - \ + 'c[-1,-type]' -k '(c b d f p l s)' - 'c[-1,-user]' -u - \ + 'r[-exec,;][-ok,;]' -l '' -- find + +compctl -x \ + 'c[-1,-f]' -g "[Mm]ake* *.[Mm]*[Kk] *(-/)" - \ + 's[CC]' -P "='" -k '(gcc cc)' -S " -pipe" - \ + 'S[CF]' -S "='" -k '(CFLAGS)' - \ + 's[-I],s[-L]' -g "*(-/)" -- make gmake + +compctl -g "(|.)*~*.[ch] *(-/)" rm + +compctl -f -x \ + 'c[-1,-man]' -g "*.[0-9] *.man *(-/)" -- nroff jgroff + +compctl -g "(|*).obj *(-/)" tgif prtgif + +compctl -f -x \ + 's[-]' -k '(s R mv rm mkindex refresh pick flush perf \ + delete reclassify)' - \ + -- ftpurl +compctl -g "(|*).(smc|SMC)(|.gz) *(-/)" snes9x +compctl -g "(|*).(nes|NES)(|.gz) *(-/)" ines +compctl -x 's[if=],s[of=]' -f -- dd +compctl -x \ + 'n[1,freebsd]' -k '(2.2.8 3.1)' - \ + 'n[1,i386]' -k '(-amd-freebsd -intel-freebsd)' - \ + 'n[1,i586]' -k '(-amd-freebsd -intel-freebsd)' - \ + 'n[1,=]' -k '(yes no)' + -f - \ + 's[--]' -k '(prefix disable with-mule program-prefix target \ + with-canna with-canna-libraries with-canna-includes)' -S '=' - \ + 's[i]' -k '(386-amd-freebsd 586-intel-freebsd)' -S '' - \ + 'S[s]' -k '(sparc-sun-netbsd1.3.1 sparc-sun-sunos)' -S '' - \ + -- configure conf + +glob_syncdir () { + local n a p=1 table=${SYNCDIRTABLE:-~/.syncdir} lo + read -cA a #$B%3%^%s%I%i%$%sA4BN$rG[Ns(B a $B$KF~$l$k(B + read -cn n #$B0z?t$N?t$r(B n $B$KF~$l$k(B + while [[ $p -lt $n ]] { + [[ -f $a[$p] && "$lo" = "-f" ]] && table=$a[$p] + lo=$a[$p] + p=$[++p] + } + reply=(`sed -n "/[^A-z]/s/:.*//p" $table`) +} +compctl -g "(.|)*(-/)" -x \ + 's[-]' -k '(d l L e n N p x q f V r a A)' - \ + 'c[-1,-f]' -f - \ + 'c[-1,-V]' -K glob_syncdir -- syncdir diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..ac442ea --- /dev/null +++ b/.zshenv @@ -0,0 +1,7 @@ +# +# + +export SKELDIR=/etc/skel +source $SKELDIR/.zshenv.default + +# �Ŀ����꤬����аʲ��˽� diff --git a/.zshenv.default b/.zshenv.default new file mode 100644 index 0000000..2bd817f --- /dev/null +++ b/.zshenv.default @@ -0,0 +1,35 @@ +path=(/usr/{,s}bin /{,s}bin /usr/X*/bin(N) /usr/{koeki,local}/{bin,etc}(N) /usr/{koeki,local}/bin/[A-Z]*(N-/)) +manpath=(/usr/share/man /usr/local/man /usr/{koeki,local}/*/man(N-/) /var/qmail/man) + +HISTFILE=~/.history +HISTSIZE=1000 +SAVEHIST=2000 + +export PAGER=less +export JLESSCHARSET=japanese-utf +export INPUT_METHOD=mozc +export MAILDIR=~/maildir +export LC_CTYPE=ja_JP.UTF-8 LC_MESSAGES=ja_JP.UTF-8 +export BLOCKSIZE=m + +setopt auto_menu auto_cd correct auto_name_dirs auto_remove_slash share_history +setopt extended_history hist_ignore_dups hist_ignore_space prompt_subst +setopt pushd_ignore_dups rm_star_silent sun_keyboard_hack +setopt extended_glob list_types no_beep always_last_prompt +setopt cdable_vars sh_word_split auto_param_keys + +# This should be in .zshenv for xdm environment. +limit coredumpsize 0 + +case $USER in + c[123][0-9][0-9]*) + yearmod=$[`expr ${USER##c[123]} : '\(..\)'` % 4] + case $yearmod in + 1) QMAILHOST=e.koeki-u.ac.jp ;; + 2) QMAILHOST=f.koeki-u.ac.jp ;; + 3) QMAILHOST=g.koeki-u.ac.jp ;; + 0) QMAILHOST=h.koeki-u.ac.jp ;; + *) QMAILHOST=e.koeki-u.ac.jp ;; + esac + export QMAILHOST +esac diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..2a0755c --- /dev/null +++ b/.zshrc @@ -0,0 +1,3 @@ +# +# +source ${SKELDIR:-/etc/skel}/.zshrc.default diff --git a/.zshrc.default b/.zshrc.default new file mode 100644 index 0000000..c123849 --- /dev/null +++ b/.zshrc.default @@ -0,0 +1,14 @@ +bindkey -e +bindkey '^p' history-beginning-search-backward +bindkey '^n' history-beginning-search-forward +alias ls='ls -F' +alias ll='ls -la' +dir() {ls -lF $*|TERM=dumb JLESSCHARSET= more} + +PROMPT='%{[$[32+$RANDOM % 5]m%}%U%B%m'"{`whoami`}%b%%%{%}%u " +RPROMPT="[%U%~%u]" +limit coredumpsize 0 +source ~/.zshcompctl +mesg y + +[[ -f /etc/template/.zshaux ]] && source /etc/template/.zshaux