Skip to content

Commit 064c4fb

Browse files
committed
ace-window.el (aw-select): Rename from `aw--doit'
1 parent b351b51 commit 064c4fb

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

ace-window.el

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
;; window. Note that unlike `ace-jump-mode', the point position will
3636
;; not be changed: only current window focus changes.
3737
;;
38-
;; To setup this package, just add to your ~.emacs:
38+
;; To setup this package, just add to your .emacs:
3939
;;
4040
;; (global-set-key (kbd "M-p") 'ace-window)
4141
;;
@@ -48,6 +48,11 @@
4848
;; This way they're all on the home row, although the intuitive
4949
;; ordering is lost.
5050
;;
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+
;;
5156
;; When prefixed with one `universal-argument', instead of switching
5257
;; to selected window, the selected window is swapped with current one.
5358
;;
@@ -136,7 +141,7 @@ This hook is set to nil with each call to `ace-window'.")
136141
(ace-jump-delete-overlay-in-search-tree ace-jump-search-tree)
137142
(setq ace-jump-search-tree nil)))
138143

139-
(defun aw--doit (mode-line)
144+
(defun aw-select (mode-line)
140145
"Return a selected other window.
141146
Amend MODE-LINE to the mode line for the duration of the selection."
142147
(let* ((start-window (selected-window))
@@ -236,28 +241,28 @@ Amend MODE-LINE to the mode line for the duration of the selection."
236241
"Ace select window."
237242
(interactive)
238243
(aw-switch-to-window
239-
(aw--doit " Ace - Window")))
244+
(aw-select " Ace - Window")))
240245

241246
;;;###autoload
242247
(defun ace-delete-window ()
243248
"Ace delete window."
244249
(interactive)
245250
(aw-delete-window
246-
(aw--doit " Ace - Delete Window")))
251+
(aw-select " Ace - Delete Window")))
247252

248253
;;;###autoload
249254
(defun ace-swap-window ()
250255
"Ace swap window."
251256
(interactive)
252257
(aw-swap-window
253-
(aw--doit " Ace - Swap Window")))
258+
(aw-select " Ace - Swap Window")))
254259

255260
;;;###autoload
256261
(defun ace-maximize-window ()
257262
"Ace maximize window."
258263
(interactive)
259264
(select-window
260-
(aw--doit " Ace - Maximize Window"))
265+
(aw-select " Ace - Maximize Window"))
261266
(delete-other-windows))
262267

263268
;;;###autoload

0 commit comments

Comments
 (0)