common/home-manager: make fish and emacs play nicer
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
28f17b91b4
commit
9c960a866a
|
@ -545,11 +545,8 @@ in {
|
||||||
});
|
});
|
||||||
|
|
||||||
bindStar = {
|
bindStar = {
|
||||||
"C-s c" = "xe/tabnew-shell";
|
|
||||||
"C-a c" = "xe/tabnew-shell";
|
"C-a c" = "xe/tabnew-shell";
|
||||||
"C-s h" = "split-window-vertically";
|
|
||||||
"C-a h" = "split-window-vertically";
|
"C-a h" = "split-window-vertically";
|
||||||
"C-s v" = "split-window-horizontally";
|
|
||||||
"C-a v" = "split-window-horizontally";
|
"C-a v" = "split-window-horizontally";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,9 @@ cell (regexp . minor-mode)."
|
||||||
|
|
||||||
(defun xe/tabnew-shell ()
|
(defun xe/tabnew-shell ()
|
||||||
"Opens a shell in a new tab (tmux Control-b c)."
|
"Opens a shell in a new tab (tmux Control-b c)."
|
||||||
|
(interactive)
|
||||||
(tab-bar-new-tab 1)
|
(tab-bar-new-tab 1)
|
||||||
(vterm)
|
(vterm)
|
||||||
(evil-set-initial-state 'vterm-mode 'emacs)
|
|
||||||
(rename-uniquely))
|
(rename-uniquely))
|
||||||
|
|
||||||
(provide 'xe-tools)
|
(provide 'xe-tools)
|
||||||
|
|
|
@ -82,7 +82,7 @@ in {
|
||||||
end
|
end
|
||||||
|
|
||||||
function e
|
function e
|
||||||
vterm_printf "51;Efind-file";
|
vterm_printf "51;Efind-file" $argv;
|
||||||
end
|
end
|
||||||
|
|
||||||
function vterm_prompt_end;
|
function vterm_prompt_end;
|
||||||
|
|
Loading…
Reference in New Issue