You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
The issue can be reproduced on the latest available commit of Doom.
The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)
Expected behavior
When you edit a file with emacs FILE_NAME command in terminal, format-onsave is enabled.
Current behavior
Cannot make format-onsave working without opening another file.
I found this in lisp/doom-start.el: 318:(doom-run-hook-on 'doom-first-file-hook '(find-file-hook dired-initial-position-hook))
And modules/editor/format/config.el: 47: (add-hook 'doom-first-file-hook #'apheleia-global-mode))
These mean that apheleia-global-mode will not be triggered if u open a file using emacs FILE_NAME
IDK whether this is expected behavior🤔
st0nie
changed the title
open file using emacs FILE_NAME will not trigger format-onsave
open file using emacs FILE_NAME will not trigger format-onsaveApr 24, 2024
I confirm that...
I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
The issue can be reproduced on the latest available commit of Doom.
The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)
Expected behavior
When you edit a file with
emacs FILE_NAME
command in terminal, format-onsave is enabled.Current behavior
Cannot make format-onsave working without opening another file.
I found this in lisp/doom-start.el:
318:(doom-run-hook-on 'doom-first-file-hook '(find-file-hook dired-initial-position-hook))
And modules/editor/format/config.el:
47: (add-hook 'doom-first-file-hook #'apheleia-global-mode))
These mean that
apheleia-global-mode
will not be triggered if u open a file usingemacs FILE_NAME
IDK whether this is expected behavior🤔
Steps to reproduce
For example:
Launch a terminal emulator
Then edit the file, then save it
The file is not formatted automatically
System Information
https://pastebin.com/RGmaWJrc
The text was updated successfully, but these errors were encountered: