假设想将WINDOWS下GB2312编码的文本转换成LINUX下UTF-8格式的文本,使用如下命令执行转换:
emacs test.txt #首先用emacs打开文件
\C+x RET r gb2312 #由于默认使用的编码可能不是正确的编码,所以需要选择正确的编码来显示文本,否则会显示乱码
\C+x RET f utf-8-unix #使用此命令执行文本转换,后缀"-unix"表示将windows换行符\r\n转换成unix换行符\n
\C+x s #保存转换后的文本
\C+x c #退出
gqw@debian:~$ cat .emacs
(add-to-list 'load-path "~/.emacs.d")
(require 'color-theme)
(color-theme-initialize)
;; (color-theme-charcoal-black)
(require 'toggle-source)
;;; Bind the toggle function to a global key
(global-set-key "\M-o" 'ff-find-other-file)
(require 'blank-mode)
(setq initial-scratch-message nil) ;; remove welcome text
(setq-default indent-tabs-mode nil)
(setq delete-key-deletes-forward t)
(setq mouse-yank-at-point t)
(setq show-paren-mode t)
(setq scroll-bar-mode 'right)
(setq gdb-many-windows t)
(line-number-mode t)
(column-number-mode t)
(global-linum-mode 'linum-mode)
;; Set color scheme (set lconfig-dark-bg-scheme to t for reverse color scheme)
;;(defconst color-scheme 'dark)
;;(defconst foreground-color "white")
;;(defconst background-color "black")
(defconst cursor-color "red3")
(defconst pointer-color "white")
;; Setup save options (auto and backup) -- still buggy need new Replace func
(setq auto-save-timeout 2000)
(setq make-backup-files t)
(setq
backup-by-copying t ; 自动备份
backup-directory-alist
'(("." . "~/.emacs.d/autosaves")) ; 自动备份在目录"~/.saves"下
delete-old-versions t ; 自动删除旧的备份文件
kept-new-versions 6 ; 保留最近的6个备份文件
kept-old-versions 2 ; 保留最早的2个备份文件
version-control t) ; 多次备份
;; Printing setup
(setq ps-n-up-printing 2)
(setq ps-print-header nil)
;; Global Key Bindings
(define-key global-map "\C-xw" 'what-line)
(define-key global-map "\C-l" 'global-linum-mode)
(define-key global-map "\C-z" 'undo)
(define-key global-map "\C-c" 'copy-region-as-kill)
(define-key global-map "\C-v" 'yank)
(define-key global-map [delete] 'delete-char)
(define-key global-map [backspace] 'delete-backward-char)
(define-key global-map [select] 'end-of-line)
(define-key global-map [f1] 'delete-window)
(define-key global-map [f2] 'split-window-vertically)
(define-key global-map [f3] 'split-window-horizontally)
(define-key global-map [f4] 'other-window)
(define-key global-map [f5] 'gud-step)
(define-key global-map [f6] 'gud-next)
(define-key global-map [f7] 'gud-finish)
(define-key global-map [f8] 'gud-go)
(define-key global-map [f9] 'gud-break)
(define-key global-map [f10] 'gud-remove)
(define-key global-map [f12] 'revert-buffer)
(define-key global-map [button4] 'previous-line)
(define-key global-map [button5] 'next-line)
(global-set-key [(meta ?/)] 'hippie-expand)
(setq hippie-expand-try-functions-list
'(try-expand-line
try-expand-line-all-buffers
try-expand-list
try-expand-list-all-buffers
try-expand-dabbrev
try-expand-dabbrev-visible
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-complete-file-name
try-complete-file-name-partially
try-complete-lisp-symbol
try-complete-lisp-symbol-partially
try-expand-whole-kill
)
)
;; Setup time mode
(autoload 'display-time "time" "Display Time" t)
(condition-case err
(display-time)
(error (message "Unable to load Time package.")))
(setq display-time-24hr-format nil)
(setq display-time-day-and-date t)
;; Setup text mode
(add-hook 'text-mode-hook '(lambda() (auto-fill-mode 1)))
(add-hook 'text-mode-hook '(lambda() (setq fill-column 78)))
;; Setup psgml-mode
(setq sgml-indent-step 2)
(setq sgml-indent-data t)
(setq sgml-warn-about-undefined-entities nil)
(setq sgml-warn-about-undefined-elements nil)
(defun user-mail-address() "[email protected]")
(add-to-list 'auto-mode-alist '("\\.xsd$" . xml-mode))
;; Setup Common Lisp mode
(condition-case err
(require 'c1)
(error (message "Unable to load Common Lisp package.")))
;; Setup C mode
(autoload 'c++-mode "cc-mode" "C++ Editing Mode" t)
(autoload 'c-mode "cc-mode" "C Editing Mode" t)
(autoload 'c-mode-common-hook "cc-mode" "C Mode Hooks" t)
(autoload 'c-add-style "cc-mode" "Add coding style" t)
;; Associate extensions with modes
(add-to-list 'auto-mode-alist '("\\.h$" . c++-mode))
;; Create my own coding style
;; No space before { and function sig indents 4 if argument overflow
(setq bws-c-style
'((c-auto-newline . nil)
(c-basic-offset . 4)
(c-comment-only-line-offset . 0)
(c-echo-syntactic-information-p . nil)
(c-hungry-delete-key . t)
(c-tab-always-indent . t)
(c-toggle-hungry-state . t)
(c-hanging-braces-alist . ((substatement-open after)
(brace-list-open)))
(c-offsets-alist . ((arglist-close . c-lineup-arglist)
(case-label . 4)
(substatement-open . 0)
(block-open . 0) ; no space before {
(knr-argdecl-intro . -)))
(c-hanging-colons-alist . ((member-init-intro before)
(inher-intro)
(case-label after)
(label after)
(access-label after)))
(c-cleanup-list . (scope-operator
empty-defun-braces
defun-close-semi))))
;; Construct a hook to be called when entering C mode
(defun lconfig-c-mode ()
(progn (define-key c-mode-base-map "\C-m" 'newline-and-indent)
;; (define-key c-mode-base-map "\C-z" 'undo)
;; (define-key c-mode-base-map [f4] 'speedbar-get-focus)
;; (define-key c-mode-base-map [f5] 'compile)
;; (define-key c-mode-base-map [f6] 'run-program)
;; (define-key c-mode-base-map [f7] 'next-error)
;; (define-key c-mode-base-map [f8] 'set-mark-command)
;; (define-key c-mode-base-map [f9] 'insert-breakpoint)
;; (define-key c-mode-base-map [f10] 'step-over)
;; (define-key c-mode-base-map [f11] 'step-into)
;; (define-key c-mode-base-map [f12] 'gdb)
(c-add-style "Brad's Coding Style" bws-c-style t)))
(add-hook 'c-mode-common-hook 'lconfig-c-mode)
;; Setup font-lock syntax coloring package
(defconst lconfig-font-lock-faces
(list '(font-lock-builtin-face
((((class color) (background dark)) (:foreground "cyan" :bold t))
(((class color)) (:foreground "DarkBlue" :bold t))))
'(font-lock-comment-face
((((class color) (background dark)) (:foreground "LightPink"))
(((class color)) (:foreground "FireBrick"))))
'(font-lock-constant-face
((((class color) (background dark)) (:foreground "SpringGreen"))
(((class color)) (:foreground "ForestGreen"))))
'(font-lock-doc-string-face
((((class color) (background dark)) (:foreground "SpringGreen"))
(((class color)) (:foreground "ForestGreen"))))
'(font-lock-function-name-face
((((class color) (background dark)) (:foreground "wheat3"))
(((class color)) (:foreground "DarkBlue"))))
'(font-lock-keyword-face
((((class color) (background dark)) (:foreground "SkyBlue" :bold t))
(((class color)) (:foreground "DarkBlue" :bold t))))
'(font-lock-preprocessor-face
((((class color) (background dark)) (:foreground "SkyBlue"))
(((class color)) (:foreground "gray40"))))
'(font-lock-reference-face
((((class color) (background dark)) (:foreground "yellow"))
(((class color)) (:foreground "maroon4"))))
'(font-lock-string-face
((((class color) (background dark)) (:foreground "SpringGreen"))
(((class color)) (:foreground "ForestGreen"))))
'(font-lock-type-face
((((class color) (background dark)) (:foreground "orange1"))
(((class color)) (:foreground "maroon4"))))
'(font-lock-variable-name-face
((((class color) (background dark)) (:foreground "yellow"))
(((class color)) (:foreground "SaddleBrown"))))
'(font-lock-warning-name-face
((((class color) (background dark)) (:foreground "DarkOrange"))
(((class color)) (:foreground "DarkOrange"))))))
;; If possible set up a custom color scheme, otherwise turn colors off
(autoload 'custom-set-faces "font-lock" "Set the color scheme" t)
(autoload 'font-lock-fontify-buffer "font-lock" "Fontify Buffer" t)
;;(condition-case err
;; (progn (apply 'custom-set-faces lconfig-font-lock-faces)
;; (add-hook 'c-mode-common-hook 'font-lock-fontify-buffer)
;; (add-hook 'emacs-lisp-mode-hook 'font-lock-fontify-buffer)
;; )
;; (error (progn
;; (message "Could not customize colors, disabling colored fonts.")
;; (setq-default font-lock-auto-fontify t))))
;; Setup Workshop, the Sun C++ ide integration package
(condition-case err
(progn
(setq load-path (append load-path '("/opt/SUNWspro/lib")))
(require 'workshop))
(error (message "Unable to load Sun Workshop package.")))
;; Setup JDE, the Java Development Environment for Emacs
;; Add load paths to development versions of jde
(add-to-list 'load-path (expand-file-name "~/elisp/jde/lisp"))
(add-to-list 'load-path (expand-file-name "~/elisp/ede"))
(add-to-list 'load-path (expand-file-name "~/elisp/eieio"))
(add-to-list 'load-path (expand-file-name "~/elisp/elib"))
(add-to-list 'load-path (expand-file-name "~/elisp/semantic"))
(add-to-list 'load-path (expand-file-name "~/elisp/speedbar"))
(defun lconfig-jde-mode-hook ()
(progn (define-key jde-mode-map "\M-." 'jde-complete-at-point-menu)
(define-key jde-mode-map "\M-," 'jde-complete-at-point)
(define-key jde-mode-map [f4] 'speedbar-frame-mode)
(define-key jde-mode-map [f5] 'next-error)
(define-key jde-mode-map [f6] 'jde-run)
(define-key jde-mode-map [f7] 'jde-compile)
(define-key jde-mode-map [f8] 'set-mark-command)
(define-key jde-mode-map [f9] 'insert-breakpoint)
(define-key jde-mode-map [f10] 'step-over)
(define-key jde-mode-map [f11] 'step-into)
(setq c-basic-offset 4)))
(autoload 'jde-mode "jde" "JDE mode" t)
(condition-case err
(progn (add-to-list 'auto-mode-alist '("\\.java$" . jde-mode))
(setq jde-complete-use-menu nil)
(add-hook 'jde-mode-hook 'lconfig-jde-mode-hook))
(error (message "Unable to load JDEE package.")))
;; Setup CPerl mode
(setq cperl-brace-offset -4)
(setq cperl-indent-level 4)
;; Setup func-menu, the function menu quicklink package (XEmacs only)
(autoload 'function-menu "func-menu" "Load the parsing package" t)
(autoload 'fume-add-menubar-entry "func-menu" "Add function menu" t)
(autoload 'fume-list-functions "func-menu" "List functions in window" t)
(autoload 'fume-prompt-function-goto "func-menu" "Goto function" t)
(setq fume-max-items 35)
(setq fume-fn-window-position 3)
(setq fume-auto-position-popup t)
(setq fume-display-in-modeline-p t)
(setq fume-menubar-menu-location "Info")
(setq fume-buffer-name "Function List*")
(setq fume-no-prompt-on-valid-default nil)
;(global-set-key [f8] 'function-menu)
;(define-key global-map "\C-cl" 'fume-list-functions)
;(define-key global-map "\C-cg" 'fume-prompt-function-goto)
(condition-case err
(progn (function-menu)
(add-hook 'c-mode-common-hook 'fume-add-menubar-entry))
(error (message "Unable to load Function Menu package")))
;; Setup speedbar, an additional frame for viewing source files
(autoload 'speedbar-frame-mode "speedbar" "Popup a speedbar frame" t)
(autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t)
(autoload 'speedbar-toggle-etags "speedbar" "Add argument to etags command" t)
(setq speedbar-frame-plist '(minibuffer nil
border-width 0
internal-border-width 0
menu-bar-lines 0
modeline t
name "SpeedBar"
width 24
unsplittable t))
(condition-case err
(progn (speedbar-toggle-etags "-C"))
(error (message "Unable to load Speedbar package.")))
;; XEmacs specific setup
(if (featurep 'xemacs)
(progn (set-specifier default-toolbar-visible-p nil)
(setq font-lock-use-default-colors nil)
(setq font-lock-use-fonts t)
(setq font-lock-use-colors t)
(setq font-lock-maximum-decoration t)))
;; GNU specific general setup
(if (not (featurep 'xemacs))
(condition-case err
(progn (set-scroll-bar-mode 'right)
(global-font-lock-mode t))
(error (message "Not running GNU emacs 20.4 or above."))))
;; Setup my own packages
(add-to-list 'load-path (expand-file-name "~/elisp/"))
(define-key global-map "\M-w" 'copy-region-as-kill)
(define-key global-map "\C-x\C-g" 'goto-line)
;; Add final message so using C-h l I can see if .emacs failed
(message ".emacs loaded successfully.")
(defun insert-current-time()
(interactive)
(insert(format-time-string "%Y-%m-%d %H:%M:%S" (current-time))))
(define-key global-map "\C-t" 'insert-current-time)
(define-key global-map "\C-\M-m" 'set-mark-command)
(setq backup-inhibited t)
听说蓝色保护眼睛,整天对着白色的编辑器,我都要变白了。所以想着给Emacs换个配色,google之后,我再整理一下。
网络上广为流传的是一个color-theme扩展,在 Color-theme On Emacs Wiki 上可以下载。
下载下来一个压缩包,如果你英文OK,看着READ ME 安装就可以了。如果不OK,或者你和我一样懒的话。。。接着看吧。
提取这个压缩包里面的Theme文件夹和color-theme.el文件,放在一个文件夹中(这个文件夹我推荐你用在专门放置Emacs扩展)。
在.emacs文件中,添加配置:
(add-to-list ‘load-path “YourFolderName”) ;;这是为了添加loadpath
(require ‘color-theme) ;;为了使用
(color-theme-initialize)
(color-theme-XXX) ;; XXX是你所希望的默认的颜色配置名称,比如我自己选用的就是dark-blue2。
上面最后一行代码可以不用急着写,因为你也许还不确定你到底使用哪种颜色配置。
现在,打开Emacs,输入
M-x load-library RET color-theme
加载color-theme,再输入
M-x color-theme-selcet
选择配色,在所给出的列表上,按RET可以应用配色,对你想使用的配色上按d,可以看到类似信息:
color-theme-sitaramv-nt is an interactive compiled Lisp function in `color-theme.el'.
(color-theme-sitaramv-nt)
Black foreground on white background.
Includes faces for font-lock, widget, custom, speedbar.
[back]
这里的(color-them-XXX)就是要上面.emacs配置里的最后一句,这样,你就可以默认使用这个配色了。
Key translations Starting With C-x:
key binding
--- -------
C-x 8 Prefix Command
C-x 8 SPC
C-x 8 ! ¡
C-x 8 " Prefix Command
C-x 8 $ ¤
C-x 8 ' Prefix Command
C-x 8 * Prefix Command
C-x 8 + ±
C-x 8 , Prefix Command
C-x 8 -
C-x 8 . ·
C-x 8 / Prefix Command
C-x 8 1 Prefix Command
C-x 8 3 Prefix Command
C-x 8 < «
C-x 8 = ¯
C-x 8 > »
C-x 8 ? ¿
C-x 8 C ©
C-x 8 L £
C-x 8 P ¶
C-x 8 R ®
C-x 8 S §
C-x 8 Y ¥
C-x 8 ^ Prefix Command
C-x 8 _ Prefix Command
C-x 8 ` Prefix Command
C-x 8 c ¢
C-x 8 m µ
C-x 8 o °
C-x 8 u µ
C-x 8 x ×
C-x 8 | ¦
C-x 8 ~ Prefix Command
C-x 8 ~ SPC ~
C-x 8 ~ A Ã
C-x 8 ~ D Ð
C-x 8 ~ N Ñ
C-x 8 ~ O Õ
C-x 8 ~ T Þ
C-x 8 ~ a ã
C-x 8 ~ d ð
C-x 8 ~ n ñ
C-x 8 ~ o õ
C-x 8 ~ t þ
C-x 8 ~ ~ ¬
C-x 8 ` SPC `
C-x 8 ` A À
C-x 8 ` E È
C-x 8 ` I Ì
C-x 8 ` O Ò
C-x 8 ` U Ù
C-x 8 ` a à
C-x 8 ` e è
C-x 8 ` i ì
C-x 8 ` o ò
C-x 8 ` u ù
C-x 8 _ a ª
C-x 8 _ o º
C-x 8 ^ SPC ^
C-x 8 ^ 1 ¹
C-x 8 ^ 2 ²
C-x 8 ^ 3 ³
C-x 8 ^ A Â
C-x 8 ^ E Ê
C-x 8 ^ I Î
C-x 8 ^ O Ô
C-x 8 ^ U Û
C-x 8 ^ a â
C-x 8 ^ e ê
C-x 8 ^ i î
C-x 8 ^ o ô
C-x 8 ^ u û
C-x 8 3 / Prefix Command
C-x 8 1 / Prefix Command
C-x 8 / / ÷
C-x 8 / A Å
C-x 8 / E Æ
C-x 8 / O Ø
C-x 8 / a å
C-x 8 / e æ
C-x 8 / o ø
C-x 8 , , ¸
C-x 8 , C Ç
C-x 8 , c ç
C-x 8 ' SPC '
C-x 8 ' ' ´
C-x 8 ' A Á
C-x 8 ' E É
C-x 8 ' I Í
C-x 8 ' O Ó
C-x 8 ' U Ú
C-x 8 ' Y Ý
C-x 8 ' a á
C-x 8 ' e é
C-x 8 ' i í
C-x 8 ' o ó
C-x 8 ' u ú
C-x 8 ' y ý
C-x 8 " SPC "
C-x 8 " " ¨
C-x 8 " A Ä
C-x 8 " E Ë
C-x 8 " I Ï
C-x 8 " O Ö
C-x 8 " U Ü
C-x 8 " a ä
C-x 8 " e ë
C-x 8 " i ï
C-x 8 " o ö
C-x 8 " s ß
C-x 8 " u ü
C-x 8 " y ÿ
C-x 8 * SPC
C-x 8 * ! ¡
C-x 8 * $ ¤
C-x 8 * + ±
C-x 8 * -
C-x 8 * . ·
C-x 8 * < «
C-x 8 * = ¯
C-x 8 * > »
C-x 8 * ? ¿
C-x 8 * C ©
C-x 8 * L £
C-x 8 * P ¶
C-x 8 * R ®
C-x 8 * S §
C-x 8 * Y ¥
C-x 8 * c ¢
C-x 8 * m µ
C-x 8 * o °
C-x 8 * u µ
C-x 8 * x ×
C-x 8 * | ¦
C-x 8 3 / 4 ¾
C-x 8 1 / 2 ½
C-x 8 1 / 4 ¼
Global Bindings Starting With C-x:
key binding
--- -------
C-x C-@ pop-global-mark
C-x C-b list-buffers
C-x C-c save-buffers-kill-terminal
C-x C-d list-directory
C-x C-e eval-last-sexp
C-x C-f find-file
C-x C-g goto-line
C-x TAB indent-rigidly
C-x C-k kmacro-keymap
C-x C-l downcase-region
C-x RET Prefix Command
C-x C-n set-goal-column
C-x C-o delete-blank-lines
C-x C-p mark-page
C-x C-q toggle-read-only
C-x C-r find-file-read-only
C-x C-s save-buffer
C-x C-t transpose-lines
C-x C-u upcase-region
C-x C-v find-alternate-file
C-x C-w write-file
C-x C-x exchange-point-and-mark
C-x C-z suspend-frame
C-x ESC Prefix Command
C-x $ set-selective-display
C-x ' expand-abbrev
C-x ( kmacro-start-macro
C-x ) kmacro-end-macro
C-x * calc-dispatch
C-x + balance-windows
C-x - shrink-window-if-larger-than-buffer
C-x . set-fill-prefix
C-x 0 delete-window
C-x 1 delete-other-windows
C-x 2 split-window-vertically
C-x 3 split-window-horizontally
C-x 4 ctl-x-4-prefix
C-x 5 ctl-x-5-prefix
C-x 6 2C-command
C-x 8 Prefix Command
C-x ; comment-set-column
C-x < scroll-left
C-x = what-cursor-position
C-x > scroll-right
C-x [ backward-page
C-x ] forward-page
C-x ^ enlarge-window
C-x ` next-error
C-x a Prefix Command
C-x b switch-to-buffer
C-x d dired
C-x e kmacro-end-and-call-macro
C-x f set-fill-column
C-x h mark-whole-buffer
C-x i insert-file
C-x k kill-buffer
C-x l count-lines-page
C-x m compose-mail
C-x n Prefix Command
C-x o other-window
C-x q kbd-macro-query
C-x r Prefix Command
C-x s save-some-buffers
C-x u undo
C-x v vc-prefix-map
C-x w what-line
C-x z repeat
C-x { shrink-window-horizontally
C-x } enlarge-window-horizontally
C-x DEL backward-kill-sentence
C-x C-SPC pop-global-mark
C-x C-+ text-scale-adjust
C-x C-- text-scale-adjust
C-x C-0 text-scale-adjust
C-x C-= text-scale-adjust
C-x previous-buffer
C-x next-buffer
C-x previous-buffer
C-x next-buffer
C-x C-k C-a kmacro-add-counter
C-x C-k C-c kmacro-set-counter
C-x C-k C-d kmacro-delete-ring-head
C-x C-k C-e kmacro-edit-macro-repeat
C-x C-k C-f kmacro-set-format
C-x C-k TAB kmacro-insert-counter
C-x C-k C-k kmacro-end-or-call-macro-repeat
C-x C-k C-l kmacro-call-ring-2nd-repeat
C-x C-k RET kmacro-edit-macro
C-x C-k C-n kmacro-cycle-ring-next
C-x C-k C-p kmacro-cycle-ring-previous
C-x C-k C-s kmacro-start-macro
C-x C-k C-t kmacro-swap-ring
C-x C-k C-v kmacro-view-macro-repeat
C-x C-k SPC kmacro-step-edit-macro
C-x C-k b kmacro-bind-to-key
C-x C-k e edit-kbd-macro
C-x C-k l kmacro-edit-lossage
C-x C-k n kmacro-name-last-macro
C-x C-k q kbd-macro-query
C-x C-k r apply-macro-to-region-lines
C-x C-k s kmacro-start-macro
C-x RET C-\ set-input-method
C-x RET F set-file-name-coding-system
C-x RET X set-next-selection-coding-system
C-x RET c universal-coding-system-argument
C-x RET f set-buffer-file-coding-system
C-x RET k set-keyboard-coding-system
C-x RET l set-language-environment
C-x RET p set-buffer-process-coding-system
C-x RET r revert-buffer-with-coding-system
C-x RET t set-terminal-coding-system
C-x RET x set-selection-coding-system
C-x ESC ESC repeat-complex-command
C-x M-: repeat-complex-command
C-x 4 C-f find-file-other-window
C-x 4 C-o display-buffer
C-x 4 . find-tag-other-window
C-x 4 0 kill-buffer-and-window
C-x 4 a add-change-log-entry-other-window
C-x 4 b switch-to-buffer-other-window
C-x 4 c clone-indirect-buffer-other-window
C-x 4 d dired-other-window
C-x 4 f find-file-other-window
C-x 4 m compose-mail-other-window
C-x 4 r find-file-read-only-other-window
C-x 5 C-f find-file-other-frame
C-x 5 C-o display-buffer-other-frame
C-x 5 . find-tag-other-frame
C-x 5 0 delete-frame
C-x 5 1 delete-other-frames
C-x 5 2 make-frame-command
C-x 5 b switch-to-buffer-other-frame
C-x 5 d dired-other-frame
C-x 5 f find-file-other-frame
C-x 5 m compose-mail-other-frame
C-x 5 o other-frame
C-x 5 r find-file-read-only-other-frame
C-x 6 2 2C-two-columns
C-x 6 b 2C-associate-buffer
C-x 6 s 2C-split
C-x 6 2C-two-columns
C-x 8 RET ucs-insert
C-x a C-a add-mode-abbrev
C-x a ' expand-abbrev
C-x a + add-mode-abbrev
C-x a - inverse-add-global-abbrev
C-x a e expand-abbrev
C-x a g add-global-abbrev
C-x a i Prefix Command
C-x a l add-mode-abbrev
C-x a n expand-jump-to-next-slot
C-x a p expand-jump-to-previous-slot
C-x n d narrow-to-defun
C-x n n narrow-to-region
C-x n p narrow-to-page
C-x n w widen
C-x r C-@ point-to-register
C-x r SPC point-to-register
C-x r + increment-register
C-x r b bookmark-jump
C-x r c clear-rectangle
C-x r d delete-rectangle
C-x r f frame-configuration-to-register
C-x r g insert-register
C-x r i insert-register
C-x r j jump-to-register
C-x r k kill-rectangle
C-x r l bookmark-bmenu-list
C-x r m bookmark-set
C-x r n number-to-register
C-x r o open-rectangle
C-x r r copy-rectangle-to-register
C-x r s copy-to-register
C-x r t string-rectangle
C-x r w window-configuration-to-register
C-x r x copy-to-register
C-x r y yank-rectangle
C-x r C-SPC point-to-register
C-x v + vc-update
C-x v = vc-diff
C-x v D vc-root-diff
C-x v L vc-print-root-log
C-x v a vc-update-change-log
C-x v b vc-switch-backend
C-x v c vc-rollback
C-x v d vc-dir
C-x v g vc-annotate
C-x v h vc-insert-headers
C-x v i vc-register
C-x v l vc-print-log
C-x v m vc-merge
C-x v r vc-retrieve-tag
C-x v s vc-create-tag
C-x v u vc-revert
C-x v v vc-next-action
C-x v ~ vc-revision-other-window
C-x a i g inverse-add-global-abbrev
C-x a i l inverse-add-mode-abbrev
Function key map translations Starting With C-x:
key binding
--- -------
C-x @ Prefix Command
C-x @ S event-apply-shift-modifier
C-x @ a event-apply-alt-modifier
C-x @ c event-apply-control-modifier
C-x @ h event-apply-hyper-modifier
C-x @ m event-apply-meta-modifier
C-x @ s event-apply-super-modifier
[back]