unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob d388a9294186a9029ab229daf46a30265a603c13 1306 bytes (raw)
name: use-package-chords.el 	 # note: path name is non-authoritative(*)

 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
 
;;; use-package-chords.el --- key-chord keyword for use-package  -*- lexical-binding: t; -*-

;; Copyright (C) 2015-2019 Justin Talbott

;; Author: Justin Talbott <justin@waymondo.com>
;; Keywords: convenience, tools, extensions
;; URL: https://github.com/jwiegley/use-package
;; Version: 0.2.1
;; Package-Requires: ((use-package "2.1") (bind-key "1.0") (bind-chord "0.2") (key-chord "0.6"))
;; Filename: use-package-chords.el
;; License: GNU General Public License version 3, or (at your option) any later version
;;

;;; Commentary:
;;
;; The `:chords' keyword allows you to define `key-chord' bindings for
;; `use-package' declarations in the same manner as the `:bind'
;; keyword.
;;

;;; Code:

(require 'use-package)
(require 'bind-chord)

;;;###autoload
(defalias 'use-package-autoloads/:chords #'use-package-autoloads-mode)

;;;###autoload
(defalias 'use-package-normalize/:chords #'use-package-normalize-binder)

;;;###autoload
(defun use-package-handler/:chords (name _keyword arg rest state)
  "Handler for `:chords' keyword in `use-package'."
  (use-package-concat
   (use-package-process-keywords name rest state)
   `(,(macroexpand
       `(bind-chords :package ,name ,@arg)))))

(add-to-list 'use-package-keywords :chords)

(provide 'use-package-chords)

;;; use-package-chords.el ends here

debug log:

solving d388a92941 ...
found d388a92941 in https://yhetil.org/emacs-devel/jwv4jww4we9.fsf-monnier+emacs@gnu.org/
found cf390dbe59 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 cf390dbe59375ee005d32c45dddefee632a77edc	use-package-chords.el

applying [1/1] https://yhetil.org/emacs-devel/jwv4jww4we9.fsf-monnier+emacs@gnu.org/
diff --git a/use-package-chords.el b/use-package-chords.el
index cf390dbe59..d388a92941 100644

Checking patch use-package-chords.el...
Applied patch use-package-chords.el cleanly.

index at:
100644 d388a9294186a9029ab229daf46a30265a603c13	use-package-chords.el

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).