Emacs navigation between files with same names

后端 未结 3 1625
刺人心
刺人心 2021-01-19 02:41

I\'ve long been a fan of GNU Emacs\' file navigation model. I\'ve been switching buffers with C-x C-f ..., C-x b; C-mouse-1 occasiona

3条回答
  •  执念已碎
    2021-01-19 03:36

    You can rename the buffer without changing the file it is attached to. M-x rename-buffer new-buffer-name . After that, you can bounce back and forth using the more convenient buffer names, but when you save any changes they go to the actual files associated with each buffer.

    In your case, you might rename your message.py files to ui-message, ui2-message and base-message. Those will be easier to navigate to (and remember which files they belong to) with C-x b.

提交回复
热议问题