Merge pull request #555 from hbin/prelude-tips-for-key-chord-mode
Move the prelude tips for key-chord-mode to its module file.
This commit is contained in:
commit
1681215b25
2 changed files with 10 additions and 3 deletions
|
@ -403,9 +403,6 @@ Doesn't mess with special buffers."
|
||||||
"Press <C-c p g> or <s-g> to run grep on a project."
|
"Press <C-c p g> or <s-g> to run grep on a project."
|
||||||
"Press <C-c p s> or <s-p> to switch between projects."
|
"Press <C-c p s> or <s-p> to switch between projects."
|
||||||
"Press <C-=> or <s-x> to expand the selected region."
|
"Press <C-=> or <s-x> to expand the selected region."
|
||||||
"Press <jj> quickly to jump to the beginning of a visible word."
|
|
||||||
"Press <jk> quickly to jump to a visible character."
|
|
||||||
"Press <jl> quickly to jump to a visible line."
|
|
||||||
"Press <C-c g> to search in Google."
|
"Press <C-c g> to search in Google."
|
||||||
"Press <C-c G> to search in GitHub."
|
"Press <C-c G> to search in GitHub."
|
||||||
"Press <C-c y> to search in YouTube."
|
"Press <C-c y> to search in YouTube."
|
||||||
|
|
|
@ -43,6 +43,16 @@
|
||||||
(key-chord-define-global "xx" 'execute-extended-command)
|
(key-chord-define-global "xx" 'execute-extended-command)
|
||||||
(key-chord-define-global "yy" 'browse-kill-ring)
|
(key-chord-define-global "yy" 'browse-kill-ring)
|
||||||
|
|
||||||
|
(defvar key-chord-tips '("Press <jj> quickly to jump to the beginning of a visible word."
|
||||||
|
"Press <jl> quickly to jump to a visible line."
|
||||||
|
"Press <jk> quickly to jump to a visible character."
|
||||||
|
"Press <JJ> quickly to switch to previous buffer."
|
||||||
|
"Press <uu> quickly to visualize the undo tree."
|
||||||
|
"Press <xx> quickly to execute extended command."
|
||||||
|
"Press <yy> quickly to browse the kill ring."))
|
||||||
|
|
||||||
|
(setq prelude-tips (append prelude-tips key-chord-tips))
|
||||||
|
|
||||||
(key-chord-mode +1)
|
(key-chord-mode +1)
|
||||||
|
|
||||||
(provide 'prelude-key-chord)
|
(provide 'prelude-key-chord)
|
||||||
|
|
Loading…
Reference in a new issue