Mercurial > hg > dotemacs
view elpa/ace-window-readme.txt @ 168:97531390b060
packages: add missing readmes
Not sure what's up with these either, maybe due to Emacs 25 upgrade?
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 25 Oct 2017 16:52:58 -0400 |
parents | |
children |
line wrap: on
line source
The main function, `ace-window' is meant to replace `other-window'. In fact, when there are only two windows present, `other-window' is called. If there are more, each window will have its first character highlighted. Pressing that character will switch to that window. To setup this package, just add to your .emacs: (global-set-key (kbd "M-p") 'ace-window) replacing "M-p" with an appropriate shortcut. Depending on your window usage patterns, you might want to set (setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)) This way they are all on the home row, although the intuitive ordering is lost. If you don't want the gray background that makes the red selection characters stand out more, set this: (setq aw-background nil) If you want to know the selection characters ahead of time, you can turn on `ace-window-display-mode'. When prefixed with one `universal-argument', instead of switching to selected window, the selected window is swapped with current one. When prefixed with two `universal-argument', the selected window is deleted instead.