2012-03-01から1ヶ月間の記事一覧

cfw:open-howm-calendar して今日の howm に日付だけ挿入できればいいや

(defun my-cfw-open-schedule-buffer () (interactive) (let ((date (cfw:cursor-to-nearest-date))) (howm-find-today) (goto-char (point-max)) (insert (format "[%04d-%02d-%02d]@ " (calendar-extract-year date) (calendar-extract-month date) (calen…

calendar の曜日とか月とかの表示を変える

;; 月 (setq calendar-month-name-array (vconcat (mapcar (lambda (n) (concat n "月")) (mapcar 'number-to-string [1 2 3 4 5 6 7 8 9 10 11 12])))) ;; 曜日 (setq calendar-day-name-array (vconcat (mapcar (lambda (n) (concat (char-to-string n) "…

mozrepl でリロード、タブ操作、Google・ALC 検索

参考 Firefox と Emacs の会話 | Amrta Firefox で閲覧中の画面を Emacs からスムーススクロールする elisp - memo (autoload 'moz-minor-mode "moz" "Mozilla Minor and Inferior Mozilla Modes" t) (moz-minor-mode t) (defun moz-close-tab-or-window () …

いまさら flyspell を動かした

参考 よしいずの雑記帳 Windows XPにおけるispell for Win32のセットアップ作業のメモ 【Proton.jp】 ispellの設定と利用法 本文 ispell 入れなきゃいけないのかと思ったら aspell でいいのね。cygwin にくっついてきていたので emacs の設定だけで動いた。 …

emacs-google の calendar をローカルの Timezone を使うようにしたのと Windows 対応

https://github.com/yewton/emacs-google-calendar にあげました。…元の作者さんに連絡したほうがよいのだろうなぁ

Google カレンダー連携して howm メニューに表示

Meadow/Emacs memo: メモを書こうに、homw menu に diary を表示する方法がある。Google calendar と diary の連携は[emacs][google][calendar]Emacs の calendar と Google カレンダーを連携させるをすれば出来るので、この両方をやれば目的を達成できるこ…

windows で magit を使いはじめるまで

参考 magit - メモ用なWiki - livedoor Wiki(ウィキ) 本文 落としてくる Downloads · magit/magit make とか持って無いし要はバイトコンパイルするだけのようなので、下のようなのをでっちあげる ;; M-x eval-buffer (setq load-path (cons (expand-file-n…

カーソル下の数字っぽいものをインクリメント・デクリメントする

参考あるいはパクリ元 カーソルの位置にある数字列をインクリメントする emacs lisp 改修 - 質のないDiary H 本文 vim の Ctrl+a, Ctrl+x に相当するらしい機能。参考元にプラスでデクリメントをつけ、ついでに samrt-rep の設定例を。 (defun operate-strin…

calendar で日付選択して貼り付ける関数作った

デフォルトで howm 形式のフォーマットで出力する。 (calendar-exit)して(insert)しているので、ウインドウ構成によっては思ったところに貼り付けられないかもしれない。前にいた window をとれたらいいんだけど。 (eval-after-load "calendar" '(progn (def…

Emacs の calendar と Google カレンダーを連携させる

はじめに Google カレンダーを Emacs で見る方法があるというので探してみたが、そのままでは Windows 上で動かなかった。 動くようにする方法を書く。(追記アリ) 参考 まぁるいしっぽ:emacsのカレンダーでgoogle calendarを読み込む googlecalendar - emacs…

ウインドウ最大化トグルコマンド

http://www.bookshelf.jp/2ch/software/1005469775.html#808 ;; フレームサイズをトグルで切り替え (setq my-frame-max-flag nil) (defun my-toggle-frame-size () (interactive) (if my-frame-max-flag (progn (w32-send-sys-command 61728);; 最大化を元に…

コミットログに自動でブランチ名を入れる2

http://d.hatena.ne.jp/yuto_sasaki/20120127/1327650259 を改良 ;; http://hogepiyo.cmo/svn/hoge/branches/hogepiyo/dottokom ;; dsvn defadvice ;; Emacs/Lisp/Drill - Emacsグループ <http://emacs.g.hatena.ne.jp/k1LoW/200810> (defadvice svn-commit (around svn-commit-around activate) (goto-</http://emacs.g.hatena.ne.jp/k1low/200810>…

ETag に "W/" がついたりつかなかったりする

httpd-2.2.22 の modules/http/http_etag.c の app_make_etag 関数のコメントに、以下のように書いてある。 /* * Construct an entity tag (ETag) from resource information. If it's a real * file, build in some of the file characteristics. If the mo…