diff --git a/emacs/.config/emacs/configuration.org b/emacs/.config/emacs/configuration.org index 86ce0211..6c6e485d 100644 --- a/emacs/.config/emacs/configuration.org +++ b/emacs/.config/emacs/configuration.org @@ -974,7 +974,7 @@ Format code according to PEP8 on save: #+begin_src emacs-lisp (use-package py-autopep8 :after python-mode - :hook (elpy-mode-hook . py-autopep8-enable-on-save)) + :hook (elpy-mode-hook . py-autopep8-mode)) #+end_src ** Ruby @@ -1304,7 +1304,7 @@ I'm trying =vterm=. This disables =global-hl-line-mode= locally and lets me open :ensure-system-package (cmake ("/usr/share/doc/libvterm-dev" . libvterm-dev)) :commands (multi-vterm) - :hook (vterm-mode-hook . (lambda () (setq-local global-hl-line-mode nil)))) + :hook (vterm-mode . (lambda () (setq-local global-hl-line-mode nil)))) (global-set-key (kbd "C-c t") 'multi-vterm) #+end_src @@ -1867,7 +1867,8 @@ I rarely write =LaTeX= directly any more, but I often export through it with =Or - Enable a minor mode for dealing with math (it adds a few useful keybindings), and always treat the current file as the "main" file. That's intentional, since I'm usually actually in an org document. #+begin_src emacs-lisp - (use-package auctex + (use-package tex + :ensure auctex :custom (TeX-parse-self t)