Commits

Arne Babenhauserheide  committed e101a72

set and unset space explicitely.

  • Participants
  • Parent commits 7faee4e
  • Branches fluss

Comments (0)

Files changed (1)

File libs/typing.el

 
 (defun toe-space-to-exit-minibuffer ()
   "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 ()
+  "Allow using space to finish a word in the minibuffer."
+  (interactive)
+  (define-key minibuffer-local-map (kbd "SPC") 'self-insert-command))
+
 (defun toe-setup-buffer ()
   "Create and switch to new buffer."
   (switch-to-buffer (get-buffer-create toe-buffer-name))
   (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")
-  (toe-space-to-exit-minibuffer)
+  (message "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.")
   (toe-status))
 
 ;; Asking for stuff and giving feedback