Created
September 9, 2009 02:43
-
-
Save kawaguchi/183421 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
(defadvice find-file | |
(before find-file-create-intermediate-directories (filename &optional wildcards)) | |
"中間ディレクトリが存在しない時は作成する" | |
(let ((dir (file-name-directory filename))) | |
(if (and dir | |
(not (file-exists-p dir))) | |
(make-directory dir t)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment