Cezar Halmagean
Cezar Halmagean

Reputation: 902

How do you change the images emacs uses as file/folder indicators

I want to change icons Emacs uses to indicate folders and files (in dirtree). See the following image for an example:

Example of how I want the icons to look http://cezar.halmagean.ro/snaps/dirtree.png

Upvotes: 0

Views: 381

Answers (2)

Steven Race
Steven Race

Reputation: 36

While I can't see the images you cite, to use ASCII rather than folder icons - open dirtree.el and replace 'folder' with 'ascii'

(define-derived-mode dirtree-mode tree-mode "Dir-Tree"
  "A mode to display tree of directory"
  (tree-widget-set-theme "folder"))

like so:

(define-derived-mode dirtree-mode tree-mode "Dir-Tree"
  "A mode to display tree of directory"
  (tree-widget-set-theme "ascii"))

See also: http://emhacks.sourceforge.net/tw-shots.html

Upvotes: 2

Stefan
Stefan

Reputation: 28581

You'll wan to customize tree-widget-theme or fiddle with some of the tree-widget-themes-* variables, and maybe create your own theme for it (a theme for it is just a directory with files such as "open.png", "leaf.png", ...

Upvotes: 0

Related Questions