[Projects] Simplify generation of .projectile file

This commit is contained in:
Daniel - 2018-08-05 16:26:01 +02:00
parent b64c830ac5
commit 843714c39b
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 2 additions and 3 deletions

View File

@ -48,9 +48,8 @@
(format-time-string "[%Y-%m-%d %a %H:%M]" (current-time))))
(write-file (expand-file-name "projekttagebuch.org" project-directory))
(bookmark-set (format "Projekttagebuch %s" short-name)))
(with-temp-buffer
(insert (format "%s" long-name))
(write-file (expand-file-name ".projectile" project-directory)))))
(write-region (format "%s" long-name) nil
(expand-file-name ".projectile" project-directory))))
(defun projects-archive-project (short-name)
"Archive existing project."