diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-21 00:42:40 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-21 00:42:40 -0500 |
commit | 22e3a4ef2a3b668abb8fbc1ae0ae28b186d3b22c (patch) | |
tree | 933e3392dbfe2aed16e46a10da36d69a4c3ce29e /common/.config/emacs | |
parent | 70af3a8d926a3a0c65ac63f62554213ab1e230be (diff) |
buncha stuff
Diffstat (limited to 'common/.config/emacs')
-rw-r--r-- | common/.config/emacs/languages.el.org | 7 | ||||
-rw-r--r-- | common/.config/emacs/tools.el.org | 29 |
2 files changed, 13 insertions, 23 deletions
diff --git a/common/.config/emacs/languages.el.org b/common/.config/emacs/languages.el.org index 4544563..1763def 100644 --- a/common/.config/emacs/languages.el.org +++ b/common/.config/emacs/languages.el.org @@ -174,6 +174,13 @@ Use CDLaTeX for environment and macro insertion. (add-hook 'LaTeX-mode-hook #'turn-on-cdlatex)) #+end_src +Use =latex-preview-pane= to see the PDF automatically. +#+begin_src emacs-lisp + (use-package latex-preview-pane + :config + (latex-preview-pane-enable)) +#+end_src + * YAML Install YAML support and run =eglot= on YAML files. #+begin_src emacs-lisp diff --git a/common/.config/emacs/tools.el.org b/common/.config/emacs/tools.el.org index 43fc6d0..2a96499 100644 --- a/common/.config/emacs/tools.el.org +++ b/common/.config/emacs/tools.el.org @@ -1,28 +1,5 @@ #+title: Emacs Tool Setup -* Vi Keybindings -Use =vi= keybindings with =evil=. Set the undo system to =undo-fu=. Wrapped lines can be moved between with =j= and =k=. -#+begin_src emacs-lisp - (use-package evil - :init - (setq evil-want-keybinding nil) - :config - (evil-mode) - (evil-global-set-key 'motion "j" 'evil-next-visual-line) - (evil-global-set-key 'motion "k" 'evil-previous-visual-line) - (evil-global-set-key 'motion (kbd "RET") nil) - :custom - (evil-undo-system 'undo-fu)) -#+end_src - -Use =evil-collection= to include =vi= keybindings in extra modes. -#+begin_src emacs-lisp - (use-package evil-collection - :after evil - :config - (evil-collection-init)) -#+end_src - * Undo Better undo with =undo-fu=. #+begin_src emacs-lisp @@ -158,6 +135,12 @@ Use =eshell= as an integrated shell. (global-set-key (kbd "C-c e") 'eshell) #+end_src +Use =vterm= when it works better than =eshell=. +#+begin_src emacs-lisp + (use-package vterm) + (global-set-key (kbd "C-c v") 'vterm) +#+end_src + * Language Servers Add =eglot= keybindings. #+begin_src emacs-lisp |