summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-06-17 20:16:33 +0100
committerArun Isaac2024-06-17 20:16:33 +0100
commit21cfec3e75a475a5e421eae0cd29d98cf8d87ad0 (patch)
tree53be2edb4311d0c791a64d015b018862e1336fe4
parent4bb577f26b112ef6f5ed1171dee831bae33bb4c9 (diff)
downloadvaruga-21cfec3e75a475a5e421eae0cd29d98cf8d87ad0.tar.gz
varuga-21cfec3e75a475a5e421eae0cd29d98cf8d87ad0.tar.lz
varuga-21cfec3e75a475a5e421eae0cd29d98cf8d87ad0.zip
Suggest current subject as event summary.
* varuga.el (varuga-invite): Suggest current subject as event summary.
-rw-r--r--varuga.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/varuga.el b/varuga.el
index b7e24c3..ab2b73c 100644
--- a/varuga.el
+++ b/varuga.el
@@ -132,7 +132,10 @@ SUMMARY is a short description of the event. LOCATION is the
location of the event (typically a URI for online meetings).
WHEN is the encoded time when the event is scheduled. DURATION
is the length of the event in minutes."
- (interactive (list (read-string "Event Summary: ")
+ (interactive (list (read-string "Event Summary: "
+ (string-trim
+ (string-remove-prefix
+ "Re:" (message-fetch-field "Subject"))))
(read-string "Location: ")
(org-read-date t t nil "When?")
(org-duration-to-minutes