Add link to vim migration guide in quickhelp.

This commit is contained in:
person808 2015-06-06 07:24:26 -10:00 committed by syl20bnr
parent 0bc9dd45c9
commit a572f2edee
2 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,9 @@
(defconst spacemacs-cache-directory
(expand-file-name (concat user-emacs-directory ".cache/"))
"Spacemacs storage area for persistent files")
(defconst spacemacs-docs-directory
(expand-file-name (concat user-emacs-directory "doc/"))
"Spacemacs documentation directory.")
(defconst user-home-directory
(expand-file-name "~/")

View File

@ -200,6 +200,14 @@ If TYPE is nil, just remove widgets."
:help-echo "Teach you how to use Emacs basics."
:action (lambda (&rest ignore) (call-interactively #'help-with-tutorial))
:mouse-face 'highlight
:follow-link "\C-m"))
(widget-insert " ")
(add-to-list 'spacemacs-buffer--note-widgets
(widget-create 'push-button
:tag (propertize "Vim Migration Guide" 'face 'font-lock-keyword-face)
:help-echo "Documentation for former vim users."
:action (lambda (&rest ignore) (find-file (concat spacemacs-docs-directory "VIMUSERS.org")))
:mouse-face 'highlight
:follow-link "\C-m")))))
(spacemacs-buffer//insert-note file "Quick Help" widget-func))
(setq spacemacs-buffer--previous-insert-type 'quickhelp))