 (require 'etags)
 
 ;; Allow loading of our bundled third-party modules
-(add-to-list 'load-path (f-join (file-name-directory load-file-name)
-                                "third-party"))
+(add-to-list 'load-path (expand-file-name
+                         "third-party"
+                         (file-name-directory
+                          (or load-file-name
+                              (buffer-file-name)))))
+
 (require 'ycmd-request)
 (require 'ycmd-request-deferred)
 


(require 'anaphora)
(require 'deferred)
(require 'f)
(require 'hmac-def)
(require 'hmac-md5) ; provides encode-hex-string
(require 'json)

;; Author: Austin Bingham <austin.bingham@gmail.com>
;; Version: 0.1
;; URL: https://github.com/abingham/emacs-ycmd
;; Package-Requires: ((emacs "24") (anaphora "1.0.0") (deferred "0.3.2") (popup "0.5.0"))
;;
;; This file is not part of GNU Emacs.
;;
