Customizing Emacs with X Functions


If you use any X-related functions to customize your Emacs, you will need to make a small change in your .emacs file. The reason for this is that in this release Emacs loads the initialization files in a different order than it did previously. If you don't make this change, you won't be able to start up Emacs.

Any X-related code that you want to put in your .emacs file should be enclosed in the if window-system-version stuff to make sure that it operates correctly even when dialing in, like this:


        (if window-system-version 
            (progn
                (require 'x-mouse)
                 X-RELATED STUFF GOES HERE))
For example:

        (if window-system-version
            (progn
                (require 'x-mouse)
                (setq x-paste-move-point t)))