diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-20 11:15:52 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-20 11:15:52 +0000 |
commit | 9e930830f268be061aa3c35a5165d71c2a7fbd94 (patch) | |
tree | 3a1e903051edf8c234d81e3140b7a577e99f0cb4 /.emacs.d | |
parent | 83b22f50622de5a13d027528bf5ec6e0b5592fd5 (diff) | |
download | dotfiles-9e930830f268be061aa3c35a5165d71c2a7fbd94.tar.gz |
Use :hook instead of add-hook
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-sql.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-sql.el b/.emacs.d/lisp/init-sql.el index ca304e1..d1a3fe3 100644 --- a/.emacs.d/lisp/init-sql.el +++ b/.emacs.d/lisp/init-sql.el @@ -37,7 +37,7 @@ (format "SQL history will not be saved because %s is nil" (symbol-name rval)))))) - (add-hook 'sql-interactive-mode-hook 'my-sql-save-history-hook)) + :hook (sql-interactive-mode . my-sql-save-history-hook)) (use-package sqlup-mode |