はてなダイアリーをEmacsで
hatedara.el + hatenahelper-mode.el ではてなダイアリーを書くためのメモ。
必要なもの
- hatedara.el
- いまはリンク先がないみたい
- hw.pl(hatedara.elで使用)
- hatenahelper-mode.el
hatedara.el と hatenahelper-mode.el は load-pathの通った場所に置く。hw.pl は、~/local/bin に。
.emacsの設定
.emacs に以下を追加。
(require 'hatedara) (setq hatedara-directory "/hu/vfat/diary") ; 日記を保存するディレクトリ (setq hatedara-script-file "~/local/bin/hw.pl") ; はてダラスクリプトの指定 (require 'hatenahelper-mode) (add-hook 'hatedara-mode-hook '(lambda () (hatenahelper-mode 1)))