Emacs: Protobuf mode should be derived from prog-mode (#9076)

Prog mode is a basic major mode for buffers containing programming
language source code:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Basic-Major-Modes.html

A lot of programming mode setup is based on whether the major mode is
derived from `prog-mode`.
This commit is contained in:
Hong Xu 2021-10-13 10:26:40 -07:00 committed by GitHub
parent ab993cf6ca
commit 1ab7789f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@
;;;###autoload (add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
;;;###autoload
(defun protobuf-mode ()
(define-derived-mode protobuf-mode prog-mode "Protobuf"
"Major mode for editing Protocol Buffers description language.
The hook `c-mode-common-hook' is run with no argument at mode