Quality of life keybindings for compiling, comint history, and eval-region
This commit is contained in:
parent
433af27124
commit
d4a756116a
@ -1235,6 +1235,11 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** IDE Features
|
** IDE Features
|
||||||
|
*** REPLs
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(evil-define-key 'insert comint-mode-map (kbd "C-n") 'comint-next-input)
|
||||||
|
(evil-define-key 'insert comint-mode-map (kbd "C-p") 'comint-previous-input)
|
||||||
|
#+end_src
|
||||||
*** Company
|
*** Company
|
||||||
#+begin_src rust
|
#+begin_src rust
|
||||||
println!("Hello world");
|
println!("Hello world");
|
||||||
@ -1414,6 +1419,8 @@ println!("Hello world");
|
|||||||
*** Compilation
|
*** Compilation
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq compilation-auto-jump-to-first-error t)
|
(setq compilation-auto-jump-to-first-error t)
|
||||||
|
(define-key global-map (kbd "<f9>") #'recompile)
|
||||||
|
(define-key global-map (kbd "<f10>") #'compile)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Debugging
|
** Debugging
|
||||||
*** DAP
|
*** DAP
|
||||||
@ -1517,6 +1524,10 @@ it doesn't close it.
|
|||||||
(setq lsp-rust-analyzer-display-reborrow-hints t)
|
(setq lsp-rust-analyzer-display-reborrow-hints t)
|
||||||
(setq lsp-rust-analyzer-cargo-watch-command "clippy"))
|
(setq lsp-rust-analyzer-cargo-watch-command "clippy"))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
*** Elisp
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(global-set-key (kbd "C-x C-r") 'eval-region)
|
||||||
|
#+end_src
|
||||||
*** Haskell
|
*** Haskell
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'haskell-mode)
|
(straight-use-package 'haskell-mode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user