## tup-mode for emacs

Tup Mode is a major mode for Emacs made for editing Tupfiles. It provides syntax highlighting for Tupfiles, and has key bindings for the most commonly used tup commands.

Created by Eric James Michael Ritz.

## emacs compile command

The following horrible snippet seems to work for tup, while still being compatible with make. It can be put in an .emacs (place the cursor at the end and press C-x C-e to evaluate it without leaving emacs (Usually: M = Alt, C = Ctrl))

    (setq compilation-directory-matcher
      '("\\(?:\\(?:Entering\\|Leavin\\(g\\)\\) directory
    `\\(.+\\)'$\\)\\|\\(?:[^]^[]*\\][[:space:]]*\\(\\(?:[[:alnum:]]*/\\)+\\)\\)\\|\\(?:^\\(\\[\\)\\)"
    (2 . 1) (3 . 9) (4 . 4)))

To try it out type:

    M-x compile [enter] cd /top/level/of/project/with/errors/ ; tup upd [enter]

And for handling colors in emacs:

    (require 'ansi-color)
    (defun colorize-compilation-buffer ()
      (toggle-read-only)
      (ansi-color-apply-on-region (point-min) (point-max))
      (toggle-read-only))
    (add-hook 'compilation-filter-hook 'colorize-compilation-buffer)

Sent in by Sigurd Meldgaard.

## fuse and gvfs

Tup uses a temporary fuse filesystem to watch the files accessed by sub-programs. The GNOME virtual filesystem, gvfs, may see this filesystem and attempt to access it to display an icon on the desktop. If you want to remove this icon, you may try disabling this feature by setting the following Nautilus property:

    $ gconftool-2 --type bool --set /apps/nautilus/desktop/volumes_visible 'false'

This will disable all "mounted folders". Unfortunately this is all-or-nothing solution. You'll not see any mounted folders (including ones from /media).