aboutsummaryrefslogtreecommitdiffhomepage
path: root/editors
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-12-18 01:55:04 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-12-18 01:55:04 +0000
commitd5cf7b55a6a1f959d1646785f63ca2b62da78079 (patch)
tree6d9741a824e698067c46dea9d90494f4d7b355f4 /editors
parentb221008884cec52232b2c292f743cad0ed4d3dee (diff)
Some sort of emacs protobuf mode fix.
Diffstat (limited to 'editors')
-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