Skip to content

Instantly share code, notes, and snippets.

@Arakaki-Yuji
Created February 8, 2016 02:54
Show Gist options
  • Save Arakaki-Yuji/f5b9fdd58ffa0176e3a0 to your computer and use it in GitHub Desktop.
Save Arakaki-Yuji/f5b9fdd58ffa0176e3a0 to your computer and use it in GitHub Desktop.
;; 日記を簡単に書けるように設定する
;;;; 日記を保存しておくディレクトリを設定
(setq diary-note-path "~/Dropbox/TextSync/Diary/")
;;;; 今日の日記ファイルのパスを返す
(defun diary-today-note ()
(concat diary-note-path (format-time-string "%Y/%m/%d") ".md"))
;;;; 今日の日記ファイルを開く or なければ作成する
(defun diary-open-today-note ()
(interactive)
(find-file (diary-today-note)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment