diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-09 06:29:34 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-09 06:42:44 +0100 |
commit | 6121026afd72443d5e42f4e3c2a60f79d18f774e (patch) | |
tree | 6338e6a5290f89d38b13940c0138fe65c860202b /helm-imenu.el | |
parent | 9006f050d6c8b48a6a01e1df2dda168230aa8b42 (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.el | 6 |
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) |