From 461a560ddd3f25119211e33e50c5c403d6c2a390 Mon Sep 17 00:00:00 2001 From: toctan Date: Sun, 1 Jun 2014 13:28:54 +0800 Subject: [PATCH] Define prelude helm menu entry in its own module --- core/prelude-mode.el | 3 --- modules/prelude-helm.el | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/prelude-mode.el b/core/prelude-mode.el index d2afe0b..dadfc56 100644 --- a/core/prelude-mode.el +++ b/core/prelude-mode.el @@ -111,9 +111,6 @@ ["Eval and replace" prelude-eval-and-replace] ) - ("Navigation" - ["Helm" helm-prelude]) - ("Windows" ["Swap windows" prelude-swap-windows]) diff --git a/modules/prelude-helm.el b/modules/prelude-helm.el index 42a2459..2033def 100644 --- a/modules/prelude-helm.el +++ b/modules/prelude-helm.el @@ -49,7 +49,11 @@ (error (helm-mini)))) (eval-after-load 'prelude-mode - '(define-key prelude-mode-map (kbd "C-c h") 'helm-prelude)) + '(progn + (define-key prelude-mode-map (kbd "C-c h") 'helm-prelude) + (easy-menu-add-item nil '("Tools" "Prelude") + '("Navigation" + ["Helm" helm-prelude])))) (push "Press to navigate a project in Helm." prelude-tips)