From 81953ad033fa50515dfb60d431dec391a7c0d4b8 Mon Sep 17 00:00:00 2001 From: Bin Huang Date: Thu, 29 May 2014 14:43:08 +0800 Subject: [PATCH] Move the prelude tips for key-chord-mode to it's module file. --- core/prelude-core.el | 3 --- modules/prelude-key-chord.el | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index e450d62..0d71ee4 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -403,9 +403,6 @@ Doesn't mess with special buffers." "Press or to run grep on a project." "Press or to switch between projects." "Press or to expand the selected region." - "Press quickly to jump to the beginning of a visible word." - "Press quickly to jump to a visible character." - "Press quickly to jump to a visible line." "Press to search in Google." "Press to search in GitHub." "Press to search in YouTube." diff --git a/modules/prelude-key-chord.el b/modules/prelude-key-chord.el index 4268574..333ebc6 100644 --- a/modules/prelude-key-chord.el +++ b/modules/prelude-key-chord.el @@ -43,6 +43,16 @@ (key-chord-define-global "xx" 'execute-extended-command) (key-chord-define-global "yy" 'browse-kill-ring) +(defvar key-chord-tips '("Press quickly to jump to the beginning of a visible word." + "Press quickly to jump to a visible line." + "Press quickly to jump to a visible character." + "Press quickly to switch to previous buffer." + "Press quickly to visualize the undo tree." + "Press quickly to execute extended command." + "Press quickly to browse the kill ring.")) + +(setq prelude-tips (append prelude-tips key-chord-tips)) + (key-chord-mode +1) (provide 'prelude-key-chord)