Emacs For Editplus User
Editplus의 편집명령 ¶들여쓰기와 내어쓰기
;; 버퍼전체
;; delete horizontal space for the whole buffer
(defun delete-horizontal-space-buffer ()
"Deletes horizontal spaces at the end of every line in buffer."
(interactive)
(delete-horizontal-space-region (point-min) (point-max)))
;; 지정된 영역만
;; delete horizontal space in region
(defun delete-horizontal-space-region (beg-region end-region)
"Deletes horizontal spaces at the end of every line in the region.
BEG-REGION and END-REGION are args which specify the region
boundaries."
(interactive "*r")
(let ((end-region-mark (make-marker))
(save-point (point-marker)))
(set-marker end-region-mark end-region)
(goto-char beg-region)
(end-of-line)
(delete-horizontal-space)
(while (and (= (forward-line 1) 0)
(< (point) end-region-mark))
(end-of-line)
(delete-horizontal-space))
(goto-char save-point)
(set-marker end-region-mark nil)
(set-marker save-point nil)))
; FIXME emacs에서는 설정파일에 아래처럼 해준다고 해결 될만큼 TAB은 단순한것 같지 않다. :( (setq default-tab-width 4) Editplus에는 없지만 부가적으로 알아야 하는 Emacs 사용법 ¶윈도우
TIP.
M-x compare-windows 버퍼의 내용을 비교하고 처음으로 다른 부분을 보여준다. 만약 두개이상일 경우 현재 커서가
위치해 있는 윈도우와 시계 방향으로 다음 윈도우의 내용이 비교된다.
|
Your mind understands what you have been taught; your heart, what is true. |










