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`.
pull/9096/head
Hong Xu 3 years ago committed by GitHub
parent ab993cf6ca
commit 1ab7789f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      editors/protobuf-mode.el

@ -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

Loading…
Cancel
Save