Two quick Emacs tips: These are really awesome
1. Opening compressed files in Emacs
Add the following line to your .emacs and open a .gz file directly in Emacs.
(auto-compression-mode t)
Saves you hell lot of a time!
2. Renaming buffers/files when they are open
This is "wow" for an emacs user :)
There is a file that you are editing on on emacs. [An open buffer]. And now you want to rename this file and not only the buffer.
One way was to close the buffer, rename the file on shell and re-open again.
Another way was to just write the existing buffer into an entirely new file and name it the way you want. Basically you end up making a new "copy"
Another good way is to use emacs dired more. Lets assume you have an open buffer.
Open dired mode ( C-x C-d )
Open the directory in emacs.
Traverse to the file and press R (rename)
Rename the file to what you want.
The buffer too gets renamed in Emacs automatically and so the file on the disk!
There is a file that you are editing on on emacs. [An open buffer]. And now you want to rename this file and not only the buffer.
One way was to close the buffer, rename the file on shell and re-open again.
Another way was to just write the existing buffer into an entirely new file and name it the way you want. Basically you end up making a new "copy"
Another good way is to use emacs dired more. Lets assume you have an open buffer.
Open dired mode ( C-x C-d )
Open the directory in emacs.
Traverse to the file and press R (rename)
Rename the file to what you want.
The buffer too gets renamed in Emacs automatically and so the file on the disk!
Go Free,
Go Emacs!
Ghanashyam
No comments:
Post a Comment