Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs + dirtree work like normal file browser

Tags:

emacs

I am new to emacs, and I tried dirtree like this picture: I use m-x dirtree and it shows up the left frame. http://db.tt/IbN9UaJR

But when I click on the file, it open the file in left frame/buffer?... the file content replace the dirtree itself.

and I want it works like normal file browser like textwranger: http://db.tt/H14KsUsD

How can I do this? Moreoever, How to make dirtree open automatically when start emacs?

like image 994
CSJ Avatar asked Dec 06 '11 08:12

CSJ


1 Answers

I assume you are using this: http://www.emacswiki.org/emacs/dirtree.el

This function you are looking for seems to be dirtree-select you should bind it to the appropriate key or mouse button. The function you are using now is dirtree-open which is bound to C-o. The file also has an example how to map keys in a modemap.

HTH.

like image 152
pmr Avatar answered Sep 24 '22 13:09

pmr