Emacs Ұ.

۾:  <hjlee@wisenet.co.kr>

1. Emacs ?


 ó Emacs    ǽǿ Cα׷ ¥ Ҷϴ. ó 
vi   DOS    Ϳ  ޶ ָ ԰ִ 
 ׳   Ϳ ϰ ȿ Ī   ͸ Ұ 
޾Ҵ Դϴ. ó Emacs    Emacs      
Ŵ  ϸ  ϴ.     ڸ ϰ  
ϰ ϴ  ɸ ߾ϴ.  Linux  ġϰ   ͼ 
 ,  Emacs      ϴ. ׸Ͽ  
å "Learning GNU Emacs" åԴϴ.  å 鼭    
 Emacs    ־ ڴٶ  ߽ϴ. ׸, ѱ۷ 
 ΰ   ϴ.    Emacs  ó   
  ڽſԵ  Ǳ⸦ ٶϴ.

 ڴ   Emacs    𸣴    ̴. , 
Linux ڵ  鵵 ߰  ̴.    "Learning GNU Emacs" 
 å  ( κ) .   źΰ  ٸ, 
  б⺸ٴ  å 缭   ξ  Ǹ Ѵ. Ȥ, 
 źΰ ִ,  س  ̴.  
 
1. Emacs Ұ

 GNU Emacs ó, UNIX 迡  θ Ǵ text  
ϳ̴. װ  ̻ ʰ, ο ͵ ƴϴ. ׷ ұϰ 
   ͸ ϴ  װ ſ  tool̶ 
ϱ  ̴.    ߰ ,  ٷ 
͵鿡     , ڴ   help 
    ִٴ   ź . ` help ѱ۷ 
Ǿ ־ų  ѱ е   ɷ  ־ٸ ۿ 
˾ ٵ...  help ѱȭ Ǿ ٸ   źΰ  
 UNIX ڵ, α׷ӵ,  , ڵ,   ٱ 
 ٵ...'

 Emacs  ٵ,   Ȯ强 ִٰ   ִ.  
׷ ʴ ׷   ִ. ڴ  Emacs  ˾ư 
  Ǹ Ѵ.

<ȭϰ (buffers) >

 (⼭ ۴ 츮 ϸ   ϰ ٸٴ  ־.)
 ͵  ȭ  ʴ´.  ȭ  ӽ ۿ 
ְ װ Ѵ. ϶.  ۴ ȭϰ  ϰ   
ȭ 纻 ϴ ӽ ۾ ̴.

 ȭó, ۵ ̸  ִ.  ̸ Ϲ ϰ ִ 
ȭ ̸ . ⿡  ܰ ִ. ׷ ⼭ ߿  
۴ ȭ  ̴. ۸ ϰ     ȭϿ 
  ִ.     ʴ´ٸ ȭ  ʰ Emacs 
   ִ. 

<>
 Emacs  پ 带  ִ. ̰ ǹϴ  ϰ ϴ 
۾  ˸° ൿѴٴ ̴.  Emacs  ٸ۾  ޸ 
ൿϴ Ͱ ȴ.  ָ(majar modes) θ(minor modes) 
ִ. ۴ ѹ Ѱ ָ忡   ִ.

                                    

Fundamantal mode                Ϲ , Ư  . 
Text mode                        Է .
Indented text mode               ִ  Է.
Picture mode                      ׸ ׸ .
C mode                          C α׷ ۼ .
FORTRAN mode                    FORTRAN α׷ ۼ .
Emacs LISP mode                 Emacs LISP Լ  .
LISP mode                       LISP α׷ ۼ .
LISP interaction mode                   LISP ǥ ϰ ۼ .
nroff mode                      nroff ȭ  .
TeX mode                        TeX ȭ  .
LaTeX mode      

θ Emacs ൿ Ư  ߰Ѵ.

                                    
Abbrev mode                       ϰ ش.
Fill mode                               word wrap ϰ ش.
Overwrite mode                  ڸ ϴ´ Ѵ.
Auto-save mode                  ȭ  ŭ  ڵѴ.
  ...

 , Ư   尡 ʿϴٸ,   带 α׷  
ִ. (Emacs ൿϴ    ִ.) ,  带 ʿϴ 
 ٸ,          𸥴.  
(Ϸʷ ڴ c++-mode ؼ  ִ.)

2. ϴ Ẹ

<Emacs >

 Emacs Ϸ emacs  ġ ڿ ϰϴ ȭ ̸ 
ġȴ.    ʴ ȭ̸ ϸ Emacs ο Ŀ 
"point" Ǵ "dot" Ҹ. Emacs ¶    ܾ 
Ѵ.
   ޸(ǥ vi) Emacs ڸ ϰ   
带  ʴ´.  ȭ  Ʒ "̴Ϲ" ǰ Ʒ 
ι°    ǥ ش.   "" ̶ Ҹ.  
 ʿ ΰ ǥ(**) ִٸ, ۰  Ǿٴ  Ÿ ش. 
( ġ %%  б   Ÿ.) Emacs:ڿ (Ȥ 
ȭ) ̸ ´.  ȣ ȿ  尡 ,  ڿ ȭ鿡 ̴ 
κ ü  ǥ ش.  ó  'Top',   
'Bot' ׷  쿡 % ǥ ְ,   ü ȭ鿡  
쿡 'ALL'̶ ǥ ش.

 Emacs ڰ Ǹ,   ۸    ۾   
 ̴. ̷ 쿡  ۴    ȴ.

<Emacs ɾ>

 Emacs  õ ƴϸ 鰳 ɾ  ִ.  ڵ ϰ 
ְ binding ̷  ɾ ̳,  Ű binding ̷ 
ִ 𸣴 쿡 M-x "ɾ ̸" RETURN  ġ ȴ.
 
 Emacs  ڰ ڱ⸸ binding ų,  binding ٲ  
ֵ ش. ڼ  ``Learning GNU Emacs'' 9 ϰų, Emacs 
Help ϱ ٶ. (ƴϸ,   Ȥ   ٷ  
𸣹Ƿ   ٸ ȴ.)

< ⺻ ɵ >

    ⺻ ɾ鿡  ˾ƺ.  ⼭ ʹ ɾ  
 ϰ 漳 ʿ κ ڿ ϴ  ϰڴ.  
ɾ  ɾ Ű  ϰ   ɾ ̸  Ҵ.

C-x C-f (find-file) :  ̸ ۸ , ȭ о´.  ȭ 
  ο ȭ . (ٸ ͵ 'file open'  )
C-x C-v (find-alternate-file) :   ȭ  ٸ ȭ о´. 
߸ ȭ о  Ѵ.

  help -
     Emacs help ڿ ȭ Ͽ  ٸ 츦 ų, 
̴Ϲ۸ ϰų, δ ü 츦 ϱ⵵ Ѵ. ̴ ۿ 
   ߿   ֹǷ, ̴    
 ͵ Emacs      ̴.   C-h  . ? 
  Ѵ. ? . C-h ѹ   ڼ  ְڴٰ 
Ѵ. .  ´. ׸ ȭ鿡    space   
ȭ ڷѵȴٰ ˷ش. (C-h     .) t 
 TURTORIAL  .  TURTORIAL  ̿ؼ Emacs θ 
غ.

     C-h f .
    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'  ϸ ȴ.

`C-q'   Է¹ڸ о Ѵ. ƴϸ Ե  ڵ带 3ڸ 
8 Է  ִ.

  C-g ڸ ԷϷ, `C-q C-g' Ȥ `C-q 0 0 7'  ġ ȴ.

̵ 

`C-f'    ĭ ̵. (`forward-char')
`C-b'  ڷ ĭ ̵. (`backward-char')
`C-p'   ٷ ̵.  (`previous-line')
`C-n'   ٷ ̵.   ̸ ο  . (`next-line')
`M-f'   ܾ  ̵. (`forward-word')
`M-b'   ܾ ڷ ̵. (`backward-word')
`C-a'    ó ̵. (`beginning-of-line')
`C-e'     ڷ ̵. (`end-of-line')
`M-a'     ڷ ̵. (`backward-sentence')
`M-e'      ̵. (`forward-sentence')
`M-['     ڷ ̵. (`backward-paragraph')
`M-]'      ̵. (`forward-paragraph')
`C-v'    ȭ  ̵. (`scroll-up')
`M-v'   ȭ Ʒ ̵. (`scroll-down')
`C-x ['    ̵. (`backward-page')
`C-x ]'   Ʒ ̵. (`forward-page')
`M->'    ̵. (`end-of-buffer')
`M-<'    ̵. (`begging-of-buffer')
`C-l'     ȭ ߾ӿ  ϰ ȭ ٽñ׸. (`recenter') 
 μ ȭ̳    °  ٿ Ʈ ġ 
ش. (0  ).  μ  ȭ  Ʒ  . (-1  
 Ʒ)
`M-r'  point  ȭ̳   ġ ʳ ´. ȭ  
 ʴ´. (`move-to-window-line')  μ ȭ̳   
 ° ٿ Ʈ ġ ش. (0  ).  μ 
ȭ  Ʒ  . (-1   Ʒ)
`C-t'   Ŀ    ڸ ٲ۴. (`transpose-chars').
`M-x goto-char'   N  о Ŀ N ° ڷ ű. 1  
ġ ̴.
`M-x goto-line'    N  о Ŀ N ° ٷ ű. 1   
 ̴.

 μ

 ,   鼭 ǽ غ ٶ. ׳ б⸸ ϴ° ٴ ѹ 
غ  ξ    ִ ̴ϱ.

 ` `M-r' (`move-to-window-line')    μ ޾Ƶδٴ 
 ִµ, ɿ   μ ٱ?'
  
`C-u'  ɿ  μ ش.(Ȥ   ݺѴ.)(`universal- 
argument').  C-u ڿ ̳ʽ ȣ(-) ڰ   μ .  C-u 
ڿ ̳ʽ ȣ(-) ڰ   ⺻ 4̴.  ̳ʽ ȣ 
  C-u ݺؼ    μ 4 Ѵ.

   `C-u C-u C-u a'  `a'  4*4*4  . ׸, `C-u 30 
C-n'  30 Ʒ `M-<n>' <n>   μ ش. 
(Ȥ ݺѴ.)

   `M-3 M-5 C-f'   35  ̵Ѵ.

 

`DEL'  Ŀ ٷ  ڸ . (`delete-backward-char').
`C-d'   Ŀ  ڸ . (`delete-char').
`C-k'     . (`kill-line').
`M-d'   Ŀ   ܾ .(`kill-word').
`M-DEL'  Ŀ տ  ܾ .(`backward-kill-word').
`M-k'  Ŀκ 峡  .(`kill-sentence')
`C-x DEL'   Ŀκ   ۱ . 
ȭ (Undoing Changes)

 `Emacs    ȭ  (8000 ) ϴ  
ϰ شٰ?  ۿ  Ұ  ȴ. Ϲ  
 ϳ   , `query-replace' ó    
ɵ ְ  ϵǴ 쵵 ִ.'

`C-x u'  Ѵܰ Ҹ Ѵ. (`undo').
`C-_'      .
 
  `C-_' Ǵ `C-x u'  ϵ Ѱ ,    
ȭ Ѵ.  ϵ    ޽ .    
ƴ  ɵ    ´.     ɵ 
ȭ νĵǾ  ɿ    ִ. Ҹ Ϸ, `C-f' 
      ȴ. (   ˰ ôٸ 
Emacs  info  ϼ.)

̴Ϲ

 ȭ  Ʒ "minibuffer window" Ȥ "echo area"  Ҹ.  
 ڿ  ( ޽) ϰų, ȭϸ, ۸, 
Lisp Լ,   μ Ѱܹ޴µ ȴ.  ̴Ϲ۴ 
Ʈ μ ȣ ȿ ϱ⵵ Ѵ.     Ʈ μ ̿Ϸ 
׳ RETURN   ȴ. ̴Ϲ۸ ϴ  ϴ   
`C-g'  ̴.  ̰, ̴Ϲ۸  ʴ ̶ 
Ű   쿡   ִ. 

`C-g'  quit ȣ . (`keyboard-quit').

 ̴Ϲ۸ ϴ  ݺϴ  -

`C-x ESC'   ֱ ̴Ϲ  ٽ Ѵ.(`repeat-complex-command').
`M-p'  `C-x ESC' ¿  ϵ  ̵Ѵ. 
(`previous-complex-command').
`M-n'  `C-x ESC' ¿ ( ֱ) ϵ  ̵Ѵ.
         (`next-complex-command').
`M-x list-command-history'    ش. `C-x ESC'  ݺ  
ִ   ش.  ֱ  տ ´.

 

 Emacs     `C-h'  Ѵ. h  help  ܾ 
Դ.

`C-h a STRING RET'  ̸ STRING  ϴ   ش.
                        (`command-apropos').
`C-h b'   ȿִ Ű "binding"   ش.  (`describe-bindings').
`C-h c KEY'  KEY  Ű  ̸ ǥ ش. 
(`describe-key-briefly'). `c'  `character'  Ÿ.  
`C-h f FUNCTION RET'    FUNCTION ̶ ̸ Lisp Լ   
ش.(`describe-function').  Lisp Լ ̹Ƿ ̸  
 ִ.
`C-h i'    Info  Ѵ. (`info').
`C-h k KEY'  KEY  Ű  ̸  ش. 
(`describe-key').
`C-h l'   ģ  100 ڸ ǥش. (`view-lossage').
`C-h m'   ָ(major mode)   ش.  (`describe-mode').
`C-h n'  Emacs  ȭ ˷ش. (`view-emacs-news').
`C-h s'   syntax table   װ ǹ̸ ش. 
(`describe-syntax').
`C-h t'   Emacs tutorial  ش. (`help-with-tutorial').
`C-h v VAR RET'   Lisp  VAR    ش. (`describe-variable').
`C-h w COMMAND RET'  Ű COMMAND  Ű ˷ش. 
(`where-is').

 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)
      )
  ())
;
; 
;


ũ (The Mark and the Region)

 Emacs    Ư ӵ κп Ͽ   ִ. ̷ 
 Ͽ κ ϱ    "mark"  ϰ, Ʈ 
ٸ   Űܾ Ѵ. Ʈ ũ  κ "region" ̶ Ѵ. 
( ""̶ ϰڴ.)
 ũ ѹ  Ŀ, װ ٸ ġ ٽ   
ִ´. ũ ؽƮ Էµǰų     ڿ  ġ 
Ǿ ִ´.  Emacs ۴  ڽ ũ  ִ.
 `C-y' (`yank')  `M-x insert-buffer'   ؽƮ ϴ  
ɵ ũ ԵǴ ؽƮ   ġŰ ٸ   Ʈ 
ġŲ. ,  ٷ Ե ؽƮ ȴ.  ϴ Ͱ 
 ũ ǵư ġ ϴ´ ϴ. ̰  ϰϱ 
 Emacs  16  ũ ġ `mark ring'  Ѵ.

`C-SPC'     Ʈ ִ ġ ũ Ѵ. (`set-mark-command').
`C-@'       .
`C-x C-x'  ũ Ʈ ٲ۴. (`exchange-point-and-mark'). ,  
Ʈ ũ ǰ ũ ִ ġ Ʈ ̵Ѵ.

  ɵ  ϴ    .

`M-@'   ܾ  ũ Ѵ. (`mark-word').  ɰ   
Ʈ ̵Ű ʴ´.
`C-M-@'    Lisp ǥ  ũ Ѵ. (`mark-sexp').
`M-h'       . (`mark-paragraph').
`C-M-h'     Lisp defun   . (`mark-defun').
`C-x h'      ü  . (`mark-whole-buffer').
`C-x C-p'      page   .  (`mark-page').

  ܿ `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  ϴ 
ִ ũ  Ÿ.

Deletion and Killing

 ۷κ ؽƮ  κ   ٲ  ٽ ų 
űų ϱ  װ͵ Ѵ. ̷ ɵ "kill" ̶ 
˷ִ.  ؽƮ  ʴ ɵ "delete" ̶ 
˷ִ. ( kill  , delete  Ŷ ϰڴ.)    
ڸ  ̳, space  newline   ɵ Եȴ. 
Ǽ  , Ȥ  쿡 `C-x u' (`undo')  ؼ 
  ִ.



`C-d'     Ŀ  ڸ . (`delete-char').
`DEL'     Ŀ ٷ  ڸ . (`delete-backward-char').
`M-\'     Ʈ  space  tab  . 
(`delete-horizontal-space').
`M-SPC'  Ʈ  space  tab  space ϳ  . 
(`just-one-space').
`C-x C-o'         ٵ . (`delete-blank-lines').
`M-^'   newline   indentation     ϳ ģ. 
(`delete -indentation').

 

`C-k'       κ̳   . (`kill-line').
`C-k'   μ ָ  Ѳ .   μ ָ 
Ʈ  .  0 μ ָ Ʈ  ۱ .
`C-w'     (Ʈ ũ)  . (`kill-region').
`M-d'     ܾ . (`kill-word').
`M-DEL'     ܾ ޹ . (`backward-kill-word').
`C-x DEL'     ڷ  ۱ . (`backward-kill-sentence').
`M-k'       . (`kill-sentence').
`M-z CHAR'     CHAR    ġ . (`zap-to-char').

̱ (Yanking)

`C-y'       ؽƮ Ѵ. (`yank').
`M-y'       ؽƮ ٽ Ѵ. (`yank-pop').
`M-w'        ʰ   ؽƮ .
           (`copy-region-as-kill').
`C-M-w'        ɿ  Ǵ ؽƮ   
ؽƮ δ. (`append-next-kill').

 `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' .


簢

 簢  ٷ ɵ 캸. 簢  ϴ  
  ϴ Ͱ ϴ.   Ʈ,   ũ ġ 
Ű ȴ.

`M-x delete-rectangle'    簢  .
`M-x kill-rectangle'      ɰ ϴ. ׷,   "last 
killed rectangle"  Ѵ.
`M-x yank-rectangle'    "last killed rectangle" װ    Ʈ 
ġ  Ѵ.
`M-x open-rectangle'  簢   ä.   
簢   з.
`M-x clear-rectangle'    簢   ̽ ä. 

Ϻ(Registers)

 Emacs "Ϻ"  ؽƮ ġ    ϴ ̴. ϵ 
ؽƮ ۿ ϴ ŭ   ִ; ġ   ġ ƿ 
   ִ. 簢 鵵 Ϻο ϵ  ִ.  Ϻε 
 ڷ  ̸  ִ.  Ϻδ ϳ ؽƮ ġ, Ȥ 
簢    ִ. ,  Ϻο   Ѱ 
  ִ. Ϻο  ϵ װ͵ Ϻο ٸ  
 ȴ. 

`M-x view-register RET R'     Ϻ R    ش.
`C-x / R'    Ʈ ġ Ϻ R  Ѵ. (`point-to-register')
`C-x j R'     Ϻ R   ġ ̵Ѵ. (`register-to-point').
`C-x x R'      Ϻ R  Ѵ. (`copy-to-register').
`C-x r R'   簢  Ϻ R  Ѵ. 
(`copy-region-to-rectangle').  μ ־ ϰ .    
`C-x g R'   Ϻ R   Ѵ. (`insert-register'). 
 
 Ž(Incremental Search)

  Ž ã ڿ ù° ڸ ġ ۵ȴ. ã ڿ 
ԷԿ ̸ ڿ   ش.   ã ϴ 
ġ Ǻϱ⿡  ڿ Էߴٸ,   ִ.

`C-s'      Ž (`isearch-forward').
`C-r'      Ž (`isearch-backward').

  Žڿ Էϴµ Ǽ ߴٸ, 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'  ܾ ü Žڿ 
 ´. (  𸣰   غ ȴ.)  Ž 
Ǵ Ưڵ   ؼ ٲ ִ.
 
`search-delete-char'      ڸ  Ű ( DEL).
`search-exit-char'      Ž  Ű ( ESC).
`search-quote-char'    Ư ڸ Ž ڿ Խų  ϴ Ű 
( `C-q').
`search-repeat-char'     Ž  ݺ ( `C-s').
`search-reverse-char'    Ž  ݺ ( `C-r').
`search-yank-line-char'      Žڿ  ( `C-y').
`search-yank-word-char'   ܾ Žڿ  (normally `C-w').

(*   ٲٴ  : `M-x set-variable')

 Ž(Nonincremental Search)

 Emacs   Ž ڿ  Է ڿ Ž ϴ 
 Ž Ѵ.

`C-s ESC STRING RET'     STRING  ŽѴ.
`C-r ESC STRING RET'     STRING   ŽѴ.


ܾ Ž(Word Search)

 ܾ Ž ܾ  ܾ  иǾ ִ°  
Ž Ѵ.    Ȯ ϸ, ܾ ϳ (space) ̿Ͽ 
иϸ, ܾ ̿   ְų, (newline) ְų ħǥ 
ְų  ã ش.

`C-s ESC C-w WORDS RET'     WORDS  ŽѴ. ι ̸ Ѵ.
`C-r ESC C-w WORDS RET'     WORDS   ŽѴ. ι ̸ 
Ѵ.

  Ž̳ ܾ Ž  `search-forward'  `search-backward', 
`word-search- forward'  `word-search-backward'  Ǿ ִ. ̵ 
ο Ű ε   ,  Ž ̵ θ  ֵ 
ֱ    Ű  Emacs  ̵ θ Ϲ 
̴.

Խ Ž(Regular Expression Search)

 ̰    ְ,     ִ.  Ž 
`C-M-s' (`isearch-forward-regexp')   ҷ.   `C-s' ó 
Խ  ޾Ƶ, Ȯ ġϴ ǥ ã  ƴ϶, 
Ž ڿ Խ Ѵ. `isearch-backward-regexp' ɵ 
,  Ű ε Ǿ  ʴ.

 Ϲ  Ž Ǵ ڵ ⿡ ȴ.   
Խ Ž `re-search-forward'  `re-search-backward' Լ Ǿ 
ִ.  Լ `M-x' ̿ϰų,  Ű εϰų ϴ  
θ  ִ. ƴϸ, `C-M-s ESC' ҷ ȴ.

Խ (Syntax of Regular Expressions)

 Խ ణ Ư ȣ  ְ  Ϲ ڷ ޵ȴ. 
Ϲ ڴ ܼ  ڿ ġ θ ϴ  Խ̴. Ư 
ڴ `$', `^', `.', `*', `+', `?', `[', `]' , `\' ̴. ԽĿ Ÿ 
ٸ ڴ, `\' տ ִ 츦 ϰ Ϲ ̴.

`. (Period)'      (newline) ϰ  ϰ ġѴ. 
`a.b'  `a' ؼ `b'    ڿ ġѴ.
`*'       üδ ǹ̰ . ̰ ռ  ̰   
ִٴ  ̴̹. `fo*'  `*' `o' ȴ. ,  
`o' ڵ `f' ġѴ. `o'  ִ 쵵 ȴ: `fo*'  
`f' ġѴ. `*'  ׻   ߿    Ŀ ȴ. 
, `fo*'  `fo'  ݺ ƴ϶ `o'  ݺ ǹѴ.
`+'     ̹ڷ ռ   ѹ ; Ѵٴ  ϰ 
`*'  ǹ̴.  `ca+r'  `car' `caaaar' ġ `cr' 
ġ ʴ´. ׷, `ca*r'   ڿ  ġѴ.
`?'     ռ  ѹ ų  ȳ´ٴ  ǹϴ 
̴̹.  `ca?r'  `car'  `cr' ϰ ġѴ. 
`[ ... ]'     `['  `]'  "ڱ(character set)"  ǹѴ. 
 쿡  ȣ  ڵ ڱ ̷. `[ad]' `a'  `d' 
ġѴ. `[ad]*' `a' `d'θ ̷  ڿ ġѴ. `c[ad]*r' 
 `cr', `car', `cdr', `caddaar'  ġѴ.  ڻ̿ `-' Ἥ 
ڱ Ե   Ÿ  ִ. , `[a-z]'  ҹڿ 
ġѴ.   ڿ Բ   ִ. `[a-z$%.]'   ҹڿ 
`$', `%',Ȥ, ħǥ ġѴ. ڱ ȿ  `]', '-', '^'  Ư 
ڴ ̻ Ư ǹ̸  ʴ´. `]' ڱ  Ű, 
ù° ڷ ԽѶ.  `[]a]' `]' `a' ġѴ. `-' 
ԽŰ, `-' ϴ  `---' . `^' ԽŰ, 
ڱ ù° ڷ .
`[^ ... ]'   `[^'  ؼ `]'  ڱ   ڿ 
ġѴ. , `[^a-z0-9A-Z]' ڿ ڰ ƴ   ڿ 
ġѴ. ùڰ ƴ `^' Ư ǹ̸  ʴ´. , `^'ٷ  
ڴ ù° ڷ ֵȴ. (`-' `]'   ġ Ư ǹ̸  
ʴ´.)  ڱ newline  ڱ ϳ Ī  newline  
ġ  ִ.
`^'     (line) ۰ ġϴ Ư ̴.  `^foo'  
ۿ  `foo' ġѴ.
`$'       ġѴ.  `xx*$' ϳ Ȥ  ̻ `x'  
  ġѴ.
`\'     ΰ    ִ. װ Ư (`\' ) 
ų(ԽĿ ԽŰų), ٸ Ư  Ѵ. , `\$' 
`$'ϰ ġϴ Խ̰ `\[' `[' ϰ ġϴ Խ̰ ϴ 
̴.

   : Ưڵ ׵ Ư ǹ̰ ǹ̰  ġ Ϲ ڷ 
޵ȴ. , `*foo'  `*' Ϲ ڷ ޵ȴ. ׷ ̷  
̿ϴ    ƴϴ. 

`\' ǥ

`\|'     `\|'   Ŀ  ġѴ.  , `foo\|bar'  `foo'  
`bar' ϰ ġѴ.  `\|'   ū Ŀ ȴ. `\( ... \)'  
׷  `\|' ׷   ִ. `\|'  뿡  full 
backtracking ɷ Ѵ.
`\( ... \)'      ׷(grouping)    뵵 Ѵ.
    1. `\|'  ϱ ؼ δ. ,`\(foo\|bar\)x' `foox' 
 `barx' ġѴ. 
    2.   `*' ̻翡 Ű  Ѵ. , 
`ba\(na\)*'  `banana'   `na' ̰ ݺǴ ڿ ġѴ.

    3    Ͽ Ѵ.

`\DIGIT'      `\( ... \)'  Ͽ,   ġϴ ؽƮ 
۰  ȴ. ,   ԽĿ `\'ڿ (DIGIT) 
ν DIGIT° `\( ... \)'  ġϴ ؽƮ ǹ̰ ȴ.   
ȣ  , ȩ `\( ... \)'  19 ȣ 
Ҵȴ. , `\(.\)\1'  `aa' ,`bb'  ڰ ΰ   
ġѴ.      
`\`'     ۰ ġѴ.
`\''      ġѴ.
`\b'   ܾ ̳  ġѴ.  `\bfoo\b'  и ܾν 
`foo' ġѴ. `\bballs?\b' и ܾν `ball'̳ `balls' 
ġѴ.
`\B'   ܾ ۰  ƴġ ġѴ.
`\<'   ܾ ۰ ġѴ.
`\>'   ܾ  ġѴ.
`\w'  matches any word-constituent character.  The editor syntax table 
determines which characters these are.
`\W'  matches any character that is not a word-constituent.
`\sCODE'  matches any character whose syntax is CODE.  CODE is a character 
which represents a syntax code: thus, `w' for word constituent, `-' for 
whitespace, `(' for open-parenthesis, etc.  *Ref Syntax::.
`\SCODE'   matches any character whose syntax is not CODE.

    Lisp    Խ  ̴. 
   Lisp  ڿ ūǥ(") ؼ ūǥ . `\"' 
Խ κν ūǥ, `\\' Խ κν , 
`\t' ܹڸ, `\n' ٹڸ ǹѴ.

     "[.?!][]\"')]*\\($\\|\t\\|  \\)[ \t\n]*"

 ̰ ׺κ  ִ: `.'(ħǥ), `?', `!' ġϴ 
; `]', `"'(ūǥ), `''(ǥ), `)'  ̰ 
ݺǴ κ;  ̰ų ̰ų ΰ ̽ ġϴ κ; 
̽ , ٵ ȭƮ̽ڰ ̰ ݺǴ κ.   
 Emacs Lisp α׷ Խ   ̰  ̰, 
`re-search-forward'   Ͽ Խ Է 쿡  ٸ 
ǥؾѴ.

     [.?!][]"')]*\($\|^Q^I\| \)[ ^Q^I^Q^J]*    (`^' CTRLŰ  
ǹ̴.)


: ̸ƽ 20.2 ̻󿡼 ѱ ϱ

۾: õ  ȣȸ ȸ ۻ

۲ ġ ؼ ϴ su   ,
"/usr/X11R6/lib/X11/app-defaults"  丮 ű.  ű⿡ 
"Emacs"  ȭ  ̴.   ȭ  ڵ ̸ƽ
ų α׷ д ȭ̴.   "Emacs" ȭ 

Emacs.Font:        *-fontset-16
Emacs.Fontset-0:   -*-*-medium-r-normal-*-12-*-*-*-*-*-fontset-12
Emacs.Fontset-1:   -*-*-medium-r-normal-*-14-*-*-*-*-*-fontset-14
Emacs.Fontset-2:   -*-*-medium-r-normal-*-16-*-*-*-*-*-fontset-16
Emacs.Fontset-3:   -*-*-medium-r-normal-*-18-*-*-*-*-*-fontset-18
Emacs.Fontset-4:   -*-*-medium-r-normal-*-20-*-*-*-*-*-fontset-24
Emacs.Fontset-5:   -*-*-medium-r-normal-*-24-*-*-*-*-*-fontset-24

    ̴. ù ̸ƽ  Ʈ ϴ
̰,  Ʒ 6 밡  Ʈµ 
̴.    ̸ƽ "fontset-16"  .   
ּó(!)   ϰ,   ģ.

Emacs.Font:     *-fontset-myeongjo
!Emacs.Font:    *-fontset-gothic

Emacs.Fontset-0:-*-*-medium-r-normal-*-16-*-*-*-*-*-fontset-myeongjo, \
          ascii:-*-*-bold-r-normal--16-*-*-*-*-*-iso8859*-*, \
 korean-ksc5601:-misc-myeongjo-medium-r-normal--16-*-*-*-*-*-ksc5601*-*

Emacs.Fontset-1:-*-*-medium-r-normal-*-16-*-*-*-*-*-fontset-gothic, \
          ascii:-*-*-bold-r-normal--16-*-*-*-*-*-iso8859*-*, \
 korean-ksc5601:-misc-gothic-medium-r-normal--16-*-*-*-*-*-ksc5601*-*

  ü ü Ʈ ,  ü ̸ƽ
 ̴.  , ڽ Ѵٸ Fontset  󸶵 
 ִ.    ڽ ϴ ü ѱƮ ٲٰ
 , ̸ƽ Ű ٷ ü ٲ ȴ.  ̶
  Ʈ   ̸ƽ   ʴ Ʈ
, Ȯ  .
