1) move the cursor to the starting place of the column
2) M-@ or M-space (depends on the system) to set the mark
3) then move the cursor to the ending place of the column (DO NOT set mark here)
4) then "C-x r k" for killing the column.
Affichage des articles dont le libellé est emacs. Afficher tous les articles
Affichage des articles dont le libellé est emacs. Afficher tous les articles
jeudi 5 janvier 2012
jeudi 28 avril 2011
Comment region in emacs and others
Comment Region :
M-x comment-region, (or in C++ mode, 'C-c C-c')
C-u C-c C-c un-comment
In xemacs, both of these are available when you highlight a region and right click.
Tip: 'C-u' is like "un-next-thing"
Rectangle Ops: (all begin with 'C-x r')
'C-x r d' to delete the current rectangle
'C-x r k' to kill the current rectangle
'C-x r y' to yank it
'C-x r r' which is copy rectangle to register. After you hit 'C-x r r' it asks you for a register to copy the rectangle to. A register is just any letter on the keyboard. To retrieve the contents of a particular register use 'C-x g' then type the key for the register
M-x comment-region, (or in C++ mode, 'C-c C-c')
C-u C-c C-c un-comment
In xemacs, both of these are available when you highlight a region and right click.
Tip: 'C-u' is like "un-next-thing"
Rectangle Ops: (all begin with 'C-x r')
'C-x r d' to delete the current rectangle
'C-x r k' to kill the current rectangle
'C-x r y' to yank it
'C-x r r' which is copy rectangle to register. After you hit 'C-x r r' it asks you for a register to copy the rectangle to. A register is just any letter on the keyboard. To retrieve the contents of a particular register use 'C-x g' then type the key for the register
lundi 25 avril 2011
mardi 29 mars 2011
remove ^M from emacs
^M may appear in emacs in linux system if the file was transferred from windows !!
In order to remove this ^M from the file, we can type:
m-x replace string ctrl-q ctrl-M RET
This will replace the ^M with the 'enter'. it is clear.
In order to remove this ^M from the file, we can type:
m-x replace string ctrl-q ctrl-M RET
This will replace the ^M with the 'enter'. it is clear.
Inscription à :
Articles (Atom)