Rename file, and make it go to 10.
This commit is contained in:
parent
41f86f9379
commit
e6a901057f
1 changed files with 5 additions and 2 deletions
|
@ -36,14 +36,14 @@ if ($? != 0) {
|
|||
exit 0;
|
||||
}
|
||||
my $now = ParseDate("now");
|
||||
open(THREE_DAYS, "-|", "/usr/bin/emacs -batch -l ~/.emacs -eval '(org-batch-agenda \"a\" org-agenda-files (mapcar (lambda (arg) (replace-regexp-in-string \"~/Crypt/Orgs/\" \"~/Crypt/.org-backup/\" arg)) org-agenda-files) org-agenda-span (quote 9) org-agenda-overriding-header \"\" org-agenda-repeating-timestamp-show-all t org-agenda-time-grid nil org-agenda-repeating-timestamp-show-all t org-agenda-entry-types (quote (:sexp :scheduled)) org-agenda-skip-function (quote bkuhn/skip-unless-appt-or-diary))' 2>/dev/null") or
|
||||
open(ORG_MODE_AGENDA, "-|", "/usr/bin/emacs -batch -l ~/.emacs -eval '(org-batch-agenda \"a\" org-agenda-files (mapcar (lambda (arg) (replace-regexp-in-string \"~/Crypt/Orgs/\" \"~/Crypt/.org-backup/\" arg)) org-agenda-files) org-agenda-span (quote 10) org-agenda-overriding-header \"\" org-agenda-repeating-timestamp-show-all t org-agenda-time-grid nil org-agenda-repeating-timestamp-show-all t org-agenda-entry-types (quote (:sexp :scheduled))))' 2>/dev/null") or
|
||||
die "Unable to run emacs: $!";
|
||||
|
||||
my $firstDay;
|
||||
my $dayLine = "";
|
||||
my $prettyDayLine;
|
||||
|
||||
while (my $line = <THREE_DAYS>) {
|
||||
while (my $line = <ORG_MODE_AGENDA>) {
|
||||
my $thisLinePrintable;
|
||||
chomp $line;
|
||||
if ($line =~ /^\S+/) {
|
||||
|
@ -95,6 +95,9 @@ while (my $line = <THREE_DAYS>) {
|
|||
print $thisLinePrintable, "\n";
|
||||
}
|
||||
}
|
||||
close ORG_MODE_AGENDA;
|
||||
die "Error($?) reading org mode output: $!" unless $? == 0;
|
||||
exit 0;
|
||||
###############################################################################
|
||||
#
|
||||
# Local variables:
|
||||
|
|
Loading…
Add table
Reference in a new issue