home/natto: use just legacy configs

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-11-08 02:52:44 +05:30
parent 3da8b6ba31
commit 05a1c4707b
11 changed files with 179 additions and 204 deletions

View File

@@ -482,7 +482,7 @@ This returns the command to run in the terminal
("java" (concat "java" full))
("py" (concat "python" full))
("cpp" (concat "g++ " full " -o " file " && " file " && rm " file))
("hs" (concat "ghc -dynamic" full " && " file " && rm " file " " file ".o"))
("hs" (concat "ghc -dynamic " full " && " file " && rm " file " " file ".o"))
("sh" (concat "sh" full))
("js" (concat "node" full))
("ts" (concat "tsc" full " && node " file ".js && rm " file ".js" ))
@@ -537,7 +537,8 @@ This returns the command to run in the terminal
"C-S-v" 'yank)
(general-define-key
:keymaps '(global vterm-mode-map)
:keymaps '(global override vterm-mode-map)
:states evil-states
"M-o" 'treemacs
"M-v" 'split-window-vertically
"M-h" 'split-window-horizontally
@@ -561,15 +562,16 @@ This returns the command to run in the terminal
#+begin_src emacs-lisp
(with-eval-after-load 'vterm-toggle
(general-define-key
:keymaps '(global vterm-mode-map)
:keymaps '(global override vterm-mode-map)
:states evil-states
"<f4>" (lambda () (interactive) (vterm t))
"C-<f1>" 'vterm-toggle-cd
"<f1>" 'vterm-toggle
"<f5>" (lambda () (interactive) (run-in-vterm (candrun))))
(define-key vterm-mode-map (kbd "<F2>") 'vterm-toggle-forward)
(define-key vterm-mode-map (kbd "<f3>") 'vterm-toggle-backward)
)
(general-define-key
:keymaps 'vterm-mode-map
"<f2>" 'vterm-toggle-forward
"<f3>" 'vterm-toggle-backward))
#+end_src
*** Toggle Appearance