|
35 | 35 | ;; window. Note that unlike `ace-jump-mode', the point position will
|
36 | 36 | ;; not be changed: only current window focus changes.
|
37 | 37 | ;;
|
38 |
| -;; To setup this package, just add to your ~.emacs: |
| 38 | +;; To setup this package, just add to your .emacs: |
39 | 39 | ;;
|
40 | 40 | ;; (global-set-key (kbd "M-p") 'ace-window)
|
41 | 41 | ;;
|
|
48 | 48 | ;; This way they're all on the home row, although the intuitive
|
49 | 49 | ;; ordering is lost.
|
50 | 50 | ;;
|
| 51 | +;; If you don't want the gray background that makes the red selection |
| 52 | +;; characters stand out more, set this: |
| 53 | +;; |
| 54 | +;; (setq aw-background nil) |
| 55 | +;; |
51 | 56 | ;; When prefixed with one `universal-argument', instead of switching
|
52 | 57 | ;; to selected window, the selected window is swapped with current one.
|
53 | 58 | ;;
|
@@ -136,7 +141,7 @@ This hook is set to nil with each call to `ace-window'.")
|
136 | 141 | (ace-jump-delete-overlay-in-search-tree ace-jump-search-tree)
|
137 | 142 | (setq ace-jump-search-tree nil)))
|
138 | 143 |
|
139 |
| -(defun aw--doit (mode-line) |
| 144 | +(defun aw-select (mode-line) |
140 | 145 | "Return a selected other window.
|
141 | 146 | Amend MODE-LINE to the mode line for the duration of the selection."
|
142 | 147 | (let* ((start-window (selected-window))
|
@@ -236,28 +241,28 @@ Amend MODE-LINE to the mode line for the duration of the selection."
|
236 | 241 | "Ace select window."
|
237 | 242 | (interactive)
|
238 | 243 | (aw-switch-to-window
|
239 |
| - (aw--doit " Ace - Window"))) |
| 244 | + (aw-select " Ace - Window"))) |
240 | 245 |
|
241 | 246 | ;;;###autoload
|
242 | 247 | (defun ace-delete-window ()
|
243 | 248 | "Ace delete window."
|
244 | 249 | (interactive)
|
245 | 250 | (aw-delete-window
|
246 |
| - (aw--doit " Ace - Delete Window"))) |
| 251 | + (aw-select " Ace - Delete Window"))) |
247 | 252 |
|
248 | 253 | ;;;###autoload
|
249 | 254 | (defun ace-swap-window ()
|
250 | 255 | "Ace swap window."
|
251 | 256 | (interactive)
|
252 | 257 | (aw-swap-window
|
253 |
| - (aw--doit " Ace - Swap Window"))) |
| 258 | + (aw-select " Ace - Swap Window"))) |
254 | 259 |
|
255 | 260 | ;;;###autoload
|
256 | 261 | (defun ace-maximize-window ()
|
257 | 262 | "Ace maximize window."
|
258 | 263 | (interactive)
|
259 | 264 | (select-window
|
260 |
| - (aw--doit " Ace - Maximize Window")) |
| 265 | + (aw-select " Ace - Maximize Window")) |
261 | 266 | (delete-other-windows))
|
262 | 267 |
|
263 | 268 | ;;;###autoload
|
|
0 commit comments