내 TEXTFILE은 다음과 같습니다"<" and ">"이 포함 된 단어를 반복하는 방법은 무엇입니까?
laudare
at
dominus
serere1
enim
그리고 내가 필요한 것은 :
(defun insert-angle-brackets-at-word()
"Insert angle brackets, i.e. <WORD>."
(interactive)
(goto-char (point-min))
(insert "\<")
(forward-word)
(insert "\>")
(forward-line 1))
:
<laudare>
<at>
<dominus>
<serere1>
<enim>
나는이 elisp 함수를 작성하려고 프로그래밍 초보자이야을
이 함수는 분명히 텍스트 파일의 첫 단어에만 "작동"합니다. 함수가 전체 텍스트 파일에서 어떻게 작동해야합니까?
작동합니다! 고맙습니다. –
@DanRu : "감사합니다"StackOverflow = upvote/accept :-) – choroba
쉽게 지역에서도 작동하도록 만들 수 있습니다. 그냥'(저장 제한 (좁은 지역 b e) ...)'로 감싸십시오. – jpkotta