Add function spacemacs/new-empty-buffer-new-frame with binding
Add new function spacemacs/new-empty-buffer-new-frame, implemented with a new selector in spacemacs/new-empty-buffer. Bind it to <SPC> b N f
This commit is contained in:
parent
a51d8cecd1
commit
1671f53f93
|
@ -599,7 +599,8 @@ buffer in a split window."
|
|||
('left (split-window-horizontally))
|
||||
('below (spacemacs/split-window-vertically-and-switch))
|
||||
('above (split-window-vertically))
|
||||
('right (spacemacs/split-window-horizontally-and-switch)))
|
||||
('right (spacemacs/split-window-horizontally-and-switch))
|
||||
('frame (select-frame (make-frame))))
|
||||
;; Prompt to save on `save-some-buffers' with positive PRED
|
||||
(with-current-buffer newbuf
|
||||
(setq-local buffer-offer-save t))
|
||||
|
@ -631,6 +632,12 @@ in a split window to the right."
|
|||
(interactive)
|
||||
(spacemacs/new-empty-buffer 'right))
|
||||
|
||||
(defun spacemacs/new-empty-buffer-new-frame ()
|
||||
"Create a new buffer called untitled(<n>),
|
||||
in a new frame."
|
||||
(interactive)
|
||||
(spacemacs/new-empty-buffer 'frame))
|
||||
|
||||
;; from https://gist.github.com/timcharper/493269
|
||||
(defun spacemacs/split-window-vertically-and-switch ()
|
||||
(interactive)
|
||||
|
|
|
@ -138,6 +138,7 @@
|
|||
"b N j" 'spacemacs/new-empty-buffer-below
|
||||
"b N k" 'spacemacs/new-empty-buffer-above
|
||||
"b N l" 'spacemacs/new-empty-buffer-right
|
||||
"b N f" 'spacemacs/new-empty-buffer-new-frame
|
||||
"b N n" 'spacemacs/new-empty-buffer
|
||||
"bP" 'spacemacs/copy-clipboard-to-whole-buffer
|
||||
"bp" 'previous-buffer
|
||||
|
|
Loading…
Reference in New Issue