Mercurial > emacs
comparison man/calendar.texi @ 36145:c70d510bdb54
Various clarifications.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 17 Feb 2001 15:55:16 +0000 |
parents | 4711c3854433 |
children | 11db0318031d |
comparison
equal
deleted
inserted
replaced
36144:22f75550e788 | 36145:c70d510bdb54 |
---|---|
5 @chapter The Calendar and the Diary | 5 @chapter The Calendar and the Diary |
6 @cindex calendar | 6 @cindex calendar |
7 @findex calendar | 7 @findex calendar |
8 | 8 |
9 Emacs provides the functions of a desk calendar, with a diary of | 9 Emacs provides the functions of a desk calendar, with a diary of |
10 planned or past events. It also has facilities for other related tasks, | 10 planned or past events. It also has facilities for managing your |
11 such as managing your appointments, or keeping track of how much time | 11 appointments, and keeping track of how much time you spend working on |
12 you spend working on a certain project. | 12 certain projects. |
13 | 13 |
14 To enter the calendar, type @kbd{M-x calendar}; this displays a | 14 To enter the calendar, type @kbd{M-x calendar}; this displays a |
15 three-month calendar centered on the current month, with point on the | 15 three-month calendar centered on the current month, with point on the |
16 current date. With a numeric argument, as in @kbd{C-u M-x calendar}, it | 16 current date. With a numeric argument, as in @kbd{C-u M-x calendar}, it |
17 prompts you for the month and year to be the center of the three-month | 17 prompts you for the month and year to be the center of the three-month |
371 If the variable @code{cal-tex-holidays} is non-@code{nil} (the default), | 371 If the variable @code{cal-tex-holidays} is non-@code{nil} (the default), |
372 then the printed calendars show the holidays in @code{calendar-holidays}. | 372 then the printed calendars show the holidays in @code{calendar-holidays}. |
373 If the variable @code{cal-tex-diary} is non-@code{nil} (the default is | 373 If the variable @code{cal-tex-diary} is non-@code{nil} (the default is |
374 @code{nil}), diary entries are included also (in weekly and monthly | 374 @code{nil}), diary entries are included also (in weekly and monthly |
375 calendars only). If the variable @code{cal-tex-rules} is non-@code{nil} | 375 calendars only). If the variable @code{cal-tex-rules} is non-@code{nil} |
376 (the default is @code{nil}), the calendar styles with sufficient room | 376 (the default is @code{nil}), the calendar displays ruled pages |
377 have ruled pages. | 377 in styles that have sufficient room. |
378 | 378 |
379 @node Holidays | 379 @node Holidays |
380 @section Holidays | 380 @section Holidays |
381 @cindex holidays | 381 @cindex holidays |
382 | 382 |
1441 after midnight local time when the transition to and from daylight | 1441 after midnight local time when the transition to and from daylight |
1442 savings time should occur. For Cambridge, Massachusetts both variables' | 1442 savings time should occur. For Cambridge, Massachusetts both variables' |
1443 values are 120. | 1443 values are 120. |
1444 | 1444 |
1445 @node Time Intervals | 1445 @node Time Intervals |
1446 @section Keeping Track of Time Intervals | 1446 @section Summing Time Intervals |
1447 @cindex time intervals, keeping track of | 1447 @cindex time intervals, summing |
1448 @cindex project, time spent working on | 1448 @cindex summing time intervals |
1449 | 1449 @cindex timeclock |
1450 Emacs can help you keep track of time intervals. A typical scenario | 1450 |
1451 is to keep track of how much time you spend working on certain projects. | 1451 The timeclock feature adds up time intervals, so you can (for |
1452 instance) keep track of how much time you spend working. | |
1452 | 1453 |
1453 @findex timeclock-in | 1454 @findex timeclock-in |
1454 @findex timeclock-out | 1455 @findex timeclock-out |
1455 @findex timeclock-workday-remaining | 1456 @findex timeclock-workday-remaining |
1456 @findex timeclock-when-to-leave | 1457 @findex timeclock-when-to-leave |
1457 Use the @kbd{M-x timeclock-in} command when you start working on a | 1458 Use the @kbd{M-x timeclock-in} command when you start working on a |
1458 project, and @kbd{M-x timeclock-out} command when you're done. Once | 1459 project, and @kbd{M-x timeclock-out} command when you're done. Each |
1459 you've collected some data, you can use @kbd{M-x | 1460 time you do this, it adds one time interval to the record of the project. |
1460 timeclock-workday-remaining} to see how much time is left to work today | 1461 |
1461 (assuming a typical average of 8 hours a day), and @kbd{M-x | 1462 Once you've collected data from a number of time intervals, you can use |
1462 timeclock-when-to-leave} which will calculate when you're free to go. | 1463 @kbd{M-x timeclock-workday-remaining} to see how much time is left to |
1464 work today (assuming a typical average of 8 hours a day), and @kbd{M-x | |
1465 timeclock-when-to-leave} which will calculate when you're ``done.'' | |
1463 | 1466 |
1464 @vindex timeclock-modeline-display | 1467 @vindex timeclock-modeline-display |
1465 @findex timeclock-modeline-display | 1468 @findex timeclock-modeline-display |
1466 If you want Emacs to display the amount of time ``left'' of your | 1469 If you want Emacs to display the amount of time ``left'' of your |
1467 workday in the mode line, either customize the | 1470 workday in the mode line, either customize the |
1468 @code{timeclock-modeline-display} variable and set its value to | 1471 @code{timeclock-modeline-display} variable and set its value to |
1469 @code{t}, or invoke the @kbd{M-x timeclock-modeline-display} command. | 1472 @code{t}, or invoke the @kbd{M-x timeclock-modeline-display} command. |
1470 | 1473 |
1471 @vindex timeclock-ask-before-exiting | 1474 @vindex timeclock-ask-before-exiting |
1472 Ending the current Emacs session might or might not mean that you stop | 1475 Terminating the current Emacs session might or might not mean that |
1473 working on the project. If you'd like Emacs to ask you about this, set | 1476 you have stopped working on the project. If you'd like Emacs to ask |
1474 the value of the variable @code{timeclock-ask-before-exiting} to | 1477 you about this, set the value of the variable |
1475 @code{t} (via @kbd{M-x customize}). By default, only an explicit | 1478 @code{timeclock-ask-before-exiting} to @code{t} (via @kbd{M-x |
1476 @kbd{M-x timeclock-out} tells Emacs you stopped working on a project. | 1479 customize}). By default, only an explicit @kbd{M-x timeclock-out} |
1480 tells Emacs that the current interval is over. | |
1477 | 1481 |
1478 @cindex @file{.timelog} file | 1482 @cindex @file{.timelog} file |
1479 @vindex timeclock-file | 1483 @vindex timeclock-file |
1480 @findex timeclock-reread-log | 1484 @findex timeclock-reread-log |
1481 The timeclock functions work by accumulating the data on a file called | 1485 The timeclock functions work by accumulating the data on a file |
1482 @file{.timelog} in the user's home directory. (On MS-DOS, this file is | 1486 called @file{.timelog} in your home directory. (On MS-DOS, this file |
1483 called @file{_timelog}, since leading dots in file names are not | 1487 is called @file{_timelog}, since an initial period is not allowed in |
1484 allowed.) The name of this file can be changed by customizing the | 1488 file names on MS-DOS.) You can specify a different name for this file |
1485 variable @code{timeclock-file}. If you edit this file manually, or if | 1489 by customizing the variable @code{timeclock-file}. If you edit the |
1486 you change the value of any of timeclock's customizable variables, you | 1490 timeclock file manually, or if you change the value of any of |
1487 should run the command @kbd{M-x timeclock-reread-log}. This will | 1491 timeclock's customizable variables, you should run the command |
1488 recompute any discrepancies in your average working time, and will make | 1492 @kbd{M-x timeclock-reread-log} to update the data in Emacs from the |
1489 sure that the various display functions return the correct value. | 1493 file. |