-
Notifications
You must be signed in to change notification settings - Fork 12
/
simple-mpc-vars.el
104 lines (81 loc) · 3.26 KB
/
simple-mpc-vars.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
;;; simple-mpc-vars.el --- part of simple-mpc
;;
;; Copyright (C) 2015,2016 Joren Van Onder <joren@jvo.sh>
;; Copyright (C) 2016 Andriy Kmit' <dev@madand.net>
;; Copyright (C) 2020 Sean Farley <sean@farley.io>
;; Author: Joren Van Onder <joren@jvo.sh>
;; Maintainer: Joren Van Onder <joren@jvo.sh>
;; Keywords: multimedia, mpd, mpc
;; Version: 1.0
;; This file is not part of GNU Emacs.
;;
;; 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 3 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, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(defvar simple-mpc-main-buffer-name "*simple-mpc-main*"
"Name of the simple-mpc buffer.")
(defvar simple-mpc-current-playlist-buffer-name "*simple-mpc-current-playlist*"
"Name of the simple-mpc buffer for the current playlist.")
(defvar simple-mpc-query-buffer-name "*simple-mpc-query*"
"Name of the simple-mpc query buffer.")
(defgroup simple-mpc nil
"simple-mpc - provides a simple interface to mpc"
:group 'multimedia)
(defcustom simple-mpc-playlist-format ""
"Format string that will be given to mpc through --format."
:group 'simple-mpc
:type 'string)
(defcustom simple-mpc-seek-time-in-s 5
"The time in seconds that will be used to do relative seeking.
Used with `simple-mpc-seek-forward' and `simple-mpc-seek-backward'."
:group 'simple-mpc
:type 'integer)
(defcustom simple-mpc-volume-step-size 5
"Amount to change in volume.
Used for e.g. `simple-mpc-increase-volume' and
`simple-mpc-decrease-volume'."
:group 'simple-mpc
:type 'integer)
(defcustom simple-mpc-playlist-auto-refresh nil
"Automatic refresh of the playlist buffer.
If nil, automatic refresh is disabled.
Integer value specifies the interval in seconds. The interval is
not strict and the actual refresh may be delayed, if Emacs is
busy. See `run-with-idle-timer'."
:group 'simple-mpc
:type '(choice (const :tag "Disabled" nil)
(integer :tag "Number of seconds" 5)))
(defcustom simple-mpc-table-separator nil
"When non-nil this will be used to format the playlist as a table.
This value is given directly to the -s flag of column(1). When
using this option it is important that
`simple-mpc-playlist-format' contains a format that uses this
separator.
TAB should be a good choice for this."
:group 'simple-mpc
:type 'string)
(defface simple-mpc-main-name
'((t :inherit font-lock-type-face :bold t))
"For the title in the main view."
:group 'simple-mpc)
(defface simple-mpc-main-headers
'((t :inherit font-lock-type-face))
"For the different headers in the main view."
:group 'simple-mpc)
(defface simple-mpc-current-track-face
'((t :inherit font-lock-keyword-face :bold t))
"For the current track in the current playlist view."
:group 'simple-mpc)
(provide 'simple-mpc-vars)
;;; simple-mpc-vars.el ends here