Xemacs Macros

Xemacs macros

Macros and Packages

soon to appear...

Note: these packages all started started out as personal hacks and this shows. Xemacs is a big system with many different versions and possible configurations. There is no guarantee that any of the code will work on your Emacs/Xemacs. Also, the code has not been fool proofed: if you do something weird, you might lock up Xemacs or lose data.

Hacks

Delete

If you have separate DELETE and BACKSPACE keys on your keyboard

(setq delete-key-deletes-forwards t)

is supposed to enable the DELETE key to delete to the right. If this does not work, put the lines

(define-key global-map [(delete)] 'my-delete)
(defun my-delete (arg) (interactive "P") (delete-backward-char -1))


in your .emacs file.

File name history

To start up Emacs with some defaults in the file-name-history (accessible by using the arrow keys when promted for any file name or directory) insert

(setq file-name-history (list <file-name1> <file-name2> ...))

in your .emacs file.

Remote editing with TRAMP

TRAMP is a sophisticated multi-protocol remote file editing system. Unfortuantely, it sometimes clashes with the more basic remote file access packages efs and Ange-FTP. To avoid this use the sparsely documented alternative remote file name syntax

/[<machine-name>]<file-name-with-path>

or

/[<user-name>@<machine-name>] <file-name-with-path>.

TRAMP is invoked automatically when you try to open a file or list a directory with a name in this format.