How to open terminal in current directory?
问题 When i use M-x shell to open a new terminal, it will sometimes set the current directory to the file in. But sometimes it won't. So is there a function to always open a new terminal in current directory? 回答1: There's the package shell-here available in ELPA: M-x list-packages , look for shell-here , mark for install ( i ) and execute ( x ). An excerpt of the readme: Open a shell buffer in (or relative to) default-directory, e.g. whatever directory the current buffer is in. If you have find