Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 2.32 KB

README.org

File metadata and controls

70 lines (54 loc) · 2.32 KB

Beginend

Build Status Coverage Status

Summary

Redefine M-< and M-> (or any keys bound to beginning-of-buffer and end-of-buffer) for some modes so that point moves to meaningful lines. The real beginning and end of buffers are still accessible by pressing the same key again.

In particular, these modes are supported:

  • in dired-mode, M-< (respectively M->) goes to the first (respectively last) file, ignoring heading, . and ..;
  • in message-mode, M-< goes to the first line of the message body (after headings) while M-> goes to the last line before message signature;
  • in occur-mode, M-< (respectively M->) goes to the first (respectively last) match;

Other supported modes are ibuffer-mode, vc-dir-mode, bs-mode, recentf-dialog-mode, org-agenda-mode, compilation-mode, notmuch-search-mode, elfeed-mode, and prodigy-mode.

Installing

Use melpa.

Using

You can activate beginend for all modes it supports by customizing the variable beginend-global-mode (M-x customize-variable RET beginend-global-mode RET) or by adding this line to your configuration file:

(beginend-global-mode)

You can also decide to only activate beginend for some of its supported modes. Activate the dedicated beginend mode then (e.g., beginend-dired-mode).

At this point, newly opened supported buffers will get improved versions of M-< and M-> (or any keys bound to beginning-of-buffer and end-of-buffer).

Examples

Dired-mode: media/beginend-dired-mode.gif Message mode: media/beginend-message-mode.gif Occur mode: media/beginend-occur-mode.gif

Contributing

Yes, please do! See CONTRIBUTING for guidelines.

License

See COPYING. Copyright (c) 2017 Damien Cassou and Matus Goljer.