[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f899a22 08/90: Add info lookup binding to counsel-describe
From: |
Oleh Krehel |
Subject: |
[elpa] master f899a22 08/90: Add info lookup binding to counsel-describe-map |
Date: |
Tue, 30 Jun 2015 07:27:59 +0000 |
branch: master
commit f899a2232e216d74047fb8fc0f1c307c9bd3f251
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Add info lookup binding to counsel-describe-map
* counsel.el (counsel-describe-map): Bind C-, to
counsel--info-lookup-symbol.
(counsel--info-lookup-symbol): New command. Just sets the ivy action to
counsel-info-lookup-symbol.
---
counsel.el | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 400684c..0a4b1eb 100644
--- a/counsel.el
+++ b/counsel.el
@@ -42,13 +42,20 @@
(defvar counsel-describe-map
(let ((map (make-sparse-keymap)))
- (define-key map (kbd "C-.") 'counsel-find-symbol)
+ (define-key map (kbd "C-.") #'counsel-find-symbol)
+ (define-key map (kbd "C-,") #'counsel--info-lookup-symbol)
map))
(defun counsel-find-symbol ()
"Jump to the definition of the current symbol."
(interactive)
- (ivy-set-action 'counsel--find-symbol)
+ (ivy-set-action #'counsel--find-symbol)
+ (ivy-done))
+
+(defun counsel--info-lookup-symbol ()
+ "Lookup the current symbol in the info docs."
+ (interactive)
+ (ivy-set-action #'counsel-info-lookup-symbol)
(ivy-done))
(defun counsel--find-symbol (x)
- [elpa] master updated (e8eaf1a -> 55e0188), Oleh Krehel, 2015/06/30
- [elpa] master 4a3d0be 01/90: swiper.el (swiper-avy): Use only the current window, Oleh Krehel, 2015/06/30
- [elpa] master 856e1bd 02/90: ivy.el (ivy-next-line): Fix wraparound at end of candidates, Oleh Krehel, 2015/06/30
- [elpa] master 04b5734 03/90: swiper.el (swiper-avy): Don't start on empty input, Oleh Krehel, 2015/06/30
- [elpa] master 23ffd5c 04/90: swiper.el (swiper--ivy): Don't double-quote preselect, Oleh Krehel, 2015/06/30
- [elpa] master d975e1a 06/90: Avoid ensuring font lock when magit-blame-mode is active, Oleh Krehel, 2015/06/30
- [elpa] master 5fdb7de 05/90: Allow to open an Info file on the file system, Oleh Krehel, 2015/06/30
- [elpa] master f899a22 08/90: Add info lookup binding to counsel-describe-map,
Oleh Krehel <=
- [elpa] master a0347d8 09/90: counsel.el (counsel-info-lookup-symbol): Add a require, Oleh Krehel, 2015/06/30
- [elpa] master 3256d68 07/90: Change the :matcher interface, Oleh Krehel, 2015/06/30
- [elpa] master 5f7c787 11/90: counsel.el (counsel-find-file-at-point): New defcustom, Oleh Krehel, 2015/06/30
- [elpa] master efd74b8 10/90: counsel.el (counsel-find-file): Extend `find-file', Oleh Krehel, 2015/06/30
- [elpa] master 8212110 15/90: Handle symbol-at-point better in non-Elisp buffers, Oleh Krehel, 2015/06/30
- [elpa] master fe057eb 14/90: Swiper should preserve column for empty input, Oleh Krehel, 2015/06/30
- [elpa] master 1a193b0 16/90: ivy.el (ivy--done): Set ivy--current, Oleh Krehel, 2015/06/30
- [elpa] master 97abd3c 17/90: ivy.el (ivy-virtual): New defface, Oleh Krehel, 2015/06/30
- [elpa] master 3c8daba 19/90: Fixup compilation warnings, Oleh Krehel, 2015/06/30
- [elpa] master ecb93a6 18/90: Regexp-quote name of candidate buffer to be preselected, Oleh Krehel, 2015/06/30