feat(gs/emacs): Add some config for vterm
for some reason installing it directly via nix doesn't work atm, so I have this hack here Change-Id: I45093633c35e756988078eb136c6e7bc3c532eea Reviewed-on: https://cl.tvl.fyi/c/depot/+/2078 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
2e2bdf9c6c
commit
bdc5d0cfa0
3 changed files with 34 additions and 5 deletions
|
@ -387,7 +387,7 @@
|
||||||
(add-hook! evil-normal-state-entry-hook
|
(add-hook! evil-normal-state-entry-hook
|
||||||
#'org-align-all-tags))
|
#'org-align-all-tags))
|
||||||
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
|
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||||
(setq whitespace-global-modes '(not org-mode magit-mode))
|
(setq whitespace-global-modes '(not org-mode magit-mode vterm-mode))
|
||||||
(setf (alist-get 'file org-link-frame-setup) 'find-file-other-window)
|
(setf (alist-get 'file org-link-frame-setup) 'find-file-other-window)
|
||||||
(set-face-foreground 'org-block +solarized-s-base00)
|
(set-face-foreground 'org-block +solarized-s-base00)
|
||||||
|
|
||||||
|
|
24
users/glittershark/emacs.d/vterm.el
Normal file
24
users/glittershark/emacs.d/vterm.el
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
;;; ../code/depot/users/glittershark/emacs.d/vterm.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(defun require-vterm ()
|
||||||
|
(add-to-list
|
||||||
|
'load-path
|
||||||
|
(concat
|
||||||
|
(s-trim
|
||||||
|
(shell-command-to-string
|
||||||
|
"nix-build --no-out-link ~/code/depot -A third_party.emacs.vterm"))
|
||||||
|
"/share/emacs/site-lisp/elpa/vterm-20200515.1412"))
|
||||||
|
(require 'vterm))
|
||||||
|
|
||||||
|
(defun +grfn/vterm-setup ()
|
||||||
|
(hide-mode-line-mode)
|
||||||
|
(setq-local evil-collection-vterm-send-escape-to-vterm-p t))
|
||||||
|
|
||||||
|
(add-hook 'vterm-mode-hook #'+grfn/vterm-setup)
|
||||||
|
|
||||||
|
(map! (:map vterm-mode-map
|
||||||
|
"<C-escape>" #'evil-normal-state))
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(require-vterm)
|
||||||
|
)
|
|
@ -53,10 +53,15 @@ in {
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacsUnstable;
|
package = pkgs.emacsUnstable;
|
||||||
extraPackages = (epkgs: with depot.tools.emacs-pkgs; [
|
extraPackages = (epkgs:
|
||||||
dottime
|
(with depot.tools.emacs-pkgs; [
|
||||||
tvl
|
dottime
|
||||||
]);
|
tvl
|
||||||
|
])
|
||||||
|
++ (with depot.third_party.emacs; [
|
||||||
|
vterm
|
||||||
|
])
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
grfn.impure.clonedRepos = {
|
grfn.impure.clonedRepos = {
|
||||||
|
|
Loading…
Reference in a new issue