Add keybinding and evil-ex-cmd string for spacemacs/new-empty-buffer fn

This commit is contained in:
Balaji Sivaraman 2016-01-16 18:12:19 +05:30 committed by syl20bnr
parent e643b0b560
commit ab109b1eb2
2 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,7 @@ argument takes the kindows rotate backwards."
(interactive)
(let ((newbuf (generate-new-buffer-name "untitled")))
(switch-to-buffer newbuf)))
(evil-ex-define-cmd "enew" 'spacemacs/new-empty-buffer)
;; from https://gist.github.com/timcharper/493269
(defun spacemacs/split-window-vertically-and-switch ()

View File

@ -67,6 +67,7 @@
"b C-k" 'spacemacs/kill-matching-buffers-rudely
"bP" 'spacemacs/copy-clipboard-to-whole-buffer
"bn" 'spacemacs/next-useful-buffer
"bN" 'spacemacs/new-empty-buffer
"bp" 'spacemacs/previous-useful-buffer
"bR" 'spacemacs/safe-revert-buffer
"bs" 'spacemacs/switch-to-scratch-buffer