comparison man/xemacs/new.texi @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
11 @ignore 11 @ignore
12 @item 12 @item
13 XEmacs has a new vi emulation mode called evi mode. To 13 XEmacs has a new vi emulation mode called evi mode. To
14 start evi mode in Emacs, type the command @kbd{M-x evi}. If you want 14 start evi mode in Emacs, type the command @kbd{M-x evi}. If you want
15 Emacs to automatically put you in evi-mode all the time, include this 15 Emacs to automatically put you in evi-mode all the time, include this
16 line in your init file: 16 line in your @file{.emacs} file:
17 @example 17 @example
18 (setq term-setup-hook 'evi) 18 (setq term-setup-hook 'evi)
19 @end example 19 @end example
20 @xref{evi Mode} for a brief discussion. 20 @xref{evi Mode} for a brief discussion.
21 @xref{Init File}.
22 @end ignore 21 @end ignore
23 22
24 @item 23 @item
25 XEmacs has a new vi emulation mode called ``viper'' mode. To start 24 XEmacs has a new vi emulation mode called ``viper'' mode. To start
26 viper mode in XEmacs, type the command @kbd{M-x viper-mode}. If you 25 viper mode in XEmacs, type the command @kbd{M-x viper-mode}. If you
27 want XEmacs to automatically put you in viper-mode all the time, include 26 want XEmacs to automatically put you in viper-mode all the time, include
28 this line in your init file: 27 this line in your @file{.emacs} file:
29 @example 28 @example
30 (viper-mode) 29 (viper-mode)
31 @end example 30 @end example
32 @xref{Init File}.
33 31
34 @item 32 @item
35 Earlier versions of Emacs only allowed keybindings to ASCII character 33 Earlier versions of Emacs only allowed keybindings to ASCII character
36 sequences. XEmacs has greatly expanded this by allowing you to 34 sequences. XEmacs has greatly expanded this by allowing you to
37 use a vector of key sequences which are in turn composed of a modifier 35 use a vector of key sequences which are in turn composed of a modifier
240 ;; Code for any version of Lucid Emacs or XEmacs goes here 238 ;; Code for any version of Lucid Emacs or XEmacs goes here
241 ;; 239 ;;
242 )) 240 ))
243 241
244 (cond ((and (string-match "XEmacs" emacs-version) 242 (cond ((and (string-match "XEmacs" emacs-version)
245 (or (> emacs-major-version 19) 243 (or (> emacs-major-version 19)
246 (>= emacs-minor-version 12))) 244 (>= emacs-minor-version 12)))
247 ;; 245 ;;
248 ;; Code which requires XEmacs version 19.12 or newer goes here 246 ;; Code which requires XEmacs version 19.12 or newer goes here
249 ;; 247 ;;
250 )) 248 ))
251 249
254 ;; Code for any vintage-19 emacs goes here 252 ;; Code for any vintage-19 emacs goes here
255 ;; 253 ;;
256 )) 254 ))
257 255
258 (cond ((and (not (string-match "Lucid" emacs-version)) 256 (cond ((and (not (string-match "Lucid" emacs-version))
259 (= emacs-major-version 19)) 257 (= emacs-major-version 19))
260 ;; 258 ;;
261 ;; Code specific to FSF Emacs 19 (not XEmacs) goes here 259 ;; Code specific to FSF Emacs 19 (not XEmacs) goes here
262 ;; 260 ;;
263 )) 261 ))
264 262
267 ;; Code specific to emacs 18 goes here 265 ;; Code specific to emacs 18 goes here
268 ;; 266 ;;
269 )) 267 ))
270 @end example 268 @end example
271 269
272 Alternatively, use @file{.xemacs/init.el} for an init file. @xref{Init File}. 270 Of particular interest for use in @file{.emacs} files are:
273
274 Of particular interest for use in files are:
275 271
276 @itemize @bullet 272 @itemize @bullet
277 @findex add-menu 273 @findex add-menu
278 @findex add-menu-item 274 @findex add-menu-item
279 @findex delete-menu-item 275 @findex delete-menu-item
323 @unnumberedsec Changes in Key Bindings 319 @unnumberedsec Changes in Key Bindings
324 320
325 XEmacs has the following new default function keybindings: 321 XEmacs has the following new default function keybindings:
326 322
327 @table @kbd 323 @table @kbd
328 @item @key{HELP} 324 @item @key{HELP}
329 Same as @kbd{C-h}. 325 Same as @kbd{C-h}.
330 326
331 @item @key{UNDO} 327 @item @key{UNDO}
332 Same as @kbd{M-x undo}. 328 Same as @kbd{M-x undo}.
333 329
334 @item @key{CUT} 330 @item @key{CUT}
335 Same as the Cut menu item; that is, it copies the selected text to 331 Same as the Cut menu item; that is, it copies the selected text to
336 the X Clipboard selection. 332 the X Clipboard selection.
337 333
338 @item @key{COPY} 334 @item @key{COPY}
339 Same as the Copy menu item. 335 Same as the Copy menu item.
340 336
341 @item @key{PASTE} 337 @item @key{PASTE}
342 Same as the Paste menu item. 338 Same as the Paste menu item.
343 339
344 @item @key{PGUP} 340 @item @key{PGUP}
345 Same as @kbd{M-v}. 341 Same as @kbd{M-v}.
346 342
354 Same as @kbd{M->}. 350 Same as @kbd{M->}.
355 351
356 @item @key{LEFT-ARROW} 352 @item @key{LEFT-ARROW}
357 Same as the function @code{backward-char}. 353 Same as the function @code{backward-char}.
358 354
359 @item @key{RIGHT-ARROW} 355 @item @key{RIGHT-ARROW}
360 Same as the function @code{forward-char}. 356 Same as the function @code{forward-char}.
361 357
362 @item @key{UP-ARROW} 358 @item @key{UP-ARROW}
363 Same as the function @code{previous-line}. 359 Same as the function @code{previous-line}.
364 360