2009-06-26 4 views
2

요약 모드에서 gnus-summary-reply-with-original 또는 Gnus-summary-followup-with-original의 경우 R 키를 누르면 원래 서명 텍스트 아래에 서명이 삽입됩니다.서명이있는 Gnus 회신

원래 메시지의 인용문 앞에 메시지의 맨 위에 내 서명을 삽입하도록 gnus에 지시하려면 어떻게해야합니까?

답변

3
그 GNUS에 내장하는 옵션이 아니다 것처럼 당신과 같이 내장 함수 중 하나를 다시 정의 그래서 그것은, (v5.10.8 현재) 보이는

:

(eval-after-load "gnus-msg" 
    (defun gnus-inews-yank-articles (articles) 
    (let (beg article yank-string) 
     (goto-char (point-max))   ; put articles after signature 
     (insert "\n")      ; and one extra newline 
             ; was this (message-goto-body) 
     (while (setq article (pop articles)) 
     (when (listp article) 
      (setq yank-string (nth 1 article) 
       article (nth 0 article))) 
     (save-window-excursion 
      (set-buffer gnus-summary-buffer) 
      (gnus-summary-select-article nil nil nil article) 
      (gnus-summary-remove-process-mark article)) 
     (gnus-copy-article-buffer nil yank-string) 
     (let ((message-reply-buffer gnus-article-copy) 
       (message-reply-headers 
       ;; The headers are decoded. 
       (with-current-buffer gnus-article-copy 
       (save-restriction 
        (nnheader-narrow-to-headers) 
        (nnheader-parse-naked-head))))) 
      (message-yank-original) 
      (setq beg (or beg (mark t)))) 
     (when articles 
      (insert "\n"))) 
     (push-mark) 
     (goto-char beg)))) 

내가 새로운 정의를 감싸 적절한 시간에 정의되도록 eval-after-load 형식의 'gnus-inews-yank-articles입니다. 분명히, 사용자 정의를 허용하려면 변수를 작성하고 적절한 if 문을 작성하십시오.

2

the development version of Gnus (및 GNU Emacs)에서 변수 message-cite-reply-position을 '위'로 설정할 수 있습니다.

당신은 이미 TOFU에 대해 모두 알고있는 것 같아요. 왜 그렇게 생각하지 않겠습니까?

+0

서명 위치가 변경되지 않습니다 ... – xuhdev

+0

@xuhdev 시도 할 때 사용합니다. – asjo

+0

아직 작동 중입니까? 어느 Emacs 버전을 사용하고 있습니까? 변수를 참조하지만 서명과 관련된 것을 찾을 수 없습니다 (Emacs 25.1). – xuhdev

관련 문제