summaryrefslogtreecommitdiff
path: root/helm-imenu.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-09 06:29:34 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-09 06:42:44 +0100
commit6121026afd72443d5e42f4e3c2a60f79d18f774e (patch)
tree6338e6a5290f89d38b13940c0138fe65c860202b /helm-imenu.el
parent9006f050d6c8b48a6a01e1df2dda168230aa8b42 (diff)
Bind M-left/right to next/previous source in imenu-map.
* helm-imenu.el (helm-imenu-map): Do it.
Diffstat (limited to 'helm-imenu.el')
-rw-r--r--helm-imenu.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/helm-imenu.el b/helm-imenu.el
index 7cad360f..7b406e04 100644
--- a/helm-imenu.el
+++ b/helm-imenu.el
@@ -67,8 +67,10 @@ only '((foo . bar)) is needed."
(define-key map (kbd "M-<down>") 'helm-imenu-next-section)
(define-key map (kbd "M-<up>") 'helm-imenu-previous-section)
(when helm-imenu-lynx-style-map
- (define-key map (kbd "<left>") 'helm-maybe-exit-minibuffer)
- (define-key map (kbd "<right>") 'helm-execute-persistent-action))
+ (define-key map (kbd "<left>") 'helm-maybe-exit-minibuffer)
+ (define-key map (kbd "<right>") 'helm-execute-persistent-action)
+ (define-key map (kbd "M-<left>") 'helm-previous-source)
+ (define-key map (kbd "M-<right>") 'helm-next-source))
(delq nil map)))
(defun helm-imenu-next-or-previous-section (n)