Difference between revisions of "Integrating with Microsoft Windows"

From WikEmacs
Jump to navigation Jump to search
(Began new page. Added info on CUA-mode.)
 
(Added note on ~)
 
Line 1: Line 1:
 +
== Overview ==
 
As an application developed for many years exclusively and now primarily for Unix-like operating systems, Emacs does not always integrate very well with Microsoft Windows.  However, some simple tweaks can alleviate this lack of integration.
 
As an application developed for many years exclusively and now primarily for Unix-like operating systems, Emacs does not always integrate very well with Microsoft Windows.  However, some simple tweaks can alleviate this lack of integration.
 +
 +
=== Terminology ===
 +
Unlike on Unix, where <tt>~</tt> refers to the user's home directory itself, on Windows the value Emacs substitutes for <tt>~</tt> varies according to operating system version.  For Windows XP, <tt>~</tt> is {{Dirname|C:\Documents and Settings\username\Application Data}}, and on Windows Vista and Windows 7 it is {{Dirname|C:\Users\username\AppData}}.
 +
  
 
== Copy and Paste ==
 
== Copy and Paste ==

Latest revision as of 16:33, 16 November 2012

Overview

As an application developed for many years exclusively and now primarily for Unix-like operating systems, Emacs does not always integrate very well with Microsoft Windows. However, some simple tweaks can alleviate this lack of integration.

Terminology

Unlike on Unix, where ~ refers to the user's home directory itself, on Windows the value Emacs substitutes for ~ varies according to operating system version. For Windows XP, ~ is Template:Dirname, and on Windows Vista and Windows 7 it is Template:Dirname.


Copy and Paste

Every application on Windows except Emacs uses [C-c] to copy, [C-v] to paste, etc. Emacs doesn't do this by default because it has its own key combinations for these functions which were implemented before these combinations were more or less standardized. To enable this behavior in Emacs, add

(cua-mode 1)

to ~/.emacs