Emacs Shortcuts

Misc.EmacsShortcuts History

Hide minor edits - Show changes to markup

May 13, 2018, at 09:30 AM by 83.46.91.228 -
Added line 13:
C-M-<SPC>Select next word without moving cursor
May 04, 2018, at 05:13 PM by 83.46.91.228 -
Changed lines 13-17 from:
C-s C-wSearch for the word after the current mark
to:
I-Search M-pLoad previous search string C-wSearch for the word after the current mark M-cToggle case-sensitive search
May 04, 2018, at 05:12 PM by 83.46.91.228 -
Changed line 13 from:
C-s C-wSearch for the word after the current mark
to:
C-s C-wSearch for the word after the current mark
May 04, 2018, at 05:11 PM by 83.46.91.228 -
Added line 13:
C-s C-wSearch for the word after the current mark
April 27, 2018, at 09:14 AM by 83.46.91.228 -
Added line 5:
C-S-<Backspace> Delete the current line
April 20, 2018, at 12:42 PM by 83.46.91.228 -
Added lines 12-15:
CC mode C-c C-cComment region C-u C-c C-cUncomment region
April 20, 2018, at 10:55 AM by 83.46.91.228 -
Added line 11:
M-g M-gGoto line number
April 19, 2018, at 08:39 AM by 83.46.91.228 -
Added lines 2-25:
Basics M-y Replace previous paste with the previous clipboard content C-u N Repeat the following command N times C-x C-m f Change file encoding C-<SPC> C-<SPC> and then C-u C-<SPC>Remember a position in the buffer and cycle back to saved positions C-x hMark entire buffer C-x zRedo the last operator (z again to repeat) C-x r <SPC> N then C-x r j NSave position to register N and jump to position N
Keyboard macros C-x ( Start a new macro C-x ) Finish the new macro C-x e Execute the most recently defined macro (e to repeat again) C-x C-k Edit the most recently defined macro C-u C-x ( Execute and add keys to the most recently defined macro name-last-kbd-macro Give a name to the most recently defined macro apply-macro-to-region-lines Run the last keyboard macro on each complete line in the region.
Rectangles C-x r k Kill a rectangle C-x r y Yank a rectangle
Abbrevs
Changed lines 27-28 from:
Basics
to:
C-x a g Add a global abbrev
Changed line 30 from:
M-y Replace previous paste with the previous clipboard content
to:
C-x a l Add a local (mode) abbrev
Changed line 33 from:
C-u N Repeat the following command N times
to:
C-u - C-x a [gl] Remove a global/local abbrev
Changed line 36 from:
C-x C-m f Change file encoding
to:
C-q Don’t expand this word.
Changed line 39 from:
Abbrevs
to:
Outline mode
Changed line 42 from:
C-x a g Add a global abbrev
to:
(Remove C-o if not in TeX-mode)
Changed line 45 from:
C-x a l Add a local (mode) abbrev
to:
C-c C-o C-t Hide all
Changed line 48 from:
C-u - C-x a [gl] Remove a global/local abbrev
to:
C-c C-o C-a Show all
Changed line 51 from:
C-q Don’t expand this word.
to:
C-c C-o C-e Show this one
Changed lines 54-55 from:
Outline mode
to:
C-c C-o C-c Hide this one
Changed lines 57-105 from:
(Remove C-o if not in TeX-mode) C-c C-o C-t Hide all C-c C-o C-a Show all C-c C-o C-e Show this one C-c C-o C-c Hide this one Rectangles C-x r k Kill a rectangle C-x r y Yank a rectangle C-x r t Replaces the contents of a region-rectangle with a string on each line Keyboard macros C-x ( Start a new macro C-x ) Finish the new macro C-x e Execute the most recently defined macro C-x C-k Edit the most recently defined macro C-u C-x ( Execute and add keys to the most recently defined macro name-last-kbd-macro Give a name to the most recently defined macro apply-macro-to-region-lines Run the last keyboard macro on each complete line in the region.
to:
C-x r t Replaces the contents of a region-rectangle with a string on each line
Changed line 108 from:
Creating the BROWSE file:
ebrowse **/*.{cpp,h,hpp}
to:
Creating the BROWSE file: ebrowse **/*.{cpp,h,hpp}
Changed line 111 from:
Creating the TAGS file:
etags **/*.{cpp,h,hpp}
to:
Creating the TAGS file: etags **/*.{cpp,h,hpp}
Changed line 1 from:
to:
Deleted line 0:

[=

Deleted line 124:

=]

Changed line 1 from:

[@

to:

[=

Changed line 126 from:

@]

to:

=]

Changed lines 1-84 from:

(:table border=1:) (:cell:) Basics (:cellnr:) M-y (:cell:) Replace previous paste with the previous clipboard content (:cellnr:) C-u N (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f (:cell:) Change file encoding (:cellnr:) Abbrevs (:cellnr:) C-x a g (:cell:) Add a global abbrev (:cellnr:) C-x a (:cell:) Add a local (mode) abbrev (:tableend:) |- | C-u - C-x a [gl] || Remove a global/local abbrev |- | C-q || Don’t expand this word. |-

colspan=“2″ | Outline mode

|- | colspan=“2″ | (Remove C-o if not in TeX-mode) |- | C-c C-o C-t || Hide all |- | C-c C-o C-a || Show all |- | C-c C-o C-e || Show this one |- | C-c C-o C-c || Hide this one |-

colspan=“2″ | Rectangles

|- | C-x r k || Kill a rectangle |- | C-x r y || Yank a rectangle |- | C-x r t || Replaces the contents of a region-rectangle with a string on each line |-

colspan=“2″ | Keyboard macros

|- | C-x ( || Start a new macro |- | C-x ) || Finish the new macro |- | C-x e || Execute the most recently defined macro |- | C-x C-k || Edit the most recently defined macro |- | C-u C-x ( || Execute and add keys to the most recently defined macro |- | name-last-kbd-macro || Give a name to the most recently defined macro |- | apply-macro-to-region-lines || Run the last keyboard macro on each complete line in the region. |-

colspan=“2″ | Auctex

|- | C-c e || Insert a new item |- | C-c C-c || Make an action (compile, view) |- | C-c   || Goto next error |- | C-c ) || Insert a reference (reftex) |-

colspan=“2″ | Gnus

|- | S o p || Forward a news to a newsgroup |-

colspan=“2″ | Etags / Ebrowse

|- | colspan=“2″ | Creating the BROWSE file:

ebrowse **/*.{cpp,h,hpp}
|- | colspan=“2″ | Creating the TAGS file:
etags **/*.{cpp,h,hpp}
|- | C-c b s || Look for a tag in all files |- | C-c b u || Look for the calls to the selected member |- | c b , || Continue the last operation |- | C-c b % || Query replace a tag in all files |}

to:
<table style="margin: 1em auto 1em auto">
<tr>
<th colspan="2"> <b>Basics</b>
</th></tr>
<tr>
<td> M-y </td><td> Replace previous paste with the previous clipboard content
</td></tr>
<tr>
<td> C-u N </td><td> Repeat the following command N times
</td></tr>
<tr>
<td> C-x C-m f </td><td> Change file encoding
</td></tr>
<tr>
<th colspan="2"> <b>Abbrevs</b>
</th></tr>
<tr>
<td> C-x a g </td><td> Add a global abbrev
</td></tr>
<tr>
<td> C-x a l </td><td> Add a local (mode) abbrev
</td></tr>
<tr>
<td> C-u - C-x a [gl] </td><td> Remove a global/local abbrev
</td></tr>
<tr>
<td> C-q </td><td> Don't expand this word.
</td></tr>
<tr>
<th colspan="2"> <b>Outline mode</b>
</th></tr>
<tr>
<td colspan="2"> (Remove C-o if not in TeX-mode)
</td></tr>
<tr>
<td> C-c C-o C-t </td><td> Hide all
</td></tr>
<tr>
<td> C-c C-o C-a </td><td> Show all
</td></tr>
<tr>
<td> C-c C-o C-e </td><td> Show this one
</td></tr>
<tr>
<td> C-c C-o C-c </td><td> Hide this one
</td></tr>
<tr>
<th colspan="2"> <b>Rectangles</b>
</th></tr>
<tr>
<td> C-x r k </td><td> Kill a rectangle
</td></tr>
<tr>
<td> C-x r y </td><td> Yank a rectangle
</td></tr>
<tr>
<td> C-x r t </td><td> Replaces the contents of a region-rectangle with a string on each line
</td></tr>
<tr>
<th colspan="2"> <b>Keyboard macros</b>
</th></tr>
<tr>
<td> C-x (     </td><td> Start a new macro
</td></tr>
<tr>
<td> C-x )     </td><td> Finish the new macro
</td></tr>
<tr>
<td> C-x e     </td><td> Execute the most recently defined macro
</td></tr>
<tr>
<td> C-x C-k   </td><td> Edit the most recently defined macro
</td></tr>
<tr>
<td> C-u C-x ( </td><td> Execute and add keys to the most recently defined macro
</td></tr>
<tr>
<td> name-last-kbd-macro </td><td> Give a name to the most recently defined macro
</td></tr>
<tr>
<td> apply-macro-to-region-lines </td><td> Run the last keyboard macro on each complete line in the region.
</td></tr>
<tr>
<th colspan="2"> <b>Auctex</b>
</th></tr>
<tr>
<td> C-c e   </td><td> Insert a new item
</td></tr>
<tr>
<td> C-c C-c </td><td> Make an action (compile, view)
</td></tr>
<tr>
<td> C-c `   </td><td> Goto next error
</td></tr>
<tr>
<td> C-c )   </td><td> Insert a reference (reftex)
</td></tr>
<tr>
<th colspan="2"> <b>Gnus</b>
</th></tr>
<tr>
<td> S o p  </td><td> Forward a news to a newsgroup
</td></tr>
<tr>
<th colspan="2"> <b>Etags / Ebrowse</b>
</th></tr>
<tr>
<td colspan="2"> Creating the BROWSE file: <pre>ebrowse **/*.{cpp,h,hpp}</pre>
</td></tr>
<tr>
<td colspan="2"> Creating the TAGS file: <pre>etags **/*.{cpp,h,hpp}</pre>
</td></tr>
<tr>
<td> C-c b s </td><td> Look for a tag in all files
</td></tr>
<tr>
<td> C-c b u </td><td> Look for the calls to the selected member
</td></tr>
<tr>
<td> c b , </td><td> Continue the last operation
</td></tr>
<tr>
<td> C-c b % </td><td> Query replace a tag in all files
</td></tr></table>
Changed lines 5-7 from:

(:cellnr:) C-u N \\ (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f \\ (:cell:) Change file encoding

to:

(:cellnr:) C-u N (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f (:cell:) Change file encoding

Changed lines 10-11 from:

(:cellnr:) C-x a g \\ (:cell:) Add a global abbrev (:cellnr:) C-x a \\ (:cell:) Add a local (mode) abbrev

to:

(:cellnr:) C-x a g (:cell:) Add a global abbrev (:cellnr:) C-x a (:cell:) Add a local (mode) abbrev

Changed lines 3-5 from:

(:cellnr:) M-y \\ (:cell:) Replace previous paste with the previous clipboard content

to:

(:cellnr:) M-y (:cell:) Replace previous paste with the previous clipboard content

Changed lines 3-5 from:

(:cellnr:) M-y (:cell:) Replace previous paste with the previous clipboard content (:cellnr:) C-u N (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f (:cell:) Change file encoding

to:

(:cellnr:) M-y \\ (:cell:) Replace previous paste with the previous clipboard content (:cellnr:) C-u N \\ (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f \\ (:cell:) Change file encoding

Changed lines 7-8 from:

(:cellnr:) C-x a g (:cell:) Add a global abbrev (:cellnr:) C-x a l (:cell:) Add a local (mode) abbrev

to:

(:cellnr:) C-x a g \\ (:cell:) Add a global abbrev (:cellnr:) C-x a \\ (:cell:) Add a local (mode) abbrev

Added lines 1-79:

(:table border=1:) (:cell:) Basics (:cellnr:) M-y (:cell:) Replace previous paste with the previous clipboard content (:cellnr:) C-u N (:cell:) Repeat the following command N times (:cellnr:) C-x C-m f (:cell:) Change file encoding (:cellnr:) Abbrevs (:cellnr:) C-x a g (:cell:) Add a global abbrev (:cellnr:) C-x a l (:cell:) Add a local (mode) abbrev (:tableend:) |- | C-u - C-x a [gl] || Remove a global/local abbrev |- | C-q || Don’t expand this word. |-

colspan=“2″ | Outline mode

|- | colspan=“2″ | (Remove C-o if not in TeX-mode) |- | C-c C-o C-t || Hide all |- | C-c C-o C-a || Show all |- | C-c C-o C-e || Show this one |- | C-c C-o C-c || Hide this one |-

colspan=“2″ | Rectangles

|- | C-x r k || Kill a rectangle |- | C-x r y || Yank a rectangle |- | C-x r t || Replaces the contents of a region-rectangle with a string on each line |-

colspan=“2″ | Keyboard macros

|- | C-x ( || Start a new macro |- | C-x ) || Finish the new macro |- | C-x e || Execute the most recently defined macro |- | C-x C-k || Edit the most recently defined macro |- | C-u C-x ( || Execute and add keys to the most recently defined macro |- | name-last-kbd-macro || Give a name to the most recently defined macro |- | apply-macro-to-region-lines || Run the last keyboard macro on each complete line in the region. |-

colspan=“2″ | Auctex

|- | C-c e || Insert a new item |- | C-c C-c || Make an action (compile, view) |- | C-c   || Goto next error |- | C-c ) || Insert a reference (reftex) |-

colspan=“2″ | Gnus

|- | S o p || Forward a news to a newsgroup |-

colspan=“2″ | Etags / Ebrowse

|- | colspan=“2″ | Creating the BROWSE file:

ebrowse **/*.{cpp,h,hpp}
|- | colspan=“2″ | Creating the TAGS file:
etags **/*.{cpp,h,hpp}
|- | C-c b s || Look for a tag in all files |- | C-c b u || Look for the calls to the selected member |- | c b , || Continue the last operation |- | C-c b % || Query replace a tag in all files |}