Lines Matching +defs:add +defs:mode
39 ;; One useful way to enable this minor mode is to put the following in your
42 ;; (add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
43 ;; (add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode)
44 ;; (add-hook 'ielm-mode-hook 'turn-on-eldoc-mode)
69 (defcustom eldoc-minor-mode-string " ElDoc"
70 "*String to display in mode line when Eldoc Mode is enabled; nil for none."
107 "This is used by eldoc-add-command to initialize eldoc-message-commands
122 directly. Instead, use `eldoc-add-command' and `eldoc-remove-command'.")
141 (define-minor-mode eldoc-mode
142 "Toggle ElDoc mode on or off.
143 In ElDoc mode, the echo area displays information about a
149 With prefix ARG, turn ElDoc mode on if and only if ARG is positive."
150 :group 'eldoc :lighter eldoc-minor-mode-string
152 (if eldoc-mode
154 (add-hook 'post-command-hook 'eldoc-schedule-timer nil t)
155 (add-hook 'pre-command-hook 'eldoc-pre-command-refresh-echo-area t))
160 (defun turn-on-eldoc-mode ()
161 "Unequivocally turn on ElDoc mode (see command `eldoc-mode')."
163 (eldoc-mode 1))
225 (and eldoc-mode
228 ;; Having this mode operate in an active minibuffer/echo area causes
245 Emacs Lisp mode) that support Eldoc.")
415 (defun eldoc-add-command (&rest cmds)
421 (defun eldoc-add-command-completions (&rest names)
423 (apply 'eldoc-add-command (all-completions name obarray 'commandp))))
439 (eldoc-add-command-completions