In recent Emacs versions (24), Semantic is able to automatically refactor C++ source code:
- Possibly activate semantic mode
M-x semantic-mode RET.
- Bring up the Symref buffer with
C-c , g.
C-c C-eto open all references.
- Rename with
|C-x C-k n||Give a command name (for the duration of the Emacs session) to the most recently defined keyboard macro (kmacro-name-last-macro).|
|C-x C-k b||Bind the most recently defined keyboard macro to a key sequence (for the duration of the session) (kmacro-bind-to-key).|
|M-x insert-kbd-macro||Insert in the buffer a keyboard macro's definition, as Lisp code.|
See more information on official website about Naming and Saving Keyboard Macros.
|C-x C-k C-i||Insert the keyboard macro counter value in the buffer (kmacro-insert-counter).|
|C-x C-k C-c||Set the keyboard macro counter (kmacro-set-counter).|
|C-x C-k C-a||Add the prefix arg to the keyboard macro counter (kmacro-add-counter).|
|C-x C-k C-f||Specify the format for inserting the keyboard macro counter (kmacro-set-format).|
See more information on official website about The Keyboard Macro Counter.
C-x r k
Kill the text of the region-rectangle, saving its contents as the "last killed rectangle" (kill-rectangle).
C-x r y
Yank the last killed rectangle with its upper left corner at point (yank-rectangle).
C-x r M-w
Save the text of the region-rectangle as the "last killed rectangle" (copy-rectangle-as-kill).
C-x r d
Delete the text of the region-rectangle (delete-rectangle).
C-x r t string RET
Replace rectangle contents with string on each line (string-rectangle).
See more information on official website about Rectangles.
This requires installing Magit plugin for Emacs.
Magit's status buffer, the main entry point to Magit.
magit-process buffer behind-the-scenes. Displays the git command and its output.
Run git command manually
Reload status buffer
Exit magit mode
Add untracked file to staging area
Unstage current hunk
Stage all hunks
Unstage all hunks
Add file to .gitignore
Add file to .git/info/exclude instead of .gitignore
Prepare for commit
Discard uncommitted changes
Show changes between working tree and HEAD
Show changes between two arbitrary revisions
Make lightweight tag
Prepare annotated tag
Create new stashStashes are listed in the status buffer.
Create new stash and maintain state, leaving current changes in working tree and staging area.