aboutsummaryrefslogtreecommitdiffhomepage
path: root/editors/protobuf-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'editors/protobuf-mode.el')
-rw-r--r--editors/protobuf-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/protobuf-mode.el b/editors/protobuf-mode.el
index 9ac0c727..09aecc93 100644
--- a/editors/protobuf-mode.el
+++ b/editors/protobuf-mode.el
@@ -71,7 +71,8 @@
;; This mode does not inherit properties from other modes. So, we do not use
;; the usual `c-add-language' function.
-(put 'protobuf-mode 'c-mode-prefix "protobuf-")
+(eval-and-compile
+ (put 'protobuf-mode 'c-mode-prefix "protobuf-"))
;; The following code uses of the `c-lang-defconst' macro define syntactic
;; features of protocol buffer language. Refer to the documentation in the