Lines Matching defs:mode
1 ;;; nroff-mode.el --- GNU Emacs major mode for editing nroff source
28 ;; This package is a major mode for editing nroff source code. It knows
40 "Nroff mode."
46 (defcustom nroff-electric-mode nil
51 (defvar nroff-mode-map
60 "Major mode keymap for `nroff-mode'.")
62 (defvar nroff-mode-syntax-table
63 (let ((st (copy-syntax-table text-mode-syntax-table)))
64 ;; " isn't given string quote syntax in text-mode but it
72 "Syntax table used while in `nroff-mode'.")
99 "Font-lock highlighting control in `nroff-mode'."
103 (defcustom nroff-mode-hook nil
104 "Hook run by function `nroff-mode'."
109 (define-derived-mode nroff-mode text-mode "Nroff"
110 "Major mode for editing text intended for nroff to format.
111 \\{nroff-mode-map}
112 Turning on Nroff mode runs `text-mode-hook', then `nroff-mode-hook'.
113 Also, try `nroff-electric-mode', for automatically inserting
122 ;; now define a bunch of variables for use by commands in this mode
239 "Insert newline for nroff mode; special if electric-nroff mode.
240 In `electric-nroff-mode', if ending a line containing an nroff opening request,
246 nroff-electric-mode
259 (define-minor-mode nroff-electric-mode
260 "Toggle `nroff-electric-newline' minor mode.
263 This command toggles that mode (off->on, on->off), with an argument,
266 (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode")))
273 (define-obsolete-function-alias 'electric-nroff-mode 'nroff-electric-mode "22.1")
275 (provide 'nroff-mode)
278 ;;; nroff-mode.el ends here