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\\'"