forked from mpdel/mpdel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpdel.el
70 lines (51 loc) · 2.05 KB
/
mpdel.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
;;; mpdel.el --- Play and control your MPD music -*- lexical-binding: t; -*-
;; Copyright (C) 2018-2023 Damien Cassou
;; Author: Damien Cassou <[email protected]>
;; Keywords: multimedia
;; Url: https://github.com/mpdel/mpdel
;; Package-requires: ((emacs "25.1") (libmpdel "1.2.0") (navigel "0.7.0"))
;; Version: 2.1.0
;; 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 <https://www.gnu.org/licenses/>.
;;; Commentary:
;; MPDel is an Emacs client for Music Player Daemon (MPD), a flexible,
;; powerful, server-side application for playing music. This project
;; provides an Emacs user interface including playlists, navigation in
;; the database and playback control. Read the README.org file for
;; more information.
;;; Code:
(require 'mpdel-song)
(require 'mpdel-playlist)
(require 'mpdel-tablist)
(require 'mpdel-browser)
;;; Customization
(defgroup mpdel nil
"Configure MPDel."
:group 'libmpdel)
(defcustom mpdel-prefix-key (kbd "C-x Z")
"Prefix key to all global mpdel keybindings."
:type 'key-sequence)
;;; Minor mode: Define the global minor mode so users can control MPD
;;; from non-MPDel buffers
(defvar mpdel-mode-map
(let ((map (make-sparse-keymap)))
(define-key map mpdel-prefix-key 'mpdel-core-map)
map)
"Keymap activating variable `mpdel-core-map'.")
(define-minor-mode mpdel-mode
"Activate keybindings to play and control your MPD server.
\\{mpdel-mode-map}"
:global t
:require 'mpdel
:lighter " MPDel")
(provide 'mpdel)
;;; mpdel.el ends here
;;; LocalWords: Mpdel mpdel