From 51bcba8964d7b55aee8b7a0e7944413890d0195e Mon Sep 17 00:00:00 2001 From: Ben Lloyd Date: Fri, 3 Feb 2017 21:19:04 +0000 Subject: [PATCH] Added frame manipulation commands --- doc/DOCUMENTATION.org | 14 ++++++++++++++ .../+distributions/spacemacs-base/keybindings.el | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index aeb1bffe7..372345414 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -126,6 +126,7 @@ - [[#buffers-manipulation-transient-state][Buffers manipulation transient state]] - [[#special-buffers][Special Buffers]] - [[#files-manipulations-key-bindings][Files manipulations key bindings]] + - [[#frame-manipulation-key-bindings][Frame manipulation key bindings]] - [[#emacs-and-spacemacs-files][Emacs and Spacemacs files]] - [[#browsing-files-in-completion-buffer][Browsing files in completion buffer]] - [[#ido][Ido]] @@ -2178,6 +2179,19 @@ Files manipulation commands (start with ~f~): | ~SPC f v p~ | add a local variable to the first line of the current file | | ~SPC f y~ | show and copy current file absolute path in the minibuffer | +**** Frame manipulation key bindings +Frame manipulation commands (start with ~F~): + +| Key Binding | Description | +|-------------+-----------------------------------------------------| +| ~SPC F f~ | open a file in another frame | +| ~SPC F c~ | delete the current frame (unless it’s the only one) | +| ~SPC F C~ | delete all other frames | +| ~SPC F b~ | open a buffer in another frame | +| ~SPC F B~ | open a buffer in another frame (but don’t switch) | +| ~SPC F o~ | cycle focus between frames | +| ~SPC F n~ | create a new frame | + **** Emacs and Spacemacs files Convenient key bindings are located under the prefix ~SPC f e~ to quickly navigate between =Emacs= and Spacemacs specific files. diff --git a/layers/+distributions/spacemacs-base/keybindings.el b/layers/+distributions/spacemacs-base/keybindings.el index c99954db0..2e80bcfbc 100644 --- a/layers/+distributions/spacemacs-base/keybindings.el +++ b/layers/+distributions/spacemacs-base/keybindings.el @@ -27,6 +27,7 @@ ("fC" "files/convert") ("fe" "emacs(spacemacs)") ("fv" "variables") + ("F" "frame") ("g" "git/versions-control") ("h" "help") ("hd" "help-describe") @@ -200,6 +201,16 @@ "fvf" 'add-file-local-variable "fvp" 'add-file-local-variable-prop-line "fy" 'spacemacs/show-and-copy-buffer-filename) +;; frame ---------------------------------------------------------------------- +(spacemacs/set-leader-keys + "Ff" 'find-file-other-frame + "Fc" 'delete-frame + "FC" 'delete-other-frames + "Fb" 'switch-to-buffer-other-frame + "FB" 'display-buffer-other-frame + "Fd" 'dired-other-frame + "Fo" 'other-frame + "Fn" 'make-frame) ;; help ----------------------------------------------------------------------- (spacemacs/set-leader-keys "hdb" 'describe-bindings