Emacs †関連ページ †コマンド †% emacs % emacs ファイル名 ファイルの編集、保存と終了 †C-x C-f ファイルを開く C-x C-s 現在のファイルを保存 C-x s すべてのファイルを保存 C-x C-c 終了 C-g コマンドの中断 カーソル移動 †C-f 1文字右 C-b 1文字左 C-n 1行下へ C-p 1行上へ C-a 行の先頭へ C-e 行の最後へ ESC-< ファイルの先頭へ ESC-> ファイルの最後へ M-x goto-line 指定の行へ 基本設定 †~/.emacsファイルのコマンドが、起動時に実行されるので、各種設定を カスタマイズ可能 .emacsファイルの例: ここからダウンロード可能。 (setq mode-line-inverse-video t) (setq make-backup-files nil) (setq kept-old-versions 0) (setq kept-new-versions 0) (setq visible-bell t) (setq completion-ignore-case t) (setq read-file-name-completion-ignore-case t) (setq read-buffer-completion-ignore-case t) (tool-bar-mode 0) ;(menu-bar-mode 0) (global-set-key "\^c\^c" 'compile) (global-set-key "\^x\^n" 'next-error) (global-set-key "\eg" 'goto-line) (global-set-key "\C-m" 'newline-and-indent) (global-set-key "\C-xx" 'copy-to-register) (global-set-key "\C-xg" 'insert-register) (defun set-compile-command () (local-set-key "\C-c\C-c" 'compile)) (add-hook 'c-mode-common-hook 'set-compile-command) (add-hook 'makefile-mode-hook 'set-compile-command) |