Redmine Plugin開発メモ その1、まずはPluginの作り方から。

言語ファイルを格納しても

 translation missing: ja,・・・・

と表示される場合の対処方法。

vendor/plugins/xxxxx/lang/ja.yml を
vendor/plugins/xxxxx/config/locales/ja.yml にコピーみる。
Rails 2.2以降は国際化対応でファイルの置き場所が変わっている。

参考:http://groups.google.com/group/redmine-users-ja/browse_thread/thread/bc0397e0889a644e

xyzzyのキーワード設定

◇とか■がついたとき、文字の色を変える設定

;;;***************************************************************************
;テキストモード時の色設定
(add-hook '*text-mode-hook*
		  (function (lambda () (setq abbrev-mode t)
					  (setq highlight-keyword t)
					  (text-parenthses-colorize))))

(defvar *text-paretheses-colorize* nil)
(setq *text-paretheses-colorize* (make-hash-table))
(setf (gethash #\「 *text-paretheses-colorize*) #\」)
(setf (gethash #\『 *text-paretheses-colorize*) #\』)
(setf (gethash #\〈 *text-paretheses-colorize*) #\〉)
(setf (gethash #\【 *text-paretheses-colorize*) #\】)
(setf (gethash #\≪ *text-paretheses-colorize*) #\≫)
(setf (gethash #\〔 *text-paretheses-colorize*) #\〕)
(setf (gethash #\[ *text-paretheses-colorize*) #\])
(setf (gethash #\{ *text-paretheses-colorize*) #\})
(setf (gethash #\《 *text-paretheses-colorize*) #\》)
(setf (gethash #\< *text-paretheses-colorize*) #\>)

(defun text-parenthses-colorize ()
  (interactive)
  (setq parentheses-hash-table *text-paretheses-colorize*)
  (setq highlight-keyword t))

;;テキストの色を変更する
(defvar *text-mode-formats*
  (compile-regexp-keyword-list
   '(
	 ("^[□■◇◆○●\.\-].*" t (:color 10 0 :bold :underline))
	 ("^[@].*" t 6)
	 ("^[\*].*" t 3)  ;以下のように書けばとりあえず設定は可能。
	 )
   )
  ) ;

;
(setq regexp-keyword-list *text-mode-formats*)   
(add-hook 'text-mode-hook 'my-color-text-mode)

(defun my-color-text-mode ()
  (make-local-variable 'regexp-keyword-list)       
  (setq regexp-keyword-list *text-mode-formats*)   
  )

参考:
http://www.geocities.co.jp/Technopolis-Mars/8229/xyzzy/xyzzy-color.html

xyzzy+howm(howm-wrap)について

xyzzyhowm(howm-wrap)について

■設定を行ったのでメモ。

まずはダウンロード。
http://homepage3.nifty.com/~ko-ji/

1.1.0.3用(本体無し)をダウンロードし、インストール。
# 別途1.1.0.3本体も必要になるため、ダウンロードしておく。

上記でとりあえずセットアップはおしまい。
続いて、.xyzzyのカスタマイズ。

;; howmの設定
(pushnew (merge-pathnames "site-lisp/howm/" (si:system-root))
         *load-path* :test #'string-equal)
(require "howm-wrap")
;; `howm-init.l' をコピーしてない場合、以下を有効に。
;; 日本語メニューを使う。
(setq elisp-lib::howm-menu-lang 'elisp-lib::ja)

;; elisp-libが必要。ようやく一覧にタイトルが出るようになった。
;; 結構てこずった。。。。
(in-package "elisp-lib")

(setq howm-list-recent-title t)  ;; 「最近のメモ」の一覧時
(setq howm-list-all-title t)  ;; 「全メモ」の一覧時
(setq howm-view-split-horizontally t)

; メモ溜ディレクトリ。
(setq howm-directory "Z:/MyDocuments/SyncDir/howm")

ポイントは(in-package "elisp-lib")
忘れないように設定必要。

参考:http://xyzzy.s53.xrea.com/wiki/index.php?%BC%C1%CC%E4%C8%A2%2F99

sakura editorのgrep を右クリックから実行

http://3tackle.blog55.fc2.com/blog-entry-20.html
ここを参考にした。

以下の設定を実施し、動作を確認。

Folder
|- shell
|- sakura grep
|- command

command:規定,REG_SZ,"E:\Program Files\sakura\sakura.exe" -GREPMODE -GREPDLG -GFOLDER="%1" -GOPT="S"