Linux

  1. Home
  2. Computing & Technology
  3. Linux

Move to Beginning or End

Emacs Documentation

By Juergen Haas, About.com

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

Explore Linux

About.com Special Features

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Software
  5. Editors
  6. Emacs
  7. Emacs Documentation - Move to Beginning or End

©2009 About.com, a part of The New York Times Company.

All rights reserved.