Created
July 28, 2017 07:55
-
-
Save justdoit0823/6e52221c760b07f93fd163d410a084c8 to your computer and use it in GitHub Desktop.
Autoload protobuf model when open proto file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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