You are here:About>Computing & Technology>Focus on Linux> Linux Software> Editors> Emacs> Emacs Documentation - Move to Beginning or End
About.comFocus on Linux
Newsletters & RSSEmail to a friendSubmit to Digg

Move to Beginning or End

From Juergen Haas,
Your Guide to Focus on Linux.
FREE Newsletter. Sign Up Now!

Emacs Documentation

Beginning or End of Week, Month or Year

A week (or month, or year) is not just a quantity of days; we think of weeks (months, years) as starting on particular dates. So Calendar mode provides commands to move to the beginning or end of a week, month or year:

  • C-a
    Move point to start of week (calendar-beginning-of-week).
  • C-e
    Move point to end of week (calendar-end-of-week).
  • M-a
    Move point to start of month (calendar-beginning-of-month).
  • M-e
    Move point to end of month (calendar-end-of-month).
  • M-<
    Move point to start of year (calendar-beginning-of-year).
  • M->
    Move point to end of year (calendar-end-of-year).

These commands also take numeric arguments as repeat counts, with the repeat count indicating how many weeks, months, or years to move backward or forward.

By default, weeks begin on Sunday. To make them begin on Monday instead, set the variable calendar-week-start-day to 1.

* Emacs Manual Index

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.