spacemacs/home function to open spacemacs buffer

This commit is contained in:
Rich Alesi 2015-03-25 22:11:37 -07:00 committed by syl20bnr
parent e4bbbfc031
commit 7b638330ec
2 changed files with 7 additions and 0 deletions

View File

@ -551,6 +551,12 @@ For instance pass En as source for english."
(let ((newbuf (generate-new-buffer-name "untitled")))
(switch-to-buffer newbuf)))
(defun spacemacs/home ()
"Go to home Spacemacs buffer"
(interactive)
(switch-to-buffer "*spacemacs*")
)
;; from https://github.com/gempesaw/dotemacs/blob/emacs/dg-defun.el
(defun kill-matching-buffers-rudely (regexp &optional internal-too)
"Kill buffers whose name matches the specified REGEXP. This

View File

@ -50,6 +50,7 @@
"bd" 'spacemacs/kill-this-buffer
"bb" 'spacemacs/alternate-buffer ;; switch back and forth between two last buffers
"TAB" 'spacemacs/alternate-buffer
"bh" 'spacemacs/home
"be" 'spacemacs/safe-erase-buffer
"bK" 'kill-other-buffers
"bk" 'ido-kill-buffer