home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / GNU-Emacs-FAQ / keybindings-pointer < prev    next >
Encoding:
Internet Message Format  |  2004-05-05  |  8.3 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <GNU-Emacs-FAQ/keybindings-pointer_1083675484@rtfm.mit.edu>
  3. Supersedes: <GNU-Emacs-FAQ/keybindings-pointer_1082292761@rtfm.mit.edu>
  4. Expires: 2 Jun 2004 12:58:04 GMT
  5. X-Last-Updated: 2001/12/31
  6. Organization: none
  7. From: <jari.aalto@poboxes.com>  (Jari Aalto+mail.emacs)
  8. To: mail2news@anon.lcs.mit.edu
  9. Subject: Emacs keybinding guide
  10. Summary: This posting contains pointer to Emacs keybinding guide.
  11. Newsgroups: comp.emacs,comp.answers,news.answers
  12. Approved: news-answers-request@MIT.EDU
  13. Followup-To: poster
  14. Precedence: bulk
  15. Originator: faqserv@penguin-lust.MIT.EDU
  16. Date: 04 May 2004 13:01:36 GMT
  17. Lines: 163
  18. NNTP-Posting-Host: penguin-lust.mit.edu
  19. X-Trace: 1083675696 senator-bedfellow.mit.edu 571 18.181.0.29
  20. Xref: senator-bedfellow.mit.edu comp.emacs:97844 comp.answers:57089 news.answers:270925
  21.  
  22. Archive-name: GNU-Emacs-FAQ/keybindings-pointer
  23. Posting-Frequency: 2 times a month
  24. URL: http://tiny-tools.sourceforge.net/emacs-keys.html
  25. Maintainer: Jari Aalto <jari.aalto@poboxes.com>
  26.  
  27. Announcement: "All you wanted to know about Emacs keybindings"
  28.  
  29.     Note, [X]Emacs FAQ is available to you via keypress C-h F.
  30.  
  31.     Document discusses how do you deal with Emacs keybindings. There is
  32.     step by step instructions how you use your X window's `xmodmap' program
  33.     to start using emacs better in X.
  34.  
  35.     Document also explains how to set up special xterm for telnet
  36.     connections -- running remote emacs with transparent keybinding.
  37.     Finally includes many ready examples and questions and answers compiled
  38.     from usenet emacs newsgroups.
  39.  
  40. An exerpt from the document
  41.  
  42.     2.1 Foreword to different emacs platforms
  43.  
  44.         The old Emacs C-A-S-H-M modifiers map to new syntax like this:
  45.  
  46.             old Emacs       Emacs 19.30+ and XEmacs19.14+
  47.             [C-tab]         [(control tab)]
  48.             [A-1]           [(alt ?1)]
  49.             [S-up]          [(shift up)]
  50.             [H-prior]       [(hyper prior)]   ;; in HP prior = PgUp
  51.             [M-f1]          [(meta f1)]
  52.  
  53.         The [()] syntax works fine between the Emacs and XEmacs, but
  54.         there are problems with themouse symbol names, which are
  55.         different:
  56.  
  57.             [(control shift mouse-1)]         ;; Emacs name:  mouse-1
  58.             [(control shift button1up)]       ;; XEmacs name: button1up
  59.  
  60.     2.2 Emacs versions and keybinding syntax compatibility table:
  61.  
  62.             m-1     : recognizes Emacs  styled mouse binding, `mouse-1'
  63.             b1      : recognizes XEmacs styled mouse binding, `button1'
  64.             r-k-m   : read-kbd-macro
  65.             _yes    : works 95%, but there are known bugs.
  66.  
  67.             ------------------------------------------------------
  68.             style:              []    [()]  m-1   b1    r-k-m  kbd
  69.             ------------------------------------------------------
  70.             Emacs   19.28-30    yes   no    yes   no    no     no
  71.             Emacs   19.31-33    yes   yes   yes   no    bugs   no
  72.             Emacs   19.34       yes   yes   yes   no    _yes   no
  73.             Emacs   20.1-4      yes   yes   yes   no    yes    yes
  74.             Emacs   21.1        yes   yes   yes   no    yes    yes
  75.             ------------------------------------------------------
  76.             XEmacs  19.13-14    no    yes   no    yes   no     no
  77.             XEmacs  19.15-16    no    yes   _yes  yes   yes    no
  78.             XEmacs  20.2-5      no    yes   yes   yes   yes    yes
  79.             ------------------------------------------------------
  80.  
  81.         [SL Baur <steve@xemacs.org>] There is no XEmacs 20.1. There are two
  82.         flavors of XEmacs 20.0 floating around. They are not compatible.
  83.         One is more like XEmacs 19.14 (the one on the Sun CD), the other
  84.         (the 'net released one) is more like XEmacs 19.15/16. Note that the
  85.         form `[C-A-S-H-M]' will never be supported by XEmacs.
  86.  
  87. Table of contents
  88.  
  89.         1.0 Document id
  90.             1.1 Description
  91.             1.2 Required pre-knowledge
  92.             1.3 Related lisp packages
  93.             1.4 Credits
  94.  
  95.         2.0 Quick reference -- finding the key syntax
  96.             2.1 Foreword to different emacs platforms
  97.             2.2 Emacs versions and keybinding syntax compatibility table:
  98.             2.3 Ethics -- what is the correct way?
  99.             2.4 The M-x view-lossage command helps you
  100.             2.5 Using read-kbd-macro
  101.             2.6 Very easy way: just go and use M-x global-set-key
  102.             2.7 Using key-description by Kevin Rodgers
  103.  
  104.         3.0 How do I give argument to command when I bind it to key?
  105.             3.1 Printing a string by pressing a key
  106.             3.2 Running macro by pressing a key
  107.             3.3 Running existing user functions
  108.             3.4 Running your own lisp function
  109.             3.5 Runnning function by mouse click
  110.             3.6 Calling function with different default argument
  111.             3.7 Using complex lambda function in keybinding
  112.  
  113.         4.0 About keymaps
  114.             4.1 Before defining the key, you should know about keymaps
  115.             4.2 Default emacs keymaps and packages' keymaps
  116.             4.3 Prefix keymaps in new emacs versions.
  117.             4.4 Prefix keymaps in old emacs versions.
  118.             4.5 Function-key-map -- where do I need it?
  119.             4.6 How to generate C-A-S-H-M modifiers from keyboard keys
  120.             4.7 Local-set-key and global-set-key note
  121.  
  122.         5.0 Ascii and non-ascii keys
  123.             5.1 Emacs info, Character Type
  124.             5.2 General description
  125.             5.3 Emacs info, Named ascii characters
  126.             5.4 Case study: Why can't I assign key <ESC C-'> ?
  127.             5.5 Case study: How to bind a function to Ctrl-?
  128.             5.6 Portable keybindings -- command 'emacs -nw' is your friend
  129.  
  130.         6.0 Emacs backspace binding problem
  131.             6.1 Related packages
  132.             6.2 Foreword -- background
  133.             6.3 Windowed Emacs mapping
  134.             6.4 Non-windowed Emacs mapping
  135.             6.5 Mapping backspace with 'delete' symbol
  136.  
  137.         7.0 Some article snippets, Q/A
  138.             7.1 I can't use C-s and C-q in emacs due to control flow.
  139.             7.2 Disable C-s/C-q for flow control?
  140.             7.3 Defining keys to isearch map?
  141.             7.4 I'm in emacs that doesn't recognize my function keys?
  142.             7.5 I don't seem to see the Control-Space sequence
  143.             7.6 To get Xterm work with mouse
  144.             7.7 Does these vector, notations work only under X ?
  145.             7.8 I have troubles running 'screen' (SUN-OS virtual term) and emacs
  146.             7.9 Modifying keyboard keys in X
  147.             7.10 Win95: swapping ctrl-caps keys ?
  148.             7.11 Swap the control and cap keys on Sun sparc 20 machine?
  149.             7.12 Xterm -- AIX: Meta key missing in emacs -nw
  150.             7.13 HP: meta key missing on 715 and 712?
  151.             7.14 HP: there's no Meta key?
  152.             7.15 HP: Jari's xmodmap settings in PC XCeed
  153.             7.16 Could anyone tell me how I could change the meta-key ?
  154.             7.17 How can I set Meta key to Alt?
  155.             7.18 How can I make the alt key work as the meta key?
  156.             7.19 On X window C-SPC says Args out of range #^[nil nil nil
  157.             7.20 Carpal tunnel syndrome: Any way to reduce left wrist pain?
  158.             7.21 Telnet connection -- backspace ?
  159.             7.22 Latin Charset handling ?
  160.             7.23 Linux: I can't rebind C-up in terminal window?
  161.             7.24 Linux: cursor keys problem
  162.  
  163.         8.0 Xmodmap introduction -- Changing your X environment
  164.             8.1 How X keybindings work
  165.             8.2 Xmodmap and keysyms -- as explained in the 'xkeycaps'
  166.             8.3 Example -- xmodmap for select and kp-f1
  167.             8.4 Example -- sun keyboard xmodamp
  168.             8.5 Example -- remap the control key
  169.  
  170.         9.0 Code
  171.             9.1 Perl code to remap Meta-Modeswitch
  172.  
  173.         10.0 CASE STUDY -- Connection to remote emacs through Xterm
  174.             10.1 Foreword
  175.             10.2 The connection does not know my keyboard
  176.             10.3 How do I know what a key produces (ascii sequences?)
  177.             10.4 Short xmodmap(1) glimpse
  178.             10.5 Xev -- Spot your X-events(keys) easily
  179.             10.6 Xterm's -xrm switch for key settings, where are the key names?
  180.             10.7 Custom xterm -- making xterm to translate character for connection
  181.             10.8 Remote emacs setup
  182.             10.9 Testing the special Xterm and remote emacs co-operation
  183.             10.10 Complete, live, setup -- Modify to personal needs
  184.  
  185.