   "Reload emtail-mode.el and put the current buffer into emtail-mode.  Useful for debugging."
   (interactive)
   (unload-feature 'emtail-mode)
+  (add-to-list 'load-path "/home/jaq/src/emtail")
   (require 'emtail-mode)
   (emtail-mode))
 

    st)
  "Syntax table used while in `emtail-mode'.")

(defvar emtail-mode-keywords
  '("counter" "gauge" "as" "by" "hidden")
  "All keywords in the emtail language.  Used for font locking.")

(defvar emtail-mode-builtins
  '("strptime" "timestamp")
  "All keywords in the emtail language.  Used for font locking.")

(defvar emtail-mode-font-lock-defaults
      `((
         ("\\<\\(FIXME\\|TODO\\)" 1 font-lock-warning-face prepend)
         (,(regexp-opt emtail-mode-keywords 'words) . font-lock-keyword-face)
         (,(regexp-opt emtail-mode-builtins 'words) . font-lock-builtin-face)
         ("\\<\\$?[a-zA-Z0-9_]+\\>" . font-lock-variable-name-face)
         )))

(define-derived-mode emtail-mode nil "emtail"
  "Major mode for editing emtail programs."
  ;; Font lock
  (set (make-local-variable 'font-lock-defaults)
       '(emtail-mode-font-lock-defaults nil nil nil nil))

  (set (make-local-variable 'paragraph-separate) "^[ \t]*$")
  (set (make-local-variable 'paragraph-start) "^[ \t]*$")
  (set (make-local-variable 'comment-start) "# ")
  (set (make-local-variable 'comment-end) "")
  (set (make-local-variable 'comment-start-skip) "# *")

  (setq indent-tabs-mode nil))



; Copyright 2011 Google Inc. All Rights Reserved.
; This file is available under the Apache license.

(defvar emtail-mode-hook nil)

(defcustom emtail-indent-offset 2
  "Indent offset for `emtail-mode'.")
