This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpow-variables.el
81 lines (60 loc) · 2.26 KB
/
pow-variables.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;;; pow-variables.el --- pow (http://pow.cx/) manager variables
;; Copyright (c) 2014 yukihiro hara
;; Author: yukihiro hara <[email protected]>
;; This program 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 2 of the License, or
;; (at your option) any later version.
;; This program 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 this program; if not, write to the Free Software
;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
;;; Commentary:
;;; Code:
;;
;; customs
;;
(defgroup pow nil
"pow (http://pow.cx/) apps manager"
:group 'development
:prefix "pow-")
(defcustom pow-symlink-directory "~/.pow"
"Directory for symlinks of pow apps."
:type 'string
:group 'pow)
(defcustom pow-url-format "http://%s.dev/"
"Url format of rack application registered on Pow. This is passed to format function with one argument: app-name."
:type 'string
:group 'pow)
(defcustom pow-browse-url-function 'browse-url
"Function to browse app, takes an app-url."
:type 'function
:group 'pow)
(defcustom pow-log-directory "~/Library/Logs/Pow/apps"
"Directory of pow apps logs."
:type 'directory
:group 'pow)
(defcustom pow-default-network-device "en0"
"Defalut network device to use within apps development."
:type 'string
:group 'pow)
(defcustom pow-url-for-remote-format "http://%s.%s.xip.io/"
"Url format for remote host of rack application registered on Pow. This is passed to format function with two arguments: app name and ip address."
:type 'string
:group 'pow)
;;
;; buffer customizable variables
;;
(defvar pow-app-log-files
(list
'development "log/development.log"
'test "log/test.log"
'production "log/production.log")
"plist for log files of app.
Create same-name buffer-local variable to customize this.")
(make-variable-buffer-local 'pow-app-log-files)
(provide 'pow-variables)
;;; pow-variables.el ends here