Function: snmp-mode
snmp-mode is an autoloaded, interactive and byte-compiled function
defined in snmp-mode.el.gz.
Signature
(snmp-mode)
Documentation
Major mode for editing SNMP MIBs.
Expression and list commands understand all C brackets.
Tab indents for C code.
Comments start with -- and end with newline or another --.
Delete converts tabs to spaces as it moves back.
C-c C-b tempo-backward-mark
C-c C-f tempo-forward-mark
C-c TAB tempo-complete-tag
DEL backward-delete-char-untabify
Turning on snmp-mode runs the hooks in snmp-common-mode-hook, then
snmp-mode-hook.
Probably introduced at or before Emacs version 20.4.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/snmp-mode.el.gz
;; SNMPv1 MIB Editing Mode.
;;
;;;###autoload
(defun snmp-mode ()
;; FIXME: Use define-derived-mode.
"Major mode for editing SNMP MIBs.
Expression and list commands understand all C brackets.
Tab indents for C code.
Comments start with -- and end with newline or another --.
Delete converts tabs to spaces as it moves back.
\\{snmp-mode-map}
Turning on `snmp-mode' runs the hooks in `snmp-common-mode-hook', then
`snmp-mode-hook'."
(interactive)
(snmp-common-mode "SNMP" 'snmp-mode
snmp-mode-abbrev-table
'(snmp-font-lock-keywords
snmp-font-lock-keywords-1
snmp-font-lock-keywords-2
snmp-font-lock-keywords-3)
'snmp-mode-imenu-create-index
'snmp-tempo-tags)
;; Completion lists
(setq-local snmp-mode-syntax-list (append snmp-rfc1155-types
snmp-rfc1213-types
snmp-mode-syntax-list))
(setq-local snmp-mode-access-list snmp-rfc1155-access)
(setq-local snmp-mode-status-list snmp-rfc1212-status)
;; Run hooks
(run-mode-hooks 'snmp-common-mode-hook 'snmp-mode-hook))