Created
February 8, 2016 02:54
-
-
Save Arakaki-Yuji/f5b9fdd58ffa0176e3a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 日記を簡単に書けるように設定する | |
;;;; 日記を保存しておくディレクトリを設定 | |
(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