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 9c2a18b commit 3ce7324
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions bin/timeclock.pl
Expand Up @@ -199,22 +199,22 @@ =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)))
(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.
Expand Down

0 comments on commit 3ce7324

Please sign in to comment.