Arne Babenhauserheide avatar Arne Babenhauserheide committed eacf16a

less overhead

Comments (0)

Files changed (1)

   (insert (format "\nLEVEL %d: %d SECONDS PER WORD!  YOU HAVE %d LIVES LEFT.\n" 
 		  toe-level toe-time-per-word toe-lives)))
 
-(defun toe-space-to-exit-minibuffer ()
+(defun toe-space-as-return ()
   "Allow using space to finish a word in the minibuffer."
   (interactive)
   (define-key minibuffer-local-map (kbd "SPC") 'exit-minibuffer))
 
-(defun toe-unset-space-to-exit-minibuffer ()
+(defun toe-unset-space ()
   "Allow using space to finish a word in the minibuffer."
   (interactive)
   (define-key minibuffer-local-map (kbd "SPC") 'self-insert-command))
   (setq buffer-read-only nil)
   (erase-buffer)
   (insert "T h e   T y p i n g   O f   E m a c s . . .\n")
-  (insert "use M-x toe-space-to-exit-minibuffer to use space for entering words. 
-Use M-x toe-unset-space-to-exit-minibuffer to switch back.")
+  (insert "                      M-x toe-space-as-return
+                      M-x toe-unset-space")
   (toe-status))
 
 ;; Asking for stuff and giving feedback
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.