Skip to content

Commit

Permalink
Update timeclock.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
soren committed Dec 18, 2018
1 parent d8ad93c commit 9f7a799
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions bin/timeclock.pl
Expand Up @@ -194,28 +194,4 @@ =head1 CONFIGURATION
define the location of the timelog file there. Example:
$timelog = "$ENV{HOME}/MEGA/timelog";
=head2 Emacs Integration
You could add the following to you .emacs file to integrate
L<timeclock.pl> into Emacs:
(defun timeclock-show-daily-report()
"Creates and displays a daily report of timeclock entries."
(interactive)
(let ((process-connection-type nil) ; Use a pipe.
(command-name "timeclock")
(buffer-name "*timeclock daily report*")
(script-name "timeclock.pl"))
(when (get-buffer buffer-name)
(progn
(set-buffer buffer-name)
(set-buffer-modified-p nil)
(erase-buffer)))
(set-buffer (get-buffer-create buffer-name))
(start-process command-name buffer-name "perl" "-S" script-name)
(switch-to-buffer buffer-name)))
And then use C<M-x timeclock-show-daily-report RET> to display the
report.

0 comments on commit 9f7a799

Please sign in to comment.