-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkite-load-path.el
50 lines (35 loc) · 1.57 KB
/
kite-load-path.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;;; kite-load-path.el --- WebKit inspector front-end
;; Copyright (C) 2012 Julian Scheid
;; Author: Julian Scheid <[email protected]>
;; Author: T. V. Raman <[email protected]> (cloned from emacspeak-load-path.el)
;; Keywords: tools
;; Version: 0.1
;; Compatibility: GNU Emacs 24
;; This file is not part of GNU Emacs.
;; Kite is free software: you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; Kite is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
;; License for more details.
;; You should have received a copy of the GNU General Public License
;; along with Kite. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;; Set up load-path so we can compile cleanly.
;;; Code:
(when (or (< emacs-major-version 24)
(and (eq emacs-major-version 24)
(< emacs-minor-version 1)))
(error "Kite requires Emacs 24.1 or newer. This is %s" emacs-version))
(require 'package)
(defvar kite--directory
(expand-file-name (file-name-directory load-file-name))
"Directory where Kite is installed. ")
(let ((package-load-list '((websocket t))))
(package-initialize))
(unless (member kite--directory load-path)
(setq load-path (cons kite--directory load-path)))
(setq byte-compile-warnings '(not cl-functions))
(provide 'kite-load-path)