kbkbkbkb1/guide-key — pull request #17 by aki2o (2014-02-24 07:29:34+00:00)
Title: Add the helper commands for setup major-mode

The following config is a bother for me.

```lisp
(defun guide-key/my-hook-function-for-org-mode ()
(guide-key/add-local-guide-key-sequence "C-c")
(guide-key/add-local-guide-key-sequence "C-c C-x")
(guide-key/add-local-highlight-command-regexp "org-"))
(add-hook 'org-mode-hook 'guide-key/my-hook-function-for-org-mode)
```

So, I've added the helper for the user like me.
The usage is the following.

```lisp
;; Basic
(guide-key/setup-local-keystroke 'org-mode :kbd "C-c C-x")
;; If keystroke is multiple
;; (guide-key/setup-local-keystroke 'org-mode :kbd '("C-c" "C-c C-x"))
;; If org-... is not highlighted
;; (guide-key/setup-local-keystroke 'org-mode :kbd "C-c C-x" :not-highlight t)

;; If add the highlight rule
(guide-key/setup-local-highlight 'org-mode "\\`outline-")
```

Best regards.