* Menu
[[About:self:AboutPage.txt]] | [[Profile:file/southly/]] | [[まとめ:self:1163859357.txt]] | [[オリジナル:http://ninjinix.x0.com/rn/]] | [[xyzzy:lisp/]] | [[あんてな:listall]] | [[■:lisp]] | [[buzz:files/southly#buzz]]
- xyzzy topic : $XYZZY/lispのファイルはread-onlyで開く
- xyzzy topic : bufbar2, popup-key, www-search更新
- xyzzy topic : KaMailV3
- xyzzy topic : はてダラを使いやすく
- xyzzy topic : 「らいおさむのお屋敷」さん復帰
- xyzzy topic : The Body Asterisk ! - xyzzy + chalowのインストールメモ:
- xyzzy topic : xdoc2txt 0.8 リリース
- xyzzy topic : ふかふかさんいろいろ更新
- xyzzy topic : outline-tree2の使い方
- xyzzy topic : reftex-mode更新(Yutaka Nomura's Page / xyzzy)
- xyzzy topic : dsearch.l, den8view+.l 更新(きまぐれにxyzzy)
- xyzzy topic : den8view+.l, HE-grep.l更新 (きまぐれにxyzzy)
- xyzzy topic : reftex-mode (Yutaka Nomura's Page / xyzzy)
- xyzzy topic : den8view+.l (きまぐれにxyzzy)
* xyzzy topic : $XYZZY/lispのファイルはread-onlyで開く
lisp-dir-read-only
素直な方法はファイル属性を読み取り専用にすることだと思いますけど。
Lispでやるのなら自分だったら*lisp-mode-hook*に引っ掛けます。
string-matchp を使うと大差が無いのでこんなで。
って、修正が入ったのは[[2ch-modeなどのフレームでファイルを開かないようにする file]]のほうでしたね。
素直な方法はファイル属性を読み取り専用にすることだと思いますけど。
Lispでやるのなら自分だったら*lisp-mode-hook*に引っ掛けます。
string-matchp を使うと大差が無いのでこんなで。
(add-hook '*lisp-mode-hook* #'(lambda () (let ((lpath (append-trail-slash (merge-pathnames (si:system-root) "lisp")))) (if (string-equal lpath (get-buffer-file-name (selected-buffer)) :end2 (length lpath)) (toggle-read-only t)))))
って、修正が入ったのは[[2ch-modeなどのフレームでファイルを開かないようにする file]]のほうでしたね。
* xyzzy topic : bufbar2, popup-key, www-search更新
* xyzzy topic : KaMailV3
* xyzzy topic : はてダラを使いやすく
http://d.hatena.ne.jp/takef/20060320/1142829588
find-fileでバッファを作っても保存するまではファイルができないから、こんな感じでもよさそう。
find-fileでバッファを作っても保存するまではファイルができないから、こんな感じでもよさそう。
(defvar *hatedara-directory* "~/hatena") (defun hatedara () (interactive) (find-file (merge-pathnames *hatedara-directory* (format-date-string "%Y-%m-%d.txt"))))