Emacs Minipost Pt. 6
—
emacs
Do you remember that in last Minipost we did some modifications in main.c file and saved it again for the sake of practice? I wants you to open that directory/folder location in file manager.
Notice we're seeing two files - main.c file and another file that has same name but ends with ~ e.g. main.c~. This is how Emacs save the backup of your file in case something goes wrong.
If you want, we can disable this backup saving by configuring this option in Emacs config file. Open the Emacs config file and add following:
(setq make-backup-files nil)
Follow these steps:
- Press
ctrl-xctrl-fand open the Emacs config file (write the relative or absolute path). - Do the modification as suggested above. e.g. add
(setq make-backup-files nil)in config file. - Press
ctrl-xctrl-sto save the config changes. - Go to file manager and delete
main.c~file. - Press
ctrl-xctrl-fand open themain.cfile. - Remove that extra
printf()that we added previously. - Press
ctrl-xctrl-sto save the changes inmain.cfile. - Go to the file manager and see if we now have
main.c~file or not? - Confirm that we don't have. If that is the case, yay! If not then try closing and then re-opening the Emacs.
Summary: We disabled the backup saving functionalities and practice the whole save, open, save flow.

