Skip to content

Commit

Permalink
Update README (fix #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed Jun 2, 2017
1 parent 01920ff commit 1846971
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 35 deletions.
35 changes: 0 additions & 35 deletions README.md

This file was deleted.

70 changes: 70 additions & 0 deletions README.org
@@ -0,0 +1,70 @@
* Beginend
#+BEGIN_HTML
<p>
<a href="https://travis-ci.org/DamienCassou/beginend">
<img src="https://travis-ci.org/DamienCassou/beginend.svg?branch=master" alt="Build Status" />
</a>
<a href='https://coveralls.io/github/DamienCassou/beginend?branch=master'>
<img src='https://coveralls.io/repos/github/DamienCassou/beginend/badge.svg?branch=master' alt='Coverage Status' />
</a>
</p>
#+END_HTML

** 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 [[http://melpa.org/][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:

#+BEGIN_SRC emacs-lisp
(beginend-global-mode)
#+END_SRC

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:
[[file:media/beginend-dired-mode.gif]]
Message mode:
[[file:media/beginend-message-mode.gif]]
Occur mode:
[[file:media/beginend-occur-mode.gif]]
** Contributing

Yes, please do! See [[file:CONTRIBUTING.md][CONTRIBUTING]] for guidelines.

** License

See [[file:COPYING][COPYING]]. Copyright (c) 2017 [[mailto:damien@cassou.me][Damien Cassou]] and [[mailto:matus.goljer@gmail.com][Matus Goljer]].
Binary file added media/beginend-dired-mode.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/beginend-message-mode.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/beginend-occur-mode.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1846971

Please sign in to comment.