C-x C-c | save-buffers-kill-emacs | ask for saving the buffers and quit emacs (with a prefix, the saves are automatically done) | |
C-x u |
advertised-undo |
undo | |
|
|
repeat the last modification (simply type z to repeat once again) | |
|
|
iconify the window | |
|
set a variable | ||
|
if nil, lines are wrapped otherwise each line of the file is a line on the screen (and a horizontal line is available) |
server
server-start | start the server once this is done, simply run emacsclient from the shell to edit a file within emacs emacsclient is blocked until the end of edition, indicated by C-x #, except if it has been run with the option --no-wait use gnuserv-start with xemacs (see this page) |
||
|
|
switch to the next buffer it is was the last one, notify the client |
navigation
C-x = | what-cursor-position | display the current cursor position and the next character | |
|
|
put the cursor at the buffer beginning | |
M-> | end-of-buffer | put the cursor at the buffer end | |
M-g | goto-line | put the cursor at a given line | |
|
|
Report number of lines on current page, before and after point | |
|
toggle the display of the line number in the mode line (otherwise the percentage is displayed) | ||
|
put the cursor at a given position | ||
C-a | beginning-of-line | put the cursor at the line beginning | |
C-e | end-of-line | put the cursor at the line end | |
C-l | recenter | redisplay the buffer with the current line at the middle | |
LEFT |
|
move backward of one character | |
RIGHT |
|
move forward of one character | |
UP |
|
move backward of one line | |
DOWN |
|
move forward of one line | |
|
|
move backward of one word | |
|
|
move forward of one word | |
|
|
move backward of one sentence | |
|
|
move forward of one sentence | |
|
|
move backward of one paragraph | |
|
|
move forward of one paragraph | |
|
|
move backward of one page | |
|
|
move forward of one page | |
next |
|
scroll the window toward the top | |
prior |
|
scroll the window toward the bottom | |
C-prior |
|
sroll the window toward the right | |
C-next |
|
scroll the window toward the left | |
M-next |
|
scroll the next window upward | |
M-prior |
|
scroll the next window downward |
mark
C-space C-@ |
set-mark-command | set the mark at the current positon | |
|
|
invert the mark and the current position | |
|
|
set the current position a the paragraph beginning and the mark at the paragraph end | |
|
|
set the current position a the page beginning and the mark at the page end | |
C-< | mark-beginning-of-buffer | set the mark at the buffer beginning | |
C-> | mark-end-of-buffer | set the mark at the buffer end | |
|
|
put the current position at the buffer beginning and the mark at buffer end |
region
C-x n n | narrow-to-region | restrict edition to current region | |
|
|
suppress edition restriction |
register
C-x g | insert-register | insert the content of a register | |
C-x r s C-x r x |
|
copy region into register | |
|
append region to register | ||
|
prepend region to register |
search
C-s | isearch-forward | incremental search forward | |
C-r | isearch-backward | incremental search backward | |
M-C-s | isearch-forward-regex | incremental research forward for regular expression | |
|
|
incremental research backward for regular expression |
édition
C-q | quote-insert | read next input character and insert it | |
|
|
interchange the two characters around point | |
M-t | transpose-words | interchange the two words around point | |
C-x C-t | transpose-lines | exchange current line and previous one | |
|
move current line one line up | ||
|
move current line one line down | ||
|
interchange current paragraph with the previous one | ||
|
|
join la ligne courante à la ligne précédente | |
|
trie les lignes de la région par ordre alphabétique | ||
|
|
passe les caractères de la région en minuscules | |
|
|
passe les caractères de la région en majuscules | |
|
|
détruit le caratère précédent en transformant les tabs en espaces | |
|
|
détruit le caractère courant | |
|
|
détruit la fin du mot courant | |
C-k | kill-line | détruit la fin de la ligne courante | |
|
|
détruit la fin de la phrase courante | |
C-w | kill-region | détruit le texte entre le point (curseur) et la marque | |
|
efface le contenu du buffer (le narrowing n'est pas pris en compte, le contenu n'est pas mis dans la kill ring) | ||
|
|
met la région dans la kill ring sans la détruire | |
|
|
yank le dernier kill | |
|
|
yank le kill précédent | |
|
|
copy the selection to the clipboard and the kill ring | |
|
|
copy the selection to the clipboard and the kill ring then delete it | |
|
|
insert the clipboard content at point | |
|
|
delete the selection without copying it to the clipboard or the kill ring | |
C-o | open-line | insère un newline avant la position courante | |
|
|
remplace une chaîne de caractères par une autre | |
|
|
remplace une regexp par une autre | |
|
|
insère le contenu d'un fichier après le curseur | |
|
insère le contenu d'un buffer après le curseur | ||
|
append to specified buffer (before its point) the content of the region | ||
|
|
indent each line in the region | |
|
convert all tabs in region into multiple spaces | ||
|
convert multiple spaces in region into tabs if possible | ||
|
|
XEmacs only change le coding system d'un fichier |
|
|
|
exécute la prochaine commande avec un coding system donné | |
|
|
toggle insert/overwrite mode |
buffer menu
Buffer-menu-mode | switch the buffer to buffer menu mode | ||
|
|
|
display this buffer in full frame |
|
|
|
display this buffer is a window and the previous one in the other window |
|
RET |
|
display this buffer in this window |
|
|
|
display this buffer in the other window |
|
|
|
mark this buffer as to be displayed |
|
|
|
close all windows and display this buffer and all the marked ones |
|
|
|
mark this buffer as to be saved |
|
k |
|
mark this buffer as to be deleted |
|
|
|
unmark this buffer |
|
|
|
execute the marked commands |
gestions des buffers
C-x s | save-some-buffers | ask for saving all or some of the existing buffers | |
C-x C-s | save-buffer | save the current buffer | |
|
|
open a new buffer containing a file | |
|
|
open a new buffer containg a file, buffer is opened in the next window | |
|
|
open a read-only buffer containing a file | |
|
toggle the read-only mode | ||
|
|
replace file in current buffer | |
|
load the last autosaved copy of the file | ||
|
reload the original file (as currently writen on the disk) in the current buffer | ||
|
|
save the buffer in a file | |
|
append the content of the region to a file | ||
|
|
destroy a buffer | |
|
put the buffer at the end of the list of all the buffers |
gestions des windows
C-x 0 | delete-window | détruit la window courante | |
C-x 1 | delete-other-windows | détruit toutes les windows sauf celle courante | |
|
|
coupe la window courante en deux verticalement | |
|
|
coupe la window courante en deux horizontalement | |
|
|
passe à la window suivante | |
|
|
change le buffer affiché dans la window | |
|
|
change le buffer affiché dans la window suivante | |
|
|
affiche un buffer sans le rendre courant | |
|
|
affiche la liste des buffers | |
|
|
change le buffer affiché dans une autre window | |
|
|
augmente la hauteur de la window courante | |
|
diminue la hauteur de la window courante | ||
|
|
diminue la largeur de la window courante | |
|
|
augmente la largeur de la window courante | |
|
|
met toutes les windows avec la même hauteur | |
|
compare the current window with the next one starting at each window's point, the point of each window is moved where is the first difference |
frame management
C-x 5 2 | make-frame-command | create a new frame containing the current buffer | |
new-frame |
create a new frame displaying the current buffer | ||
|
|
open a file in a buffer in a new frame | |
|
|
select the next frame | |
C-x 5 0 | delete-frame | destroy the current frame |
help
C-h k | describe-key | display the documentation of a function bound to a key sequence | |
|
|
display the full documentation of a function | |
|
display the full documentation of a variable | ||
|
|
display lists of functions and variables that match a regexp | |
|
|
show commands (interactively callable functions) that match a regexp | |
|
|
display the 'view-lossage-key-count' last input keystrokes and the 'view-lossage-message-count' last minibuffer messages | |
|
|
display the key and mouse bindings | |
|
|
display the FAQ | |
|
|
list the keys sequences that invoke a command | |
|
|
display the release note | |
|
contain configuration Emacs was built for | ||
|
returns the version of Emacs that is running | ||
Help |
|
|
close the help buffer |
info
|
|
open an Info buffer | |
|
|
open an Info buffer on a given page | |
|
|
search for command in emacs Info manual | |
|
|
search for a key sequence in emacs Info manual | |
|
|
search for a command in elisp info manual | |
|
|
|
go to the next node |
|
|
|
go to the previous node |
|
|
|
go to the superior node |
|
|
|
return to the last visited node |
|
|
|
exit Info |
|
|
|
search for a string in the Info index |
|
|
|
go to the next match of 'Info-index' |
|
directories where emacs looks for the Info files; the environment variable INFOPATH can be used to add some directories |
shell (GNU Emacs 19.34)
shell | start a shell buffer |
eshell
|
start an eshell session | ||
|
|
|
search backwards through input history for match for current input |
|
|
eshell-next-matching-input-from-input | search forwards through input history for match for current input. |
|
|
|
interrupt the process |
|
|
|
display a list of all processes |
|
|
|
complete the file/directory name |
version control
C-x v v | vc-next-action | do the next logical step - create an element if the file is not under configuration - check out the file if it is not - check in the file if it is checked out |
|
|
|
checkout/checkin the file | |
C-x v u | vc-revert-buffer | uncheck out the file | |
C-x v l | vc-print-log | display the file history |
printing
lpr-buffer | print buffer contents lpr-switches is a list of extra switches to pass to lpr |
commandes
M-x | execute-extended-command | execute a command entered in the minibuffer |
macros
C-x ( | start-kbd-macro | commence à enregistrer une macro | |
|
|
arrète l'enregistrement d'une macro | |
|
|
exécute la dernière macro enregistrée | |
|
nomme la dernière macro enregistrée | ||
|
exécute la dernière macro et ajoute de nouvelles commandes | ||
|
insère la macro dans le buffer courant |
interaction with the shell
M-! | shell-command | run a shell command | |
|
|
execute a shell command on the current region, the output is
put in
the *Shell Command Output* buffer with the C-u prefix, the content of the region is replaced by the output of the shell command |
|
|
create, modify or destroy an environment variable to destroy interactively a variable, use the C-u prefix |
||
|
change the current directory | ||
|
return the current directory | ||
|
run grep use C-x ` to go through the found matches |
||
|
run grep via find use C-x ` to go through the found matches |
||
|
display a man page |
Comint
|
M-p C-UP |
comint-previous-input | cycle backwards through input history |
|
C-DOWN |
|
cycle forwards through input history |
|
TAB |
|
C
c-mode | switch the buffer to C mode | ||
|
|
|
comment a region (C-u C-c C-c to uncomment) |
JDE
jde-mode | switch the buffer to JDE mode | ||
|
|
|
properly indent the line indent-tabs-mode variable indicates it the indentation must be done with tabs (if t) or with space (if nil) |
senator
senator-minor-mode | switch the buffer to senator in minor mode | ||
|
|
|
display the completion popup menu |
|
C-c , C-i |
|
complete the symbol under point |
|
|
|
jump to a given semantic symbol |
|
|
|
jump to the next semantic token |
|
|
|
jump to the previous semantic token |
HTML
html-mode | switch the buffer to HTML mode |
hexadecimal
hexl-mode | switch the buffer to hexadecimal mode |
Image
image-mode | switch the buffer to hexadecimal mode | ||
image |
h |
image-enter-hexl-mode |
switch to hexadecimal mode |
image |
t |
image-toggle-decoding |
toggle text/image mode |
Lisp
eval-buffer | exécute le buffer comme étant du code Lisp | ||
|
|
exécute la sexp avant la position courante |
compilation
compile | start a compilation after asking for the compilation command
line the default compilation command is defined by compile-command (setq-default compile-command "clearmake -v -V debug") |
||
|
start a compilation with the same command line as the previous compilation | ||
|
|
edit the file at the line indicated by the next regexp match in the grep result or in the compilation log | |
|
edit the file at the line indicated by the previous regexp match in the grep result or in the compilation log | ||
|
|
|
stop the compilation |
|
C-c C-c |
|
display the source code at the line corresponding to the error message point is on |
|
|
|
move point to next error message |
|
|
|
move point to previous error message |
|
|
|
move point to the next error for a different file |
|
|
|
move point to the previous error for a different file |
impression
ps-print-buffer | print the current file on a PostScript printer with the C-u, save in a PostScript file |
cosmetic
set-background-color | change the backgorund color | ||
|
display the list of available colors | ||
|
display/undisplay the vertical scrollbars in current frame |
librairies
load-library | load a library | ||
|
directories where emacs looks for the libraries (loaded by load-library); the environment variable EMACSLOADPATH can be used to prepend some directories |
DOS support
dans emacs ?.?.? pour supprimer les carriage returns d'un fichier DOS
C-x RET c pour mettre le coding system iso-latin-1-unix
C-x C-f pour lire le fichier
M-% pour remplacer C-q C-M par rien
C-x C-s
replace ^f by newlines
M-% to replace C-q C-f by C-q C-j
xemacs 19.34.6 supports binary/text mode on DOS (indicated by B:
or T: on the mode line).
Binary files are defined by the extensions listed in file-name-buffer-file-type-alist
(but this seems to not work).
find-file-binary load a file in binary mode.
To correctly display the high half of ISO 8859 Latin1, execute standard-display-european.
xemacs 21.4.6 installation
(define-key global-map [(ctrl tab)] 'other-window) (define-key global-map [(home)] 'beginning-of-line) (define-key global-map [(end)] 'end-of-line) |
xemacs key bindings
(global-set-key [C-tab] 'other-window) (global-set-key [home] 'beginning-of-line) (global-set-key [end] 'end-of-line) (global-set-key [f5] 'next-error) |
Last update: August 9th, 2004 - Laurent