Skip to content

Commit

Permalink
Change shortcut of bookmarks in *spacemacs* buffer
Browse files Browse the repository at this point in the history
In *spacemacs* buffer, the quick help in `[?]` shows that `m` jumps to
the menu. However, if one customizes the startup lists by setting
`dotspacemacs-startup-lists '(recents bookmarks projects)`, the
shortcut `m` of jumping to the menu would be shadowed and `m` jumps to
Bookmarks.

With the help of @travisbhartwell and @TheBB, I changed the shortcut of
jumping to the Bookmarks to `a` to avoid this shortcut conflict.
  • Loading branch information
Kechao CAI committed Dec 14, 2015
1 parent 17fae46 commit c7d7702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/core-spacemacs-buffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ HPADDING is the horizontal spacing betwee the content line and the frame border.
((eq el 'bookmarks)
(helm-mode)
(when (spacemacs-buffer//insert-bookmark-list "Bookmarks:" (bookmark-all-names))
(spacemacs//insert--shortcut "m" "Bookmarks:")
(spacemacs//insert--shortcut "a" "Bookmarks:")
(insert list-separator)))
((eq el 'projects)
(projectile-mode)
Expand Down
2 changes: 2 additions & 0 deletions core/info/quickhelp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Press p to jump to project list.

Press m to jump to the top menu.

Press a to jump to the bookmarks if bookmark is enabled in the startup list.

Press o to jump to any link or button.

Press SPC (in Vim mode) or Alt-m (in Emacs mode) to access Spacemacs commands.
Expand Down

0 comments on commit c7d7702

Please sign in to comment.