📄 xdoc
字号:
Function: Select Emacs window mouse is on, and set mark at mouse position. Binding: Left Button. x-mouse-set-point Function: Select Emacs window mouse is on, and move point to mouse position. Binding: Middle Button. x-paste-text Function: Move point to mouse position and insert window system cut buffer contents. Binding: S-Right Button.These functions are invoked simply by positioning the mouse and thenpressing the correct key/button combination.The cut and paste functions deserve special remark. The X servermaintains special buffers where data may be salted away. One clientmay salt data away in a cut buffer. Then another client could requestthis data. In emacs, data is salted away, by setting the point (youcould use the mouse to set the point) then moving the mouse to the end(or beginning) of the text to be salted away and pressing shiftmiddle. If the text should be wiped out of the buffer as well assalted away, C-Middle Button should be used instead of S-MiddleButton. To get the text back into this emacs or another emacs, movethe mouse to where the text should be inserted and invoke x-paste-textvia S-Right Button. The text can be pasted into any client of thecurrent X server from the current cut buffer using that client's pastecommand. For xterm the paste command is also S-Right Button.Other Gnu Emacs Lisp FunctionsCommand Line Arguments.emacs Filex-switches.Xdefaults1,,Summary-line: 19-Dec lbm@ATHENA.MIT.EDU #GNU Emacs under X Writeup for ManualReceived: from ATHENA (ATHENA.MIT.EDU) by prep; Thu, 19 Dec 85 15:57:34 estReceived: from JASON (JASON.MIT.EDU) by ATHENA (4.12/4.7) id AA12646; Thu, 19 Dec 85 15:55:53 estReceived: by JASON (5.15/4.7) id AA20416; Thu, 19 Dec 85 15:55:40 ESTMessage-Id: <8512192055.AA20416@JASON>To: rms@prepCc: tower@prepSubject: GNU Emacs under X Writeup for ManualDate: 19 Dec 85 15:55:33 EST (Thu)From: Linda B. Merims <lbm@ATHENA.MIT.EDU>*** EOOH ***To: rms@prepCc: tower@prepSubject: GNU Emacs under X Writeup for ManualDate: 19 Dec 85 15:55:33 EST (Thu)From: Linda B. Merims <lbm@ATHENA.MIT.EDU>Here's something you can put in the V17 manual to describe GNU Emacs underX. I've added a couple of notes to you about things that didn't workwhen I tried them. It has no formatting commands in it. Idon't know if we followed your naming conventions. It is importantfor us to distinguish between "gnuemacs" and "emacs" for the nextsix months while we convert our 2000+ users over from CCA, so I mentionthat at MIT's Project Athena, things are a little different fora short while.I didn't put in anything about X-specific variables. I don't knowanything about them. I'm also a bit colloquial in places, to makemy point better with novices (who, for example, understand "cursor" betterthan "point".) I also didn't document the -d display command option.Nor are there any credits to, for example, Joachim Martillo. Up to you.Hope this does you good. Linda Merims----------------------------------------------------------------GNU Emacs on X Window System DisplaysGNU Emacs works with the X window system. It startsby "popping up" a new window on the screen. This can be a bitdisconcerting if you're not used to it. If you're on one of theseterminals, the easiest way to start up GNU Emacs is to type the same commandyou would before, but to follow it with a &, as in:emacs paper.mss &The "&" runs GNU Emacs in the "background," freeing your originalwindow for other uses. (There are X-specific options to the Gnuemacscommands that will be listed later.)NOTE: GNU Emacs may be invoked by different names at different sites. It is sometimes knownas xemacs. At MIT's Project Athena where GNU Emacs was firstadapted to X, the correct command is: gnuemacs until summer1986, when it will become just: emacs.Soon, you will see a small black box in the upper left hand corner of yourscreen that reads, "emacs: 10 x 10". (This number representscolumns x rows.) You'll also see a small outline of a window witha cross in the upper left hand corner of it. This is where the upperleft hand corner of your window will be. You can move this cross withthe mouse to any spot on the screen. You can then do one of threethings:make an 80 column by 24 row emacs window -- click the left mouse buttonmake an 80 column by 65 row emacs window -- click the right mouse button (the length will actually be however many lines long your screen can hold. 80 by 66 is about the size of an 8 1/2 x 11 piece of paper.)make any size emacs window you want -- hold down the middle mouse button and move the mouse to create a window of any size. As you move the mouse, the numbers in the upper left hand corner of the screen and the rubber-band outline will expand or contract. Just release the button when the window is the size you want.Unless you make the window in any area that does not overlap any otherwindows, you may have problems when you want to get back to a windowobscured by the GNU Emacs window. You need to know how to use the Xwindow manager, xwm, to move and shuffle these windows around. Formore information on the window manager, you can type man xwm, onany Berkeley 4.3 Unix system with this user-contributed (/usr/new)utility available.Note that you cannot suspend (C-Z) a GNU emacs X window.GNU Emacs and the X MouseWhen using GNU Emacs on an X terminal, you can take advantage of theconvenient, quick commands for moving point, setting the mark, andcutting and pasting text. You issue these commands by pressingthe mouse's buttons alone or in concert with the SHIFT, CTRL, orSHIFT-CTRL keys as follows:left set mark ('x-mouse-set-mark) (RMS, this blinked cursor but didn't actually set anything...lbm)middle move the cursor (point) to where the mouse is. This is like moving the cursor with C-F or C-N or the arrow keys, only immediate. ('x-mouse-set-point)right move to the window where the mouse is. Point is in the same place as it was the last time you were in the window. ('x-mouse-select)SHIFT-left undefinedSHIFT-middle take the text between point and mark and put it into the X cut buffer. The text does NOT disappear from the screen. It does NOT go into the emacs kill right. Used for copying text. Recall text with SHIFT-right below. ('x-cut-text)SHIFT-right paste text from the X cut buffer to before point. ('x-paste-text)CTRL-left undefinedCTRL-middle take the text between point and mark and put it into the X cut buffer, AND the emacs kill ring. Text is deleted from the screen. Used for moving text. Recall text with SHIFT-right above, or any emacs kill ring command. ('x-cut-and-wipe-text)CTRL-right divide current window in two. ('x-mouse-select-and-split)CTRL-SHIFT-middle return to one-window mode, keeping the window the mouse is in. ('x-mouse-keep-one-window)(RMS, this didn't always work...lbm)Emacs Command X Window OptionsThese command options have meaning to the X window system:-r use reverse video (white characters on black background)-i use GNU emacs's bitmap icon (a kitchen sink) if the emacs window is iconized instead of the xwm window manager default.-font fontname use fontname instead of the default vtsingle-b borderwidth make the window border borderwidth pixels wide. Default is 1.-w windowsize instead of relying on the mouse buttons to determine size and placement of the GNU emacs window, make it this size. Size is specified as: =[WIDTH][xHEIGHT][{+-}XOFF[{+-}YOFF]] The []'s denote optional stuff, the {}'s surround alternatives. WIDTH and HEIGHT are in number of characters, XOFF and YOFF are in pixels. X and YOFF are the xy offsets from the upper left corner origin for the upper left corner of the window.GNU Emacs will check in the .Xdefaults file for default values forthese variables. (RMS, we're not sure what program name it'sgoing to be looking for...lbm)GNU Emacs under X VariablesI don't know what these are. Sorry.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -