aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-09-29 17:40:57 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-09-29 17:40:57 +0100
commit09ea92f9cc7674cd957437a3a89da5e63201123a (patch)
treedcbeade376691443de880fe1a471f8e0fd6bb591
parentd69deba256f699f24ca30038713b9594366d81cc (diff)
downloaddotfiles-09ea92f9cc7674cd957437a3a89da5e63201123a.tar.gz
dotfiles-09ea92f9cc7674cd957437a3a89da5e63201123a.tar.bz2
dotfiles-09ea92f9cc7674cd957437a3a89da5e63201123a.zip
(Emacs)~evil-window-vsplit -> make-frame
Now fset all evil-window-vsplit calls with make-frame. Also call switch-buffer when creating new frames. The reason for this decision was that I use a tiling window manager, which is something I can take off the shoulders of Emacs and onto my wm.
-rw-r--r--Emacs/.config/emacs/config.org8
1 files changed, 7 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 4eec654..8bfd6ee 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -336,7 +336,6 @@ Setup the evil package, with some basic keybinds.
:general
(general-def
:states 'normal
- [remap evil-window-vsplit] #'make-frame
"TAB" #'evil-jump-item
"r" #'evil-replace-state)
(general-def
@@ -352,6 +351,7 @@ Setup the evil package, with some basic keybinds.
evil-vsplit-window-right t
evil-want-abbrev-expand-on-insert-exit t)
:config
+ (fset #'evil-window-vsplit #'make-frame)
(evil-mode))
#+end_src
*** Evil surround
@@ -496,6 +496,12 @@ to as a fully fledged completion framework.
ido-enable-dot-prefix t
ido-enable-regexp nil)
:config
+ (add-to-list
+ 'after-make-frame-functions
+ #'(lambda (frame) (interactive)
+ (with-selected-frame frame
+ (ido-switch-buffer))))
+
(ido-mode)
(ido-everywhere))
#+end_src