diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-31 14:43:52 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-31 18:56:14 -0700 |
commit | 65f7a8781b17808dabbfa88dc4b2a419458f99d6 (patch) | |
tree | 51a693ee9a9c7d1dbd3dbc80e1b4b0e1803e7076 | |
parent | 14716e9721b131aa51a860cb13982d5f465b8cc8 (diff) | |
download | dotfiles-65f7a8781b17808dabbfa88dc4b2a419458f99d6.tar.gz |
don't assume {inferior-,}scheme-mode-hook available at startup
-rw-r--r-- | .emacs.d/init-spw.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 12be6ead..0b5fb822 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -208,8 +208,11 @@ add places the library might be available to `load-path'." (spw/when-library-available paredit (dolist (hook '(lisp-mode-hook emacs-lisp-mode-hook - lisp-interaction-mode-hook - scheme-mode-hook + lisp-interaction-mode-hook)) + (add-to-list hook 'enable-paredit-mode))) + +(with-eval-after-load 'scheme-mode + (dolist (hook '(scheme-mode-hook inferior-scheme-mode-hook)) (add-to-list hook 'enable-paredit-mode))) |