Commit 6c67198ecb83

Vincent Demeester <vincent@sbr.pm>
2015-08-15 22:43:14
Add guide-key :3
1 parent f2842a3
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -1276,6 +1276,24 @@
             (setq undo-tree-history-directory-alist (list (cons "." undo-dir))))))
     #+END_SRC
 
+*** Guide-key
+
+    =guide-key.el= displays the available key bindings automatically and dynamically.
+
+    #+BEGIN_SRC emacs-lisp
+      (use-package guide-key
+        :ensure t
+        :config
+        (progn
+          (setq guide-key/guide-key-sequence t)
+          (setq guide-key/popup-window-position 'bottom)
+          (guide-key-mode 1)
+          (defun guide-key/my-hook-function-for-org-mode ()
+            ;; (guide-key/add-local-guide-key-sequence "C-c")
+            (guide-key/add-local-highlight-command-regexp "org-"))
+          (add-hook 'org-mode-hook 'guide-key/my-hook-function-for-org-mode)))
+    #+END_SRC
+
 ** Server mode
 
    Start a server in not already running. I usually start emacs as a