spacemacs/home function to open spacemacs buffer
This commit is contained in:
parent
e4bbbfc031
commit
7b638330ec
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue