From d6e65ee1b041ea59b20f7b01e3ee9b3242780794 Mon Sep 17 00:00:00 2001 From: Samuel Tonini Date: Mon, 11 Apr 2016 07:44:28 +0200 Subject: [PATCH] Refine hex shortcuts and docs --- alchemist-refcard.el | 7 +++++++ alchemist.el | 5 +++-- doc/basic_usage.md | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/alchemist-refcard.el b/alchemist-refcard.el index 2f53f3af..5e40a8c8 100644 --- a/alchemist-refcard.el +++ b/alchemist-refcard.el @@ -78,6 +78,13 @@ (alchemist-refcard--build-tabulated-row "alchemist-mix-compile") (alchemist-refcard--build-tabulated-row "alchemist-mix-run") (alchemist-refcard--build-empty-tabulated-row) + (alchemist-refcard--build-tabulated-title-row "Hex") + (alchemist-refcard--build-tabulated-row "alchemist-hex-info-at-point") + (alchemist-refcard--build-tabulated-row "alchemist-hex-releases-at-point") + (alchemist-refcard--build-tabulated-row "alchemist-hex-releases") + (alchemist-refcard--build-tabulated-row "alchemist-hex-info") + (alchemist-refcard--build-tabulated-row "alchemist-hex-search") + (alchemist-refcard--build-empty-tabulated-row) (alchemist-refcard--build-tabulated-title-row "Testing") (alchemist-refcard--build-tabulated-row "alchemist-mix-test") (alchemist-refcard--build-tabulated-row "alchemist-mix-rerun-last-test") diff --git a/alchemist.el b/alchemist.el index d01d2afc..1833e1e9 100644 --- a/alchemist.el +++ b/alchemist.el @@ -194,8 +194,9 @@ Key bindings: (define-key map (kbd "X i") 'alchemist-hex-info-at-point) (define-key map (kbd "X r") 'alchemist-hex-releases-at-point) - (define-key map (kbd "X I") 'alchemist-hex-releases) - (define-key map (kbd "X s") 'alchemist-hex-info)) + (define-key map (kbd "X R") 'alchemist-hex-releases) + (define-key map (kbd "X s") 'alchemist-hex-search) + (define-key map (kbd "X I") 'alchemist-hex-info)) (define-key alchemist-mode-map (kbd "M-.") 'alchemist-goto-definition-at-point) (define-key alchemist-mode-map (kbd "M-,") 'alchemist-goto-jump-back) diff --git a/doc/basic_usage.md b/doc/basic_usage.md index b95bb4e7..e8846cdb 100644 --- a/doc/basic_usage.md +++ b/doc/basic_usage.md @@ -25,7 +25,8 @@ The Mix tasks running in a separate `alchemist-mix-mode`, in which the following |C-c a X i | Display Hex package information for the package at point. | |C-c a X r | Display Hex package releases for the package at point. | |C-c a X I | Display Hex package info for a certain package. | -|C-c a X S | Search for Hex packages. | +|C-c a X R | Display Hex package releases for a certain package.| +|C-c a X s | Search for Hex packages. | ## Testing