Emacs�� �����Ϸ��� emacs ��� ġ�� �ڿ� �����ϰ����ϴ� ȭ���� �̸��� ġ��ȴ�. ���� �������� �ʴ� ȭ���̸��� ����ϸ� Emacs�� ���ο� Ŀ���� ``point'' �Ǵ� ``dot''����� �Ҹ���. Emacs�� �¶��� ���� ����� �� �ܾ ����Ѵ�. ���� ������ ����� ��(��ǥ������ vi) Emacs�� ���ڸ� �����ϰ� ������ ������ ��带 �������� �ʴ´�. ȭ���� �� �Ʒ����� ``�̴Ϲ���''�� ���ǰ� �Ʒ����� �ι�° ���� �������� ������ ǥ���� �ش�. �� ���� ``������'' �̶�� �Ҹ���. �� ���ʿ� �ΰ��� ��ǥ(**)�� �ִٸ�, ���۰� ���� �Ǿ��ٴ� ���� ��Ÿ�� �ش�. (�� ��ġ�� %%�� ������ �б� ���� �������� ��Ÿ����.) Emacs:�ڿ� ����(Ȥ�� ȭ��)�� �̸��� ���´�. ��ȣ �ȿ� ������ ��尡 ������, �� �ڿ� ȭ�鿡 ���̴� �κ��� ��ü�� ����������� ǥ���� �ش�. ������ ó���� ��� 'Top', ���� ��� 'Bot' ���� ���� ��쿡�� %�� ǥ���� �ְ�, ������ ���� ��ü�� ȭ�鿡 ���� ��쿡�� 'ALL'�̶�� ǥ���� �ش�.
Emacs�� �����ڰ� �Ǹ�, ������ �������� ���۸� ���� ���� ���� �۾��� �� ���� ���� ���̴�. �̷��� ��쿡�� ������ ���۴� ������ �������� ������ �ȴ�.
Emacs �� ��õ �ƴϸ� ��鰳�� ���ɾ���� ������ �ִ�. ���� ���ڵ�� �����ϰ� �ְ����� binding�� �̷������ ���� ���ɾ� ���̳�, � Ű�� binding�� �̷���� �ִ��� �� ��쿡�� M-x ``���ɾ� �̸�'' RETURN �� ġ�� �ȴ�.
Emacs �� ����ڰ� �ڱ⸸�� binding�� �����ų�, ������ binding�� �ٲ� �� �ֵ��� ���ش�. �ڼ��� ���� ``Learning GNU Emacs'' 9���� �����ϰų�, Emacs Help�� �����ϱ� �ٶ���. (�ƴϸ�, �� ���� Ȥ�� �� ������ �ٷ�� ������ �Ƿ� �� ������ ��ٸ��� �ȴ�.)
�� ���� ���� �⺻���� ���ɾ�鿡 ���� �˾ƺ���. ���⼭ ���ʹ� ���ɾ� ����� ���� �����ϰ� ���漳���� �ʿ��� �κ��� �ڿ� �����ϴ� ������� �����ϰڴ�. ���ɾ� ����� ���ɾ� ����Ű�� ���� �����ϰ� �� �� ���ɾ� �̸��� �� ���Ҵ�.
���� �̸��� ���۸� �����, ȭ���� �о�´�. ���� ȭ���� �������� ������ ���ο� ȭ���� �����. (�ٸ� �����͵��� 'file open' �� ����) C-x C-v (find-alternate-file) : ��� ���� ȭ�� ��� �ٸ� ȭ���� �о�´�. �߸��� ȭ���� �о��� �� ����Ѵ�.
Emacs help�� ����ڿ��� ��ȭ�� ���Ͽ� ���� �ٸ� �����츦 ���ų�, �̴Ϲ��۸� ����ϰų�, ���δ� ��ü �����츦 �����ϱ �Ѵ�. �̴� ���ۿ� ������ ������� ���� �߿��� ������ ��� ���ֹǷ�, �̴� ������ ������� ������ ���� �͵� Emacs �� ���� ������ �� ����� ���̴�. ���� ��� C-h �� ��������. ? �� ��������� �Ѵ�. ?�� ��������. C-h�� �ѹ� �� ������ �ڼ��� ������ �ְڴٰ� �Ѵ�. ��������. ������ ���´�. ���� ȭ�鿡 �� �� ������ space �� ������ ȭ���� ���ڷѵȴٰ� �˷��ش�. (C-h�� ���� ������ ���� ����� �����.) t�� ������ TURTORIAL�� ������ ����. ���� TURTORIAL �� �̿��ؼ� Emacs ���θ� �غ���.
Describe function: �̶�� ���´�. ����� describe-function �̶�� �ĺ���.(�̷��� ��쿡�� completion�� ����ȴ�. �ѹ� �õ��� ����.) ����, ȭ���� �������鼭 �Ʒ� �����쿡 describe-function �̶�� ���ɿ� ���� ������ ������, �̴Ϲ��ۿ��� ģ���ϰԵ�, C-x 1 �� ������ �ٽ� ȭ���� �ϳ��� �ȴٴ� �̾߱Ⱑ ���´�. (�� ������ ������ ���� ���� �ٸ� ���� ���� ���̴�. ��·�� ���� ���ڰ� ���� �ִ� Emacs �� �̷��� �����Ѵ�.)
�տ��� ���ڴ� ``Learning GNU Emacs'' ��� å�� �Ұ��߾���. `��, �߸��� ������ �������� å�Ӹ��ƴ϶� ������ ����ؼ� Ȯ���غ���, �� Emacs ��ü�� ������ �о�� ���� ������.' ����, ���ڴ� Emacs �� `info' �� �о�� �����ߴ� ���̴�. `��, Emacs �� �����µ� ������ ���� �ǰڱ�.'
���� ���Ƽ� �� ������� �� �����ؼ� �ø��� ������, ����� �ߴ�. ��·�� �ϴ� info �� �� ����. (`C-h i' �� ������.) Emacs ���� ����. (g �� ������ emacs RETURN �� ������. �ƴϸ�, `* Emacs: (emacs)' ��� �� ���� ã�ư��� RETURN �� ������ �ȴ�.)
������ ���ؼ��� �׳� ���ڸ� ġ�� �ȴ�. ��� ģ ���ڸ� ������� DEL Ű�� ����ϸ� �ȴ�. ``Auto Fill'' ��带 ����ϸ� ���� ����� ��� �ڵ����� ���� ���������� �� �� �ִ�. ���� ����� ���ڰ� ���ԵǾ����� ��ſ� ��������⸦ �ٶ��ٸ� Overwrite ��带 ����� �� �ִ�.
control ���ڳ� 8���� 200 �̻��� ���� �ڵ带 ������ ���ڵ� ���� ������ ���� ���ڸ� �Է��Ϸ��� `C-q' ������ ����ϸ� �ȴ�.
��, �� ���� �����鼭 �ǽ��� �غ��� �ٶ���. �׳� �б⸸ �ϴ°� ���ٴ� �ѹ� �غ��� ���� �ξ� ���� ���� �� �ִ� ����̴ϱ�.
���� `M-r' (`move-to-window-line') ������ ���� ���� �μ��� �Ƶ��δٴ� ������ �ִµ�, ���ɿ� ��� ���� �μ��� �ٱ�?
`Emacs �� ������ ������ ��ȭ�� � �����(8000�� ����) ����ϴ� ���� �����ϰ� ���شٰ�? ������ ���ۿ� ���� ��Ұ� ���� ����ȴ�. �Ϲ������� ������ ������ �ϳ��� ��� ����� ��������, `query-replace' ó�� ���� ����� ����� ���ɵ� �ְ� ������ ��ϵǴ� ��쵵 �ִ�.'
������� `C-_' �Ǵ� `C-x u' ������ ��ϵ� �Ѱ���� ������, �� �� ������ ��ȭ�� ����Ѵ�. ���� ��ϵ� ���� ������ ���� ������ ����. ��� ������ �ƴ� � ���ɵ� ��� ������ ������ ���´�. �� �������� ������ ��� ���ɵ��� ��ȭ�� �νĵǾ� ��� ���ɿ����� ��� �� �� �ִ�. ��Ҹ� ����Ϸ���, `C-f' ���� ������ ������ ��� ������ ������ �ȴ�. (���� ���� ������ �˰� �����ôٸ� Emacs �� info �� �����ϼ���.)
ȭ���� �� �Ʒ����� ``minibuffer window'' Ȥ�� ``echo area'' ��� �Ҹ����. �� ������ ����ڿ��� ������ ����(���� ������)�� �����ϰų�, ȭ�ϸ�, ���۸�, Lisp �Լ���, ����� ������ �μ��� �Ѱܹµ� ���ȴ�. ������ �̴Ϲ��۴� ����Ʈ �μ��� ��ȣ �ȿ� �����ϱ �Ѵ�. �� �� �� ����Ʈ �μ��� �̿��Ϸ��� �׳� RETURN �� ������ �ȴ�. �̴Ϲ��۸� ����ϴ� ������ ����ϴ� ������ ����� `C-g'�� ������ ���̴�. �̰���, �̴Ϲ��۸� ������� �ʴ� �����̶� ����Ű���� ������ ������ ��쿡 ����� �� �ִ�.
�̴Ϲ��۸� ����ϴ� ������ �ݺ��ϴ� ����� �ִ�.
Emacs �� ���� ������ ��� `C-h' �� �����Ѵ�. h �� help ��� �ܾ�� ���Դ�.
Emacs �� ���� �ͼ������ٸ� �� ���� ����� ���� Ȱ���ϱ⸦ ���� ���Ѵ�. ���� �ñ��ϴٸ� ���� ����� ��� �̿��ұ� �����ϴ� ������ �����ñ�. Emacs �� ���� �� �� ����� �� �ִ� ����� ���̴�.
`customize' �� �ܾ ã�ƺ��� `�ֹ��� ���� �����.' ��� ���� �ִ�. `customization' �̶� �ܾ �� �� ��Ȯ�� ǥ�����ڸ� `�ֹ��� ���� �����' ������ �� ���ε�, �׳� `���� ��ȯ'�̶�� �� �ָ��� �ܾ ����Ͽ���. ��ȸ�� ���ߵ��� ��� ������ `.emacs' ȭ���� �����Ѵ�. `.emacs' ȭ���� Emacs �� �����Ǹ鼭 �Ͽ��� �� �ϵ��� ����� ���� ȭ���̴�. Emacs �� ��ü Lisp ���� ��� �Ǿ���������, �� ���캸�� �ٸ� ��ȭ�� �ִ� �͵� �״��� ������� �������� �����ȴ�. ����, ������ ǥ�� Ű binding �� �ǵ����̸� �ٲ��� �� ���� ���Ѵ�.
;
; hwijae��
; .emacs ȭ��
; �ٿ��� ';' ������ �� �κ��� �ּ���.
; Linux SLS 1.03 ��ġ�ϸ鼭 �ִ� .emacs ȭ�Ͽ� ���� ����.
; text ��尡 �� �� turn-on-auto-fill �� �����϶�� ��.
; (��, text ��尡 �Ǹ� auto-fill ��尡 ��.)
(setq text-mode-hook 'turn-on-auto-fill)
(setq make-backup-files t) ; backup file �� ������.
(put 'eval-expression 'disabled nil) ; ���� �ִ� ����. (?)
; ȭ�� ���� ���� ��尡 ���õ�.
; ��°���� .c �� ������ ȭ�ϸ��� ���� ȭ���� ���� c-mode ��
; ����¶�.
(setq auto-mode-alist (mapcar 'purecopy
'(("\\.c$" . c-mode)
("\\.h$" . c-mode)
("\\.C$" . c++-mode)
("\\.cc$" . c++-mode)
("\\.H$" . c++-mode)
("\\.hh$" . c++-mode)
("\\.cxx$" . c++-mode)
("\\.hxx$" . c++-mode)
("\\.cpp$" . c++-mode)
("\\.hpp$" . c++-mode)
("\\.tex$" . TeX-mode)
("\\.txi$" . Texinfo-mode)
("\\.el$" . emacs-lisp-mode)
("\\.a$" . c-mode))))
; �߰��� Ű binding.
; `M-[' (`backward-paragraph')������ ������� ���ϰ� ��.
; ȭ��ǥŰ�� Insert, Page Up, Page Down ���� Ű�� �� �ǹ̿� �°�
; �ൿ�Ѵ�.
; ���Ű�鿡 (function keys) ���ϴ� ����� ���� �� �ִ�.
(defvar cursor-map-2 (make-keymap)"for ESC-[") ; ?
(fset 'Cursor-Map-2 cursor-map-2) ; ?
(define-key esc-map "[" 'Cursor-Map-2) ; ?
(define-key esc-map "[3~" 'delete-backward-char) ; del
(define-key esc-map "[2~" 'overwrite-mode) ; insert
(define-key esc-map "[5~" 'scroll-down) ; page-up
(define-key esc-map "[1~" 'beginning-of-line) ; home, X ���� �ȵ�.
(define-key esc-map "[4~" 'end-of-line) ; end, '' .
(define-key esc-map "[6~" 'scroll-up) ; page-down
(setq f1-function 'count-lines-page)
(setq f2-function 'find-file)
(setq f3-function 'other-window)
(setq f4-function 'delete-other-windows)
(setq f5-function 'split-window-vertically)
(setq f6-function 'switch-to-buffer)
(setq f7-function 'recenter)
(setq f8-function 'recenter)
(setq f9-function 'recenter)
(setq f10-function 'goto-line)
(setq f11-function 'where-is)
(setq f12-function 'describe-function)
(define-key esc-map "[11~" f1-function) ; F1
(define-key esc-map "[12~" f2-function) ; F2
(define-key esc-map "[13~" f3-function) ; F3
(define-key esc-map "[14~" f4-function) ; F4
(define-key esc-map "[15~" f5-function) ; F5
(define-key esc-map "[17~" f6-function) ; F6
(define-key esc-map "[18~" f7-function) ; F7
(define-key esc-map "[19~" f8-function) ; F8
(define-key esc-map "[20~" f9-function) ; F9
(define-key esc-map "[21~" f10-function) ; F10
(define-key esc-map "[23~" f11-function) ; F11
(define-key esc-map "[24~" f12-function) ; F12
(define-key esc-map "[[A" f1-function) ; F1
(define-key esc-map "[[B" f2-function) ; F2
(define-key esc-map "[[C" f3-function) ; F3
(define-key esc-map "[[D" f4-function) ; F4
(define-key esc-map "[[E" f5-function) ; F5
(define-key esc-map "[A" 'previous-line) ; up-arrow
(define-key esc-map "[B" 'next-line) ; down-arrow
(define-key esc-map "[C" 'forward-char) ; right-arrow
(define-key esc-map "[D" 'backward-char) ; left-arrow
(define-key esc-map "OA" 'previous-line) ;up-arrow
(define-key esc-map "OB" 'next-line) ;down-arrow
(define-key esc-map "OC" 'forward-char) ;right-arrow
(define-key esc-map "OD" 'backward-char) ;left-arrow
;
; ��ġ�� ������ �ִ� ����. ���ڴ� �� ��.
;
(setq load-path
(cons (expand-file-name "PATH_FOR_AUC-TEX") load-path))
(autoload 'tex-mode
"auc-tex" "Automatic select TeX or LaTeX mode" t)
(autoload 'plain-tex-mode "auc-tex" "Mode for Plain TeX" t)
(autoload 'latex-mode "auc-tex" "Mode for LaTeX" t)
(autoload 'LaTeX-math-mode "tex-math" "Math mode for TeX." t)
(autoload 'outline-minor-mode "outline-m" "Minor Outline Mode." t)
(defun Ctl-C-prefix ()
Ctl-C-keymap)
(setq Ctl-C-keymap (make-keymap))
(global-set-key "\C-c" (Ctl-C-prefix))
(define-key Ctl-C-keymap "m" 'LaTeX-math-mode)
(define-key Ctl-C-keymap "o" 'outline-minor-mode)
(make-variable-buffer-local 'outline-prefix-char)
(setq-default outline-prefix-char "\C-l")
(make-variable-buffer-local 'outline-regexp)
(setq-default outline-regexp "[*\l]+")
(make-variable-buffer-local 'outline-level-function)
(setq-default outline-level-function 'outline-level-default)
(autoload 'ispell-word "ispell"
"Check the spelling of word in buffer." t)
(global-set-key "\e$" 'ispell-word)
(autoload 'ispell-region "ispell"
"Check the spelling of region." t)
(autoload 'ispell-buffer "ispell"
"Check the spelling of buffer." t)
(autoload 'ispell-complete-word "ispell"
"Look up current word in dictionary and try to complete it." t)
(autoload 'ispell-change-dictionary "ispell"
"Change ispell dictionary." t)
(setq-default abbrev-mode t) ; ���۰� ���ÿ� abbrev ��尡 �ȴ�.
(setq save-abbrevs t)
(if (equal (nth 0 command-line-args) "mule") ; ���� mule�̸�
(setq load-path
(cons (expand-file-name "/usr/local/emacs/lisp") load-path))
())
(load "c++mode") ; c++mode �� �д´�.
; c ���� indentation (����?) ����.
; ���ڴ� ��ĭ�� ������.
(setq c-indent-level 4)
(setq c-continued-statement-offset 4)
(setq c-continued-brace-offset -4)
; c �� c++ ��忡�� RETURN �� ������
; �ٽ� indent �ϰ� �� �ٲٰ� indent ��.
(define-key c++-mode-map "\r" 'reindent-then-newline-and-indent)
(define-key c-mode-map "\r" 'reindent-then-newline-and-indent)
(setq explicit-shell-file-name "/bin/bash") ; shell ��忡�� �����
; shell �� ��Ȯ�� ����.
(read-abbrev-file "~/.abbrev_defs") ; ������ ����.
(if (equal (nth 0 command-line-args) "mule") ; ���� mule �̸�,
(let ()
; �������� �� .emacs ȭ��
; �̴н��� ���� ��ħ.
; ���ڰ� ���� �����ϰ�(�տ��� ��ġ�� �κ�) ���� ��ħ.
;
; �ι��� ����ڸ� ���� Ű���� ����
; �ѱۿ�����ȯ�� ��Ʈ+�����̽��� ���ǵǾ� ����.
; /usr/local/hanauto ȭ���� �ι����Է¿��丶Ÿ�� ����.
;(load-library "/usr/local/mule/lisp/hangul-mode")
;
;������ ����ڸ� ���� Ű��������
;��ü �Է¿��丶Ÿ�� �����.
;�������� ���� ���ؼ��� �� �� ���� ��°�� ùĭ�� ; ǥ�ø��ϰ�
;�Ʒ� ������ ùĭ�� �ִ� ; �� �����ϸ� ��. (���ڴ� �������� �����.)
(require 'quail)
(load "quail/hangul3")
(setq kanji-input-code 0)
)
())
;
; ��
;
Emacs ���� �� ������ Ư�� ���ӵ� �κп� ���Ͽ����� ������ ���� �ִ�. �̷��� ������ ���Ͽ��� �κ��� �����ϱ� ���� ���� ���� ``mark'' �� �����ϰ�, ����Ʈ�� �ٸ� �� ������ �Űܾ� �Ѵ�. ����Ʈ�� ��ũ ������ �κ��� ``region'' �̶�� �Ѵ�. (���� ``����''�̶� �ϰڴ�.) ��ũ�� �ѹ� ������ ���Ŀ���, �װ��� �ٸ� ��ġ�� �ٽ� ������ ������ �����ִ´�. ��ũ�� �ؽ�Ʈ�� �Էµǰų� ������ �� �� ���� ���ڿ� ���� ��ġ�� �����Ǿ� �ִ´�. ������ Emacs ���۴� ���� �ڽ��� ��ũ�� ������ �ִ�. `C-y' (`yank') �� `M-x insert-buffer' �� ���� �ؽ�Ʈ�� �����ϴ� ���� ���ɵ��� ��ũ�� ���ԵǴ� �ؽ�Ʈ�� �� ���� ��ġ��Ű�� �ٸ� �� ���� ����Ʈ�� ��ġ��Ų��. ����, ������ �ٷ� ���Ե� �ؽ�Ʈ�� �ȴ�. ������ �����ϴ� �Ͱ��� ������ ��ũ�� �ǵ��ư� ��ġ�� �����ϴ´�� �����ϴ�. �̰��� ���� �����ϰ��ϱ� ���� Emacs �� 16���� ���� ��ũ ��ġ�� `mark ring' �� ����Ѵ�.
���� ���ɵ��� ���� ����ϴ� ���� ���� �� ����.
�� �ܿ� `M-<' �� ���� �ָ� �̵��ϴ� ������ ��쿡 �̵��ϱ� ������ ����Ʈ ��ġ�� ��ũ�� �ȴ�. �� ��쿡 echo area �� ``Mark set'' �̶�� ������ ���´�. ���� ��ũ�� ���ư� ��ġ�� ����ϴµ� �̿��غ���. Emacs �� ���� 16�� ��ũ�� ��ġ�� ``mark ring''�� ����Ѵ�. ��ũ�� �����ϴ� ��κ��� ������ ������ ��ũ�� �� ``mark ring'' �� push �Ѵ�. (���Ը��ؼ� ����Ѵ�.) ���� ��ũ�� ��ġ�� ã�ư��� ���ɿ� ���� �˾ƺ���.
`C-u C-SPC' Ȥ�� `C-u C-@' ����Ʈ�� ��ũ ��ġ�� �ű�� ring �� ���� ��ũ ��ġ�� ��ũ�� �ű��. �ָ� �̵��ϴ� ������ �̵��ϱ� ���� ��ġ�� ��ũ�� ������ �ǵ��� ���� ���� ���� �����. ���� `mark-ring -max' �� mark ring �� ����ϴ� �ִ� ��ũ�� ������ ��Ÿ����.
���۷κ��� �ؽ�Ʈ�� ����� ��κ��� ������ ������ �ٲ���� �� �ٽ� �����ų� �ű�ų� �����ϱ� ���� �װ͵��� �����Ѵ�. �̷� ���ɵ��� ``kill'' �����̶� �˷����ִ�. �������� �ؽ�Ʈ�� �������� �ʴ� ���ɵ��� ``delete'' �����̶� �˷����ִ�. (���� kill �� ����, delete �� ���Ŷ� �����ϰڴ�.) ���� ������ �� ���ڸ� ����� �����̳�, space �� newline ���� ����� ���ɵ��� ���Եȴ�. �Ǽ��� ���� ����, Ȥ�� �������� ��쿡�� `C-x u' (`undo') ������ ����ؼ� ����� �� �ִ�.
`C-y', `M-y' ���ɸ� ��� ���캸��.
���� ��� A-B-C-D �װ��� ������ ������ �ۿ��� B ������ ����(kill) �ߴٰ� �����غ���. ���� A-C-D �� ���� ���� �� ���̴�. ���� C, D ������ ������ �ٲٰ� �ʹ�. ���� C�� �����ϰ�, D�� ������ `C-y' �� ������ �ȴ�. ���� ���� A-D-C�� ������ ������ �ȴ�. ����, ���� �ϰ����� B�� ������ A �տ� ���� �;�����. ����, A �� �տ����� `C-y'�� ������. ����, C�� ���Ե� ���̴�. �� ��, `M-y' �� ������, C�� ������ ���Ե� �ڸ��� B�� ������ �� ���̴�. `M-y' (`yangk-pop') ������ `C-y' Ȥ��, �� ���� `M-y' ���� �ڿ����� �����Ѵ�. ��, `C-y' �� ������ ���� �ֱٿ� ������ ������ ���Եǰ�, 'M-y'�� ���� ������, �� ������ ������ �������� �ٲ�� ���ԵǴ� ���̴�. �̷��� �����Ǵ� ������ "kill ring" �� ����Ǵµ�, ����Ǵ� ������ �ؽ�Ʈ�� �ִ� ������ kill-ring-max ��� ������ ����ȴ�. ���� �⺻���� 30�̴�.
���� `M-y' �� ��� ������ ���ϴ� ���� ������ �˰� �ִٸ�, `C-y' �� ���� �μ��� �־ �ٷ� ������ �� �ִ�. ���� `C-u 2 C-y' �� `C-y M-y'�� ����.
���簢�� ������ �ٷ�� ���ɵ��� ���캸��. ���簢���� ������ �����ϴ� ���� ���� ������ �����ϴ� �Ͱ� ����ϴ�. ���� ���� ����Ʈ, ���� ���� ��ũ�� ��ġ ��Ű�� �ȴ�.
Emacs ``��Ϻ�'' �� �ؽ�Ʈ�� ��ġ�� ���� ����� ���� �����ϴ� ����̴�. ��ϵ� �ؽ�Ʈ�� ���ۿ� ���ϴ� ��ŭ ����� �� �ִ�; ��ġ�� ������ �� ��ġ�� ���ƿ��� ���� ����� �� �ִ�. ���簢�� �����鵵 ��Ϻο� ��ϵ� �� �ִ�. �� ��Ϻε��� �� ���ڷ� �� �̸��� ������ �ִ�. ������ ��Ϻδ� �ϳ��� �ؽ�Ʈ�� ��ġ, Ȥ�� ���簢�� ������ ������ �� �ִ�. ������, �� ��Ϻο��� �� ������ �Ѱ����� ������ �� �ִ�. ��Ϻο� ������ ����ϵ��� �װ͵��� ��Ϻο� �ٸ����� ������ ������ �����ȴ�.
������ Ž���� ã�� ���ڿ��� ù��° ���ڸ� ġ�� ���۵ȴ�. ã�� ���ڿ��� �Է��Կ����� �̸����� ���ڿ��� �������� ���� �����ش�. ���� ã���� �ϴ� ��ġ�� �Ǻ��ϱ ����� ���ڿ��� �Է��ߴٸ�, ���� �� �ִ�.
���� Ž�����ڿ��� �Է��ϴµ� �Ǽ��� �ߴٸ�, DELŰ�� �̿��Ͽ� ���ڵ��� ���� �� �ִ�. ���� ���ϴ� ��ġ�� �����ߴٸ� ESC�� ������ Ž���� ���߰� �� ��ġ�� �� �� �ִ�. Ž���� ������� ������ �Է��� ��쿡�� �� ��ġ�� Ŀ���� ���߰� �� ������ �����Ѵ�. ���� ��� `C-a'�� �Է��ϸ� Ŀ���� �ִ� ���� ������ �̵��Ѵ�. ���� ���� ������ �����Է��̳�, DEL, ESC �� Ž���� �ǹ̰� �ִ� Ư���� ���� ����(`C-q', `C-w', `C-r', `C-s', `C-y' ��)�� ��� ESC�� ������ ���� �ʼ����̴�.
������ ã���� �ϴ� ���ڿ��� �������� �����ϰ� ó���� ã�� ��ġ�� ���ϴ� ��ġ�� �ƴ� ���, `C-s'�� �ѹ� �� ������ ������ �� ���ڿ��� �ִ� ��ġ�� �̵��� �� �ִ�. ���� `C-s'�� �ʹ� ������ ���ϴ� ��ġ�� �������� ��쿡�� DEL�� `C-s'���� ����� �� �ִ�. Ž���� ������, ���� ���ڿ��� �� ã�� ���� ��쿡�� `C-s C-s'�� ������ �ȴ�. ù��° `C-s'�� ������ Ž���� �����ϴ� ���̰�, �ι�° `C-s'�� ``�� Ž��''�� �ǹ��Ѵ�. ���� Ž�����ڿ��� ã�� �� ���� ���, ���ڿ����� `Failing I-Search' ��� ��������. Ŀ���� Ž�� ���� ������ ��ġ�� �ӹ��� �ִ´�. ����`FOOT'�� ã�µ� `FOOT'�� ���� `FOOL'�� �ִٸ�, Ŀ���� `FOOL'�� FOO�ڿ� ��ġ�Ѵ�. �� ��쿡 �� �� �ִ� ���� ���������� �ִ�. ���� ã���� �ϴ� ���ڿ��� �߸� �Է��ߴٸ� Ž�����ڿ��� ������ �� �ִ�. �ƴϸ� �� ��ġ���� Ž���� ���߱� ���� ESC�� ��Ÿ ������ ���� �� �ִ�. �ƴϸ�, `C-g'�� ������ ã�� �� ���� ���ڵ��� ���� �� �ִ�. ���� �������� `FOOT'�� `T'�� �ȴ�. ���� Ž�����ڿ��� `FOO'�� �ȴ�. ���� `C-g'�� �ι�° ������ Ž���� ��Ұ� �ǰ�, Ŀ���� Ž���� �����ߴ� ��ġ�� �ǵ��ư���. Ž���� �������� ��쿡 `C-s'�� ������, ������ ���ۿ������� �ٽ� Ž���� �����Ѵ�. `C-r'�� ��� ������ �������� Ž�����ϴµ� ������ ��쿡 `C-r'�� ������ ������ ������ ���� �ٽ� Ž���� �����Ѵ�. �̰��� ``wrapping aroun'' ��� �Ҹ����, `Wrapped'��� ǥ�õȴ�. `C-s', DEL, ESC ���� ����ڸ� Ž���Ϸ��� `C-q'�� ���� �ľ��Ѵ�. �̰��� ������ ���ڸ� Ž�����ڿ��� �Ϻη� �����ϰ� �����. Ž���� �������� �Ϸ���, `C-r'�� ������ �ȴ�. ���������� Ž�������� �ٽ� �������� �Ϸ���, `C-s'�� ������ �ȴ�. ó������ �������� Ž���� �Ϸ��� ó���� `C-r'�� ������ Ž���� ������ �� �ִ�. ������ Ž������ `C-y' �� `C-w' �� ������ �ؽ�Ʈ�� Ž�����ڿ��� ��ƿ��µ� ���ȴ�. `C-w'�� ���� ����Ʈ ������ �ܾ�κ��� Ž�����ڿ��� ������ �´�. `C-y'�� ������ �ܾ� ��ü�� Ž�����ڿ��� ������ �´�. (���������� �� ���� ���� ���� �غ��� �ȴ�.) ������ Ž������ ���Ǵ� Ư�����ڵ��� ������ �������� �����ؼ� �ٲ� ���ִ�.
(* ���� ���� �ٲٴ� ���� : `M-x set-variable')
Emacs �� ���� Ž�� ���ڿ��� ��� �Է��� �ڿ� Ž���� �����ϴ� �������� �������� Ž������� �����Ѵ�.
�ܾ� Ž���� �ܾ���� ������ �ܾ���� ��� �и��Ǿ� �ִ°��� ������� Ž���� �Ѵ�. �� �� ��Ȯ�� ���ϸ�, �ܾ���� �ϳ��� ����(space)�� �̿��Ͽ� �и��ϸ�, �ܾ� ���̿� �������� ������ �ְų�, ����(newline)�� �ְų� ��ħǥ�� �ְų� �� ã�� �ش�.
�������� Ž���̳� �ܾ� Ž���� ���� `search-forward' �� `search-backward', `word-search- forward' �� `word-search-backward' �� �����Ǿ� �ִ�. �̵��� ���ο� Ű�� ���ε� �� ���� ������, ������ Ž���� �̵��� �θ� �� �ֵ��� ��������ֱ� ������ ���� ���� Ű ������ Emacs ���� �̵��� �θ��� �Ϲ����� ����̴�.
�̰��� ���������� �� ���� �ְ�, �� ���������� �� ���� �ִ�. ������ Ž���� `C-M-s' (`isearch-forward-regexp') �� ������ �ҷ�����. �� ������ `C-s' ó�� ���Խ��� ���������� �Ƶ�������, ��Ȯ�� ��ġ�ϴ� ǥ���� ã�� ���� �ƴ϶�, Ž�� ���ڿ��� ���Խ����� �����Ѵ�. `isearch-backward-regexp' ���ɵ� ����������, � Ű�� ���ε� �Ǿ� ������ �ʴ�.
�Ϲ����� ������ Ž������ ����Ǵ� ����ڵ��� ����� ����ȴ�. �������� ���Խ� Ž���� `re-search-forward' �� `re-search-backward' �Լ��� �����Ǿ� �ִ�. �� �Լ����� `M-x'�� �̿��ϰų�, � Ű�� ���ε��ϰų� �ϴ� ������� �θ� �� �ִ�. �ƴϸ�, `C-M-s ESC'�� �ҷ��� �ȴ�.
���Խ��� �ణ�� Ư���� ��ȣ�� ������ �ְ� �������� �Ϲ� ���ڷ� ��ȴ�. �Ϲ� ���ڴ� �ܼ��� �� ���ڿ� ��ġ ���θ� �����ϴ� ������ ���Խ��̴�. Ư�� ���ڴ� `$', `^', `.', `*', `+', `?', `[', `]' , `\' �̴�. ���ԽĿ� ��Ÿ���� �ٸ� ���ڴ�, `\'�� �տ� �ִ� ��츦 �����ϰ��� �Ϲ� �����̴�.
��: Ư�����ڵ��� ���� Ư���� �ǹ̰� �ǹ̰� ���� ��ġ������ �Ϲ� ���ڷ� ��ȴ�. ����, `*foo' �� `*'�� �Ϲ� ���ڷ� ��ȴ�. ���� �̷��� ����� �̿��ϴ� ���� ���� ������ �ƴϴ�.
`\'���� ǥ�� ������ ����.
������ Lisp �������� ���� ������ ���Խ��� �� ���̴�. Lisp �������� ���ڿ��� ū����ǥ(``)�� �����ؼ� ū����ǥ�� ������. `\'''�� ���Խ��� �κ����ν��� ū����ǥ��, `\\'�� ���Խ��� �κ����ν��� ����������, `\t'�� �ܹ��ڸ�, `\n'�� ���ٹ��ڸ� �ǹ��Ѵ�.
"[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*"
�̰��� �κ����� �������� �ִ�: `.'(��ħǥ)��, `?', `!'�� ��ġ�ϴ� ��������; `]', `"'(ū����ǥ), `''(��������ǥ), `)' ���������� ����̰� �ݺ��Ǵ� �κ�; ���� ���̰ų� ���̰ų� �ΰ��� �����̽��� ��ġ�ϴ� �κ�; �����̽��� ��, ���ٵ��� ȭ��Ʈ�����̽����ڰ� ����̰� �ݺ��Ǵ� �κ�. ���� ���� Emacs Lisp ���α����� ���Խ��� ��� ����� ���̰��� ���� ���̰�, `re-search-forward' ���� ������ ���Ͽ� ���Խ��� �Է��� ��쿡�� �� �ٸ��� ǥ���ؾ��Ѵ�.
[.?!][]"')]*\($\|^Q^I\| \)[ ^Q^I^Q^J]* (`^'�� CTRLŰ�� ������� �ǹ��̴�.)