Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Created July 28, 2017 07:55
Show Gist options
  • Save justdoit0823/6e52221c760b07f93fd163d410a084c8 to your computer and use it in GitHub Desktop.
Save justdoit0823/6e52221c760b07f93fd163d410a084c8 to your computer and use it in GitHub Desktop.
Autoload protobuf model when open proto file.
(defun load-protobuf ()
"Load protobuf."
(add-to-list 'load-path "~/.emacs.d/el-get/protobuf-mode")
(require 'protobuf-mode)
(add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
(add-hook 'protobuf-mode-hook (lambda () (auto-complete-mode)))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment