 	   ((string-match "^serving on http://.*:\\\([0-9]+\\\)$" proc-output)
 	    (progn
               (set-variable 'ycmd-server-actual-port
-                            (string-to-number (match-string 1 proc-output)))c
+                            (string-to-number (match-string 1 proc-output)))
               (setq cont nil)))
 	   (t
 	    (incf cont)


(defvar ycmd-server-actual-port 0
  "The actual port being used by the ycmd server. This is set
  based on the output from the server itself."
  :type int
  :group 'ycmd)

(defconst ycmd-hmac-secret "1234123412341234") ; TODO: Create real secret code.

(define-hmac-function ycmd-hmac-function
  (lambda (x) (secure-hash 'sha256 x nil nil 1))

      (semantic_triggers . ())
      (auto_trigger . 1))))

(defun ycmd-running? ()
  (interactive)
  (if (get-process ycmd-server-process) 't nil))

(defun ycmd-create-options-file (hmac-secret)
  (let ((options-file (make-temp-file "ycmd-options"))
        (options (ycmd-options-contents hmac-secret)))
    (with-temp-file options-file
      (insert (ycmd-json-encode options)))
    options-file))

(defun ycmd-open ()
