Skip to content

Instantly share code, notes, and snippets.

@zonuexe
Created September 28, 2012 02:41
Show Gist options
  • Save zonuexe/3797649 to your computer and use it in GitHub Desktop.
Save zonuexe/3797649 to your computer and use it in GitHub Desktop.
el-get で hatena-diary-mode を管理する

el-get で hatena-diary-mode を管理する

el-get ってなぁに?

最近流行ってるらしい Emacs のパッケージ管理システムだよ。 いろんなところからパッケージを取り込めるからとにかく楽だよ!

hatena-diary-mode ってなぁに?

むかしからアレなひとたちに大人気な無料 Web 日記のはてなダイアリーを Emacs から利用できるイカしたスクリプトだよ

これ使ったら何が良いの?

M-x el-get-update hatena-diary-mode とかで最新版にうpだてできたりするかもしれないよ。できないかもしれない…!

どうやってインストールするの?

el-getの導入は https://github.com/dimitri/el-get を読んでね。 新規で入れるなら Stable Branch じゃなくて Master Branch にするのが良いよ!

シェルから $HOME/.emacs.d/recipes みたいなディレクトリを作ってね。 そこに hatena-diary-mode.rcp をぽいっと配置します。

そして次のコードを .emacs に追加します。

(add-to-list 'el-get-recipe-path "~/.emacs.d/recioes")

できたら C-x C-e で評価するか、 Emacs を再起動します。前者の方がお手軽ですよ。

ここまでで準備が整ってれば M-x el-get-install hatena-diary-mode でインストールできるようになってます。でも個人的には .emacs ($HOME/.emacs.d/init.el) で (el-get 'sync 'hatena-diary-mode) とか書いておくのが好きですね…!

はい、この後は http://hatena-diary-el.sourceforge.jp/#sec-4 を読んで .emacs.d に個人設定をしてね…!

そしたら M-x hatena でいつでもふつーに起動可能な状態になってます。素敵ですね。

ライセンスは?

僕の著作物じゃないので hatena-diary-mode と同じが良いよね。 (といふか description を引用ではなく二次利用してるから、それ以外のライセンスにできないよね)

hatena-diary-mode.el --- major mode for Hatena::Diary (http://d.hatena.ne.jp)

This program supports the update of your Hatena-Diary.
This program is Elisp program that operates by Emacs.
Copyright (C) 2010 hirosandesu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

謝辞

これはすごい

(:name hatena-diary-mode
:website "http://sourceforge.jp/projects/hatena-diary-el/"
:description "major mode for Hatena::Diary"
:type git
:url "git://git.sourceforge.jp/gitroot/hatena-diary-el/hatena-diary.git")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment