diff options
author | Alex Kost <alezost@gmail.com> | 2015-06-24 10:36:18 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2015-06-26 16:15:45 +0300 |
commit | 74cc67372ec3771b157c015da4ba7ed5d921799f (patch) | |
tree | 9a2190ee4cffbc8e0dd51aa0e50dd610335e20ba /emacs/guix-list.el | |
parent | 1c080cb68a4c92f8b740d9daca4075f141f5b659 (diff) | |
download | guix-74cc67372ec3771b157c015da4ba7ed5d921799f.tar.gz |
emacs: Add 'guix-root-map'.
* emacs/guix-base.el (guix-define-buffer-type): Move common key bindings from here... (guix-root-map): ... to here. New variable. * emacs/guix-info.el (guix-info-mode-map): Use it. * emacs/guix-list.el (guix-list-mode-map): Use it. * doc/emacs.texi (Emacs Keymaps): Document it.
Diffstat (limited to 'emacs/guix-list.el')
-rw-r--r-- | emacs/guix-list.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/guix-list.el b/emacs/guix-list.el index 26dfeacb8c..e84d60a0aa 100644 --- a/emacs/guix-list.el +++ b/emacs/guix-list.el @@ -371,7 +371,9 @@ Same as `tabulated-list-sort', but also restore marks after sorting." (defvar guix-list-mode-map (let ((map (make-sparse-keymap))) - (set-keymap-parent map tabulated-list-mode-map) + (set-keymap-parent + map (make-composed-keymap guix-root-map + tabulated-list-mode-map)) (define-key map (kbd "RET") 'guix-list-describe) (define-key map (kbd "m") 'guix-list-mark) (define-key map (kbd "*") 'guix-list-mark) |