Selecting a default editor

If GNOME needs to open a file in a text editor, by default it will use the emacs editor. If you want to change that, you can do so using the GNOME Default selection under Document Handlers from the Control Center. To make the change, click the down arrow under GNOME editor. Then select from among more than a dozen different text editors.

Note Although several of the text editors available are mentioned in this book, the vi editor is the only one that is described in a full tutorial. A graphical editor, such as gEdit, may be easier for you if you are not used to nongraphical text editors. Configuring MIME types

By assigning MIME types and file extensions to particular types of data files, you can assign how those types of data are handled when the file is opened from GNOME (such as in the File Manager window). This can be a very powerful feature. It enables you to identify which application is started to handle a file that you open.

Click the File Types and Programs selection from the Control Center. You will see a list of MIME Types and file extensions. You can change which application is used to open a particular file type by clicking the MIME type/extension that represents it and selecting Edit. For example, the PostScript file type (eps and ps extensions) is handled by the GhostView application (gv).

To add your own MIME type and file extension, click Add and fill in the MIME type and extension. You can also add regular expressions (strings of text and optional wildcards) to identify the files you want to match. After you have added that information, click OK. Then, with the entry still selected, click Edit to add actions that are taken for the MIME type/file extension.

Was this article helpful?

0 0

Post a comment