Using Buffers in emacs

The emacs editor has multiple buffer areas, which allows you to edit multiple files at the same time. You can load files into a buffer and switch between buffers while editing.

To load a new file into a buffer while you're in emacs, use the C-x C-f key combination. This is the emacs Find a File mode. It takes you to the bottom line in the window and allows you to enter the name of the file you want to edit. If you don't know the name or location of the file, just hit the Enter key to bring up a file browser in the editor window, as shown in Figure 6-7.

file Edit view "terminal Tabs Kelp

[File Edit Optior

s Buffers

Tools Operate Mark Regexp Immediate Subdir Help

total used

in

directory

52B available 960181

drwxr-xr-

X

33

rich

rich

4096

2008-07

09

08

44

drwxr-xr-

X

4

root

root

4096

2008-06

26

06

28

_ ___

rich

rich

879

2008-07

09

07

02

¡bash history

-rw- r--r-

1

rich

rich

220

2008-06

17

11

29

.bash Logout

-rw- r-r-

1

rich

rich

2928

2008-06

17

11

29

.bashrc

drwxr-xn

X

3

rich

ricti

4096

2008-06

17

11

34

.cache

drwxr-jif-

X

5

rich

rich

4096

2008-06

24

06

19

.contig

rich

ricti

4096

2008-06

25

09

47

_dbus

drwxr-xr-

X

4

rich

rich

4096

2008-07

03

10

58

Desktop

1

rich

rich

28

2B08-0/

09

08

12

.dmrc

drwxr-xr-

X

2

rich

rich

4036

2008-07

03

10

iB

Documents

rtrwxr-xr-

X

3

rich

ri cb

4B36

2BBB-07

09

es

44

.encs.ii

-rw-r- -r-

3

rich

n ch

B

2BHK-H7

0H

11 :

.82

.emacs-session.11/fHHHlHIBBB1\

215529325HHBBBB4BH7BB15

1

rich

rich

16

78BB-06

17

11

34

.esd auth

rtrwxr-xr-

■X

3

rich

rich

4B9S

2888-06

75

11

25

_evolurIan

Irwxrvxrwx

1

rich

rich

26

2008-66

17

11

29

Examples -» /usr/share/exaipU

e-content

drwxr-xr-

X

2

rich

rich

4096

2808-66

-25

10:

: 47

.fontcontig

[uuu:%VFl

Top L5

( Di 1 Kll

by name)-----------------*""

Luddiuy dir ed.. .done

Luddiuy dir ed.. .done

Was this article helpful?

0 0

Post a comment