I cannot agree with your comment. If an unexpected financial disaster occurs in the middle of investing. An emergency fund is created to deal with that unexpected financial disaster. For example, if a financial crisis occurs in the middle of investing, then you should not have to sell your investment. And at that time you should be able to deal with the disaster by taking money from the emergency fund. Or if you buy weekly or monthly. Then if your personal expenses are high that week or month or a financial crisis occurs. Then if you continue to invest with money from your emergency fund. I do not think this is a bad habit. If you have to invest with money from the emergency fund, then when the disaster passes, you will have to gradually repeat the amount of money you have withdrawn from the emergency fund.
Try to keep 3 times your stable income in the emergency fund. And in addition to this, create a reserve fund.
It would not be a good idea to continue investing from an emergency fund during an unexpected financial crisis. An emergency fund is for those moments when your life or that of someone under you is in doubt or when an emergency fund is the only last resort to manage your life. Financial crisis and emergency fund are not the same. Even maintaining continuity in investment is not necessary at any moment or it is not included in the expenditure from the emergency fund. To maintain continuity in investment during a financial crisis, you can first reach into the cash flow, the reserve fund. If even after these two funds are exhausted, your financial crisis does not go away or your financial solvency does not return, then I think it is better to stop the continuity of investment for a while. Even in my opinion, if the financial crisis does not go away even after the cash flow ends, you should focus more on the financial crisis rather than focusing on continuity in your investment. When your financial situation improves and you regain solvency, you can continue to invest again and replenish the funds. Maintaining continuity in investment is not as important to you as you mentioned.