From 1ba60e99e382f7b9b81a3b4a241261faec7228f6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 15 Mar 2018 01:18:38 -0400 Subject: [PATCH] Experimenting with frames-only-mode, disabled popwin --- .emacs.d/init.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3320f6f..2424a4c 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -357,6 +357,7 @@ :bind ("C-x g" . magit-status)) (use-package popwin :ensure + :disabled :config (popwin-mode 1) (delete 'help-mode popwin:special-display-config) @@ -395,6 +396,22 @@ (setq immortal-scratch-switch-to-respawned-scratch t) (immortal-scratch-mode t)) +(use-package frames-only-mode :ensure + :config + (frames-only-mode t) + (defun split-window-below-i3 () + "It's like `split-window-below', but uses i3 stuff" + (interactive) + (call-process "i3" nil nil nil "split v") + (make-frame)) + (defun split-window-right-i3 () + "It's like `split-window-below', but uses i3 stuff" + (interactive) + (call-process "i3" nil nil nil "split h") + (make-frame)) + (bind-key "C-x 2" 'split-window-below-i3) + (bind-key "C-x 3" 'split-window-right-i3)) + ;;;; optional external packages (use-package arduino-mode :mode "\\.pde\\'"