diff options
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) |