diff options
author | CoprDistGit <infra@openeuler.org> | 2025-09-22 11:37:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-09-22 11:37:06 +0000 |
commit | b4569749c080c40468b3d6495165389b02ca2280 (patch) | |
tree | bb44e21e2f8c6f4a0add0a9e4331f94b9b174719 /protobuf-init.el | |
parent | b8be8a0933f0f46ed3216a88793bf05c6cb2b023 (diff) |
automatic import of protobuf
Diffstat (limited to 'protobuf-init.el')
-rw-r--r-- | protobuf-init.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protobuf-init.el b/protobuf-init.el new file mode 100644 index 0000000..008bdef --- /dev/null +++ b/protobuf-init.el @@ -0,0 +1,6 @@ +; Protobuf major mode, init file by Tim Niemueller [www.niemueller.de], BSD +; Add mode to automatically recognized modes +(setq auto-mode-alist (cons '("\\.proto$" . protobuf-mode) auto-mode-alist)) +(autoload 'protobuf-mode "protobuf-mode" "Google protobuf editing mode." t) +; Turn on colorization by default +(add-hook 'protobuf-mode-hook 'turn-on-font-lock) |