LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   emacs buffer ! (https://www.linuxquestions.org/questions/linux-software-2/emacs-buffer-207686/)

black 07-20-2004 10:59 PM

emacs buffer !
 
hi all~

I am start using emacs these days, and because I was with windows texteditor before(ie, EditPlus) and got confused when transfered myself to emacs. i noticed when i was coding with somewhat file it will automatically create a temporaly buffer file like myFile.cpp~, what did it mean and can emacs avoid creating them ?

thanx in advance~

afm 07-20-2004 11:57 PM

Open or create a file called .emacs on your home directory and add the line below:

Code:

(setq make-backup-files nil)
Then files~ will not be created anymore.

Notice that the ~ suffix is the equivalent of the .BAK in Windows/DOS world. In case you acidentally change and save an important file, you can always revert back from the ~ file. This already saved me from big headaches.

In other words, emacs create those files for your own protection, so I advise you to think twice before disabling this feature. It's so easy to do a "rm *~" at the end of the day, so why risk?

black 07-21-2004 12:46 AM

thanx afm i think i may keep backup files as they were.

and here are some new problems i'd appreciate your help :)

1 now i am editing c++ file with emacs, is there any way to make emacs highlighted for c++ or other syntax ?

2 and, when i save a c++ source file test.cpp, how to invoke certain compiler to compile it ?

3 in windows i can select certain region by pressing Shift key and moveing cursor together, and how can we select region in emacs ?

4 cut, copy and paste have no shortcut keys ??? i can only see something like "(<cut>)" etc.

5 some commands like colose file etc are usually used, but by default there are no shortcut keys for them, can i customize it ?

6 anywhere can i change indent size ??? default seems to be 8 spaces, but i prefer 4 instead~

black 07-21-2004 09:57 PM

question 4 solved, how about others ? help~~~~~~~~~~~~~~


All times are GMT -5. The time now is 12:40 AM.