comparison man/xemacs-faq.texi @ 4625:4527fc976aa3

Meta on Mac. <87prh51rni.fsf@xemacs.org>
author Stephen J. Turnbull <stephen@xemacs.org>
date Thu, 26 Feb 2009 18:21:40 +0900
parents dd12adb12b8f
children fd2495d78aac
comparison
equal deleted inserted replaced
4624:9dd42cb187ed 4625:4527fc976aa3
339 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys? 339 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys?
340 * Q3.0.8:: How do I map the arrow keys? 340 * Q3.0.8:: How do I map the arrow keys?
341 * Q3.0.9:: HP Alt key as Meta. 341 * Q3.0.9:: HP Alt key as Meta.
342 * Q3.0.10:: Why does edt emulation not work? 342 * Q3.0.10:: Why does edt emulation not work?
343 * Q3.0.11:: How can I emulate VI and use it as my default mode? 343 * Q3.0.11:: How can I emulate VI and use it as my default mode?
344 * Q3.0.12:: Mac Alt/Option key as Meta.
344 345
345 3.1: The Mouse 346 3.1: The Mouse
346 * Q3.1.1:: How can I turn off Mouse pasting? 347 * Q3.1.1:: How can I turn off Mouse pasting?
347 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons? 348 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons?
348 * Q3.1.3:: Clicking the left button does not do anything in buffer list. 349 * Q3.1.3:: Clicking the left button does not do anything in buffer list.
4605 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys? 4606 * Q3.0.7:: Can I turn on @dfn{sticky} modifier keys?
4606 * Q3.0.8:: How do I map the arrow keys? 4607 * Q3.0.8:: How do I map the arrow keys?
4607 * Q3.0.9:: HP Alt key as Meta. 4608 * Q3.0.9:: HP Alt key as Meta.
4608 * Q3.0.10:: Why does edt emulation not work? 4609 * Q3.0.10:: Why does edt emulation not work?
4609 * Q3.0.11:: How can I emulate VI and use it as my default mode? 4610 * Q3.0.11:: How can I emulate VI and use it as my default mode?
4611 * Q3.0.12:: Mac Alt/Option key as Meta.
4610 4612
4611 3.1: The Mouse 4613 3.1: The Mouse
4612 * Q3.1.1:: How can I turn off Mouse pasting? 4614 * Q3.1.1:: How can I turn off Mouse pasting?
4613 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons? 4615 * Q3.1.2:: How do I set control/meta/etc modifiers on mouse buttons?
4614 * Q3.1.3:: Clicking the left button does not do anything in buffer list. 4616 * Q3.1.3:: Clicking the left button does not do anything in buffer list.
4874 4876
4875 @lisp 4877 @lisp
4876 (global-set-key [(control h)] 'help-for-help) 4878 (global-set-key [(control h)] 'help-for-help)
4877 @end lisp 4879 @end lisp
4878 4880
4879 @node Q3.0.11, Q3.1.1, Q3.0.10, Editing 4881 @node Q3.0.11, Q3.0.12, Q3.0.10, Editing
4880 @unnumberedsubsec Q3.0.11: How can I emulate VI and use it as my default mode? 4882 @unnumberedsubsec Q3.0.11: How can I emulate VI and use it as my default mode?
4881 4883
4882 Our recommended VI emulator is viper. To make viper-mode the default, 4884 Our recommended VI emulator is viper. To make viper-mode the default,
4883 add this to your @file{init.el}: 4885 add this to your @file{init.el}:
4884 4886
4891 @quotation 4893 @quotation
4892 This should be added as close to the top of @file{init.el} as you can get 4894 This should be added as close to the top of @file{init.el} as you can get
4893 it, otherwise some minor modes may not get viper-ized. 4895 it, otherwise some minor modes may not get viper-ized.
4894 @end quotation 4896 @end quotation
4895 4897
4898 @node Q3.0.12, Q3.1.1, Q3.0.11, Editing
4899 @unnumberedsubsec Q3.0.12: Mac Alt/Option key as Meta.
4900
4901 Due to the Apple Command key being Meta, I can't use XEmacs on OS X.
4902
4903 Didier Verna suggests:
4904
4905 I use an X version of XEmacs on a Mac every day. You have to tweak the
4906 keyboard configuration a bit but that's all.
4907
4908 Here's my Xmodmap file on Darwin:
4909
4910 @example
4911 clear mod1
4912 clear mod2
4913 keycode 66 = Meta_L
4914 keycode 63 = Mode_switch
4915 add mod1 = Meta_L
4916 @end example
4917
4918 This leaves the command key alone and uses alt/option for Meta.
4919
4920
4896 @unnumberedsec 3.1: The Mouse 4921 @unnumberedsec 3.1: The Mouse
4897 4922
4898 @node Q3.1.1, Q3.1.2, Q3.0.11, Editing 4923 @node Q3.1.1, Q3.1.2, Q3.0.12, Editing
4899 @unnumberedsubsec Q3.1.1: How can I turn off Mouse pasting? 4924 @unnumberedsubsec Q3.1.1: How can I turn off Mouse pasting?
4900 4925
4901 I keep hitting the middle mouse button by accident and getting stuff 4926 I keep hitting the middle mouse button by accident and getting stuff
4902 pasted into my buffer so how can I turn this off? 4927 pasted into my buffer so how can I turn this off?
4903 4928