Skip to content

Commit

Permalink
Attach on-first-buffer-hook to on-switch-buffer-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
axgfn committed May 20, 2022
1 parent 76eaf85 commit 83baed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion on.el
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ triggering hooks during startup."
(add-hook 'window-buffer-change-functions #'on-init-ui-h -100)

(unless noninteractive
(on-run-hook-on 'on-first-buffer-hook '(find-file-hook))
(on-run-hook-on 'on-first-buffer-hook '(find-file-hook on-switch-buffer-hook))
(on-run-hook-on 'on-first-file-hook '(find-file-hook dired-initial-position-hook))
(on-run-hook-on 'on-first-input-hook '(pre-command-hook)))

Expand Down

0 comments on commit 83baed0

Please sign in to comment.