Sams Teach Yourself Emacs in 24 Hours

ContentsIndex

Hour 16: Interfacing with the System

Previous HourNext Hour

Sections in this Hour:

 

Exercises

1. Write a shell program to print a file in PostScript using Emacs.

2. Generate help text with M-x apropos, and uuencode it without using intermediate files.

3. Write a program in your ~/.emacs to run chmod on it to make it writable with the equivalent command line command chmod a+x < file>. When this is finished, make sure to call (revert-buffer t t).n it, which makes sure that the current buffer and filesystem are the same. Also make sure to (save-buffer) before doing this command!

4. Using dired, come up with a list of key sequences that would move all PostScript files (ending with .ps) from the current directory to a subdirectory named old if old does not yet exist.

5. Write a command to print a file with PostScript and zebra stripes.

Sams Teach Yourself Emacs in 24 Hours

ContentsIndex

Hour 16: Interfacing with the System

Previous HourNext Hour

Sections in this Hour: