Emacs Dynamic Abbrev Expand
단어 및 주석 자동 입력 ¶Emacs는 어떤 버퍼의 내용을 편집할 때, 이 버퍼에 쓰인 모든 단어의 내용을, 그 단어의 첫 일부분만 입력해도 자동으로 입력해주는 기능이 있습니다. 실제로 코딩할 때 매우 유용한 기능 중의 하나입니다. M-x dabbrev-expand로 실행할 수 있으며, 대부분의 경우 M-/로 실행할 수 있습니다. (M-/가 뭔지 모르겠으면 EmacsGdbEtagsCscope 참고)
무슨 말인지 잘 이해가 안된다면 다음을 따라해보기 바랍니다. (주의! 아래 예제에서 [1]는 현재 커서의 위치를 나타냅니다. 따라서 실제로 입력하는 것이 아닙니다.)
$ emacs hello.h
#ifndef __hello_h
#define _[*]
#ifndef __hello_h
#define __hello_h[*]
#ifndef __hello_h
#define __hello_h /* ... */ #endif[*]
#ifndef __hello_h
#define __hello_h /* ... */ #endif /* [*] */
#ifndef __hello_h
#define __hello_h /* ... */ #endif /* _[*] */
#ifndef __hello_h
#define __hello_h /* ... */ #endif /* __hello_h[*] */ 자. 정말 대단하지 않습니까? 실제로 이 기능에 익숙해지면, 그 어떤 편집기를 쓰는 것보다도 빠르게 text를 입력할 수 있습니다.
끝 --
신성국
|
Mistakes are oft the stepping stones to failure. |











![[http]](/imgs/http.png)