From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: org-mime Date: Thu, 16 May 2013 18:37:27 +0800 Message-ID: <87bo8bmcrc.fsf@news.tumashu-localhost.org> References: <87ppwvzxzq.fsf@gmail.com> <87mwrypnra.fsf@gmail.com> <87ip2mq7xq.fsf@mat.ucm.es> <874ne4qdhd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcvZs-0006gH-RD for emacs-orgmode@gnu.org; Thu, 16 May 2013 06:38:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcvZl-00061q-Sh for emacs-orgmode@gnu.org; Thu, 16 May 2013 06:38:28 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:64935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcvZl-0005w2-7a for emacs-orgmode@gnu.org; Thu, 16 May 2013 06:38:21 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so2197173pdj.22 for ; Thu, 16 May 2013 03:38:19 -0700 (PDT) Received: from tumashu ([110.97.91.194]) by mx.google.com with ESMTPSA id yp2sm7069364pab.10.2013.05.16.03.38.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 May 2013 03:38:18 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UcvYt-0001Px-6t for emacs-orgmode@gnu.org; Thu, 16 May 2013 18:37:27 +0800 In-Reply-To: (Joseph Vidal-Rosset's message of "Thu, 16 May 2013 10:13:39 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Joseph Vidal-Rosset writes: > I thank you Eric and Uwe for your help. Many thanks also to all the > developers of emacs and org-mode.=20 > > In fact I just spent two days in configuring my emacs24 and gnus. > (Eric, I did not understand how worked your emacs24-starter-kit , > which is a nice tool indeed).=20 > > The last problem that I meet on my laptop is an error message : > smtp-server not defined , and , until now, I do not find how to fix it > :( > (if someone has a suggestion, thanks in advance).=20 > > My goal is to succeed to stay in emacs, for LaTeX as well as for > emails, but I have to work again. Every help on LaTeX and emails via > org-mode will be welcome.=20 Your setting may be same as my emacs configure ,I use=20 1. gnus + offlineimap + dovecot + gmail + org-contacts.el 2. org-mode + xelatex=20 May be my configure can help you=20 #+begin_src emacs-lisp ;;; eh-org.el --- Tumashu's org-mode configuation=20 ;; Copyright (c) 2012, Feng Shu ;; Author: Feng Shu ;; URL: https://github.com/tumashu/tumashu.github.com ;; Version: 0.0.2 ;; Package-Requires: ((org "7.8.00")) ;; This file is not part of GNU Emacs. ;;; Commentary: ;; =E8=BF=99=E4=B8=AA=E6=96=87=E4=BB=B6=E6=98=AFtumashu=E4=B8=AA=E4=BA=BA= =E4=B8=93=E7=94=A8=E7=9A=84emacs=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC= =8Cemacs=E4=B8=AD=E6=96=87=E7=94=A8=E6=88=B7=E5=8F=AF=E4=BB=A5=E5=8F=82=E8= =80=83=E3=80=82 ;;; License: ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License ;; as published by the Free Software Foundation; either version 3 ;; of the License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Code: (require 'org) (require 'ox-ascii) (require 'ox-latex) (require 'ox-beamer) (require 'ox-html) (require 'ox-deck) (require 'ox-s5) (require 'ox-rss) (require 'ox-md) (require 'ox-odt) (require 'org-contacts) (require 'org-mime) (require 'org-bookmark) (require 'org-protocol) (require 'ob-R) (setq org-export-backends '(ascii beamer html latex md odt deck rss s5)) (add-to-list 'auto-mode-alist '("\.\(org\|org_archive\)$" . org-mode))=20= =20=20 (setq org-log-done t)=20=20=20 (setq org-startup-indented nil) (setq org-confirm-babel-evaluate nil) ;; org-bable=E8=AE=BE=E7=BD=AE ; font-lock in src code blocks (setq org-src-fontify-natively t) (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (ditaa . t) (dot . t) (emacs-lisp . t) (gnuplot . t) (haskell . nil) (mscgen . t) (latex . t)=20 (ocaml . nil) (perl . t) (python . t) (ruby . nil) (screen . nil) (sh . t) (sql . nil) (sqlite . nil))) ;; org-babel hook (add-hook 'org-babel-after-execute-hook 'org-display-inline-images) ;; use Cairo graphics device by default,which can get better graphics quali= ty. ;; you shoule add require("Cairo") to you ~/.Rprofile (setq org-babel-R-graphics-devices '((:bmp "bmp" "filename") (:jpg "jpeg" "filename") (:jpeg "jpeg" "filename") (:tikz "tikz" "file") (:tiff "tiff" "filename") (:png "CairoPNG" "filename") (:svg "CairoSVG" "file") (:pdf "CairoPDF" "file") (:ps "CairoPS" "file") (:postscript "postscript" "file"))) ;;export (setq org-default-language "zh-CN") ;; html (setq org-html-coding-system 'utf-8) (setq org-html-head-include-default-style nil) (setq org-html-head-include-scripts nil) ;; latex (setq org-latex-coding-system 'utf-8) (setq org-latex-date-format "%Y-%m-%d") (setq org-export-with-LaTeX-fragments 'imagemagick) (setq org-latex-create-formula-image-program 'imagemagick) (setq org-latex-pdf-process '("xelatex -interaction nonstopmode -output-dir= ectory %o %f"=20 "xelatex -interaction nonstopmode -output-= directory %o %f"=20 "xelatex -interaction nonstopmode -output-= directory %o %f")) (add-to-list 'org-latex-classes '("ctexart" "\\documentclass{ctexart}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) (add-to-list 'org-latex-classes '("ctexrep" "\\documentclass{ctexrep}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) (add-to-list 'org-latex-classes '("ctexbook" "\\documentclass{ctexbook}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) (add-to-list 'org-latex-classes '("beamer" "\\documentclass{beamer} \\usepackage{ctex}" org-beamer-sectioning)) (setq org-latex-packages-alist '(" \\setCJKmainfont[ItalicFont=3D{AR PL UKai CN}]{AR PL UMing CN}% =E6=96=87= =E9=BC=8E=E5=AE=8B=E4=BD=93=E5=92=8C=E6=A5=B7=E4=B9=A6 \\setCJKsansfont{WenQuanYi Zen Hei}% =E6=96=87=E6=B3=89=E9=A9=BF=E7=9A=84= =E9=BB=91=E4=BD=93 \\setCJKmonofont{WenQuanYi Zen Hei} \\usepackage{tikz} ")) ;; latex=E5=85=AC=E5=BC=8F=E9=A2=84=E8=A7=88 ;; =E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E7=BC=A9=E6=94=BE=E6=AF=94=E4=BE=8B= =E4=B8=BA1.2. (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.2)) (setq org-format-latex-header "\\documentclass{ctexart} \\usepackage[usenames]{color} \\usepackage{amsmath} \\usepackage[mathscr]{eucal} \\pagestyle{empty} % do not remove \[PACKAGES] \[DEFAULT-PACKAGES] % The settings below are copied from fullpage.sty \\setlength{\\textwidth}{\\paperwidth} \\addtolength{\\textwidth}{-3cm} \\setlength{\\oddsidemargin}{1.5cm} \\addtolength{\\oddsidemargin}{-2.54cm} \\setlength{\\evensidemargin}{\\oddsidemargin} \\setlength{\\textheight}{\\paperheight} \\addtolength{\\textheight}{-\\headheight} \\addtolength{\\textheight}{-\\headsep} \\addtolength{\\textheight}{-\\footskip} \\addtolength{\\textheight}{-3cm} \\setlength{\\topmargin}{1.5cm} \\addtolength{\\topmargin}{-2.54cm}") ;; org-mode global keybindings (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) ;;;###autoload(require 'eh-org) (provide 'eh-org) ;; Local Variables: ;; coding: utf-8-unix ;; End: ;;; eh-org.el ends here #+end_src #+begin_src emacs-lisp ;;; eh-gnus.el --- Tumashu's gnus configuation file ;; Copyright (c) 2008-2009, Andy Stewart ;; 2011-2012, Feng Shu ;; Author: Andy Stewartf ;; Feng Shu ;; URL: https://github.com/tumashu/tumashu.github.com ;; Version: 0.0.6 ;; Keywords: gnus ;; This file is not part of GNU Emacs. ;;; Commentary: ;; =E8=BF=99=E4=B8=AA=E6=96=87=E4=BB=B6=E6=98=AFtumashu=E4=B8=AA=E4=BA=BA= =E4=B8=93=E7=94=A8=E7=9A=84gnus=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC= =8C=E4=B8=AD=E6=96=87gnus=E7=94=A8=E6=88=B7=E5=8F=AF=E4=BB=A5=E5=8F=82=E8= =80=83=E3=80=82 ;;; License: ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License ;; as published by the Free Software Foundation; either version 3 ;; of the License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Code: ;; require (require 'gnus) (require 'mm-encode) (require 'mm-decode) (require 'rfc2047) (require 'nnir) (require 'gnus-demon) (require 'notifications) ;; =E6=96=B0=E9=97=BB=E7=BB=84=E5=9C=B0=E5=9D=80 ;; =E6=B7=BB=E5=8A=A0=E5=87=A0=E4=B8=AA=E8=91=97=E5=90=8D=E7=9A=84=E6=96=B0= =E9=97=BB=E7=BB=84=E5=9C=B0=E5=9D=80=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=B5=8B=E8= =AF=95 (setq gnus-select-method '(nnimap "OfflineImap" (nnimap-address "localhost") (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_locatio= n=3Dmaildir:$HOME/Maildir"))) (add-to-list 'gnus-secondary-select-methods '(nntp "localhost")) ;; (setq gnus-select-method '(nnimap "gmail" ;; (nnimap-address "imap.gmail.com") ;; (nnimap-stream ssl))) ;; (add-to-list 'gnus-secondary-select-methods ;; '(nntp "news.gmane.org")) ;; (add-to-list 'gnus-secondary-select-methods ;; '(nntp "news.newsfan.net")) ;; =E5=AD=98=E5=82=A8=E8=AE=BE=E7=BD=AE (setq gnus-startup-file "~/Gnus/.newsrc") ;=E5=88=9D=E5=A7= =8B=E6=96=87=E4=BB=B6 (setq gnus-init-file "~/Gnus/.gnus") ;.gnus=E4=BD=8D= =E7=BD=AE (setq gnus-default-directory "~/Gnus/") ;=E9=BB=98=E8=AE= =A4=E7=9B=AE=E5=BD=95 (setq gnus-home-directory "~/Gnus/") ;=E4=B8=BB=E7=9B= =AE=E5=BD=95 (setq gnus-dribble-directory "~/Gnus/") ;=E6=81=A2=E5=A4= =8D=E7=9B=AE=E5=BD=95 (setq gnus-directory "~/Gnus/News/") ;=E6=96=B0=E9=97= =BB=E7=BB=84=E7=9A=84=E5=AD=98=E5=82=A8=E7=9B=AE=E5=BD=95 (setq gnus-article-save-directory "~/Gnus/News/") ;=E6=96=87=E7=AB= =A0=E4=BF=9D=E5=AD=98=E7=9B=AE=E5=BD=95 (setq gnus-kill-files-directory "~/Gnus/News/trash/") ;=E6=96=87=E4=BB= =B6=E5=88=A0=E9=99=A4=E7=9B=AE=E5=BD=95 (setq gnus-agent-directory "~/Gnus/News/agent/") ;=E4=BB=A3=E7=90= =86=E7=9B=AE=E5=BD=95 (setq gnus-cache-directory "~/Gnus/News/cache/") ;=E7=BC=93=E5=AD= =98=E7=9B=AE=E5=BD=95 (setq gnus-cache-active-file "~/Gnus/News/cache/active") ;=E7=BC=93=E5=AD= =98=E6=BF=80=E6=B4=BB=E6=96=87=E4=BB=B6 (setq message-directory "~/Gnus/Mail/") ;=E9=82=AE=E4=BB= =B6=E7=9A=84=E5=AD=98=E5=82=A8=E7=9B=AE=E5=BD=95 (setq message-auto-save-directory "~/Gnus/Mail/drafts") ;=E8=87=AA=E5=8A= =A8=E4=BF=9D=E5=AD=98=E7=9A=84=E7=9B=AE=E5=BD=95 (setq mail-source-directory "~/Gnus/Mail/incoming") ;=E9=82=AE=E4=BB= =B6=E7=9A=84=E6=BA=90=E7=9B=AE=E5=BD=95 (setq nnmail-message-id-cache-file "~/Gnus/.nnmail-cache") ;nnmail=E7=9A=84= =E6=B6=88=E6=81=AFID=E7=BC=93=E5=AD=98 (setq nnml-newsgroups-file "~/Gnus/Mail/newsgroup") ;=E9=82=AE=E4=BB= =B6=E6=96=B0=E9=97=BB=E7=BB=84=E8=A7=A3=E9=87=8A=E6=96=87=E4=BB=B6 (setq nntp-marks-directory "~/Gnus/News/marks") ;nntp=E7=BB=84= =E5=AD=98=E5=82=A8=E7=9B=AE=E5=BD=95 (setq mml-default-directory "~/") ;=E9=99=84=E4=BB= =B6=E7=9A=84=E5=AD=98=E5=82=A8=E4=BD=8D=E7=BD=AE ;; =E9=BB=98=E8=AE=A4=E7=A6=81=E7=94=A8nnfolder (setq gnus-message-archive-group nil) ;; =E5=8F=91=E9=80=81=E4=BF=A1=E4=BB=B6=E7=A8=8B=E5=BA=8F=E8=AE=BE=E7=BD=AE ;; (setq sendmail-program "msmtp") ;=E8=AE=BE= =E7=BD=AE=E5=8F=91=E9=80=81=E7=A8=8B=E5=BA=8F ;; =E5=BD=93=E4=BD=BF=E7=94=A8message-mode=E6=97=B6=E7=9A=84=E5=8F=91=E4=BF= =A1=E6=96=B9=E5=BC=8F. (setq message-send-mail-function 'message-send-mail-with-sendmail) ;; (setq message-send-mail-function 'message-send-mail-with-mailclient) ;; (setq message-sendmail-extra-arguments '("-a" "default")) ;; (setq message-sendmail-envelope-from 'header) ;; (defun eh-send-mail-with-msmtp () ;; (if (message-mail-p) ;; (save-excursion ;; (let* ((from ;; (save-restriction ;; (message-narrow-to-headers) ;; (message-fetch-field "from"))) ;; (account ;; (cond ;; ((string-match "tumashu@gmail.com" from) "tumashu@gmail.com")))) ;; (setq message-sendmail-extra-arguments (list "-a" account)))))) ;; (add-hook 'message-send-mail-hook 'eh-send-mail-with-msmtp) ;; =E7=BC=96=E7=A0=81=E8=AE=BE=E7=BD=AE ;; gnus=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=E7=9A=84=E7=BC=96=E7=A0=81=E3= =80=82=E5=A6=82=E6=9E=9C=E5=B8=B8=E4=B8=8E=E5=9B=BD=E5=A4=96=E8=81=94=E7=B3= =BB=EF=BC=8C=E8=AE=BE=E7=BD=AE=E4=B8=BAutf-8=E5=A6=82=E6=9E=9C=E5=8F=AA=E5= =9C=A8=E6=9C=AC=E5=9B=BD=E4=BD=BF=E7=94=A8=EF=BC=8C=E8=AE=BE=E7=BD=AE=E4=B8= =BA=E6=9C=AC=E5=9C=B0 ;; =E7=BC=96=E7=A0=81,=E6=AF=94=E5=A6=82gbk (setq gnus-default-charset 'gbk) ;;=E6=A0=B9=E6=8D=AE=E6=88=91=E4=BB=AC=E9=80=89=E6=8B=A9=E7=9A=84 method=E7= =A1=AE=E5=AE=9A=E7=BC=96=E7=A0=81 (setq gnus-group-name-charset-method-alist '(((nntp "news.newsfan.net") . gbk) ((nntp "news.cn99.com") . gbk))) ;;=E6=A0=B9=E6=8D=AE=E7=BB=84=E5=90=8D=E7=A1=AE=E5=AE=9A=E7=BB=84=E5=90=8D= =E9=87=87=E7=94=A8=E7=9A=84=E7=BC=96=E7=A0=81 (setq gnus-group-name-charset-group-alist '((".*" . gbk))) ;; =E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=8C=B9=E9=85=8D=E7=9A=84= =E7=BB=84=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=E7=9A=84=E7=BC=96=E7=A0=81=E3= =80=82 (setq gnus-group-charset-alist '((".*" . gbk))) ;; =E5=A6=82=E6=9E=9C=E8=BF=98=E6=9C=89=E4=B9=B1=E7=A0=81=EF=BC=8C=E6=89=8B= =E5=8A=A8=E8=B0=83=E6=95=B4 (setq gnus-summary-show-article-charset-alist '((1 . gbk) (2 . utf-8) (3 . big5) (4 . utf-7))) ;; =E9=82=AE=E4=BB=B6=E6=B2=A1=E6=9C=89=E6=8C=87=E5=AE=9A=E6=AD=A3=E7=A1=AE= =E7=9A=84MIME=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=97=B6=E5=80=99=E7=9A=84=E5=A4= =84=E7=90=86=E6=96=B9=E5=BC=8F (setq gnus-newsgroup-ignored-charsets '(unknown-8bit x-unknown x-gbk )) ;; gnus-posting-styles=E8=AE=BE=E7=BD=AE ;; 1. =E5=8F=91=E9=80=81=E7=BC=96=E7=A0=81=E8=AE=BE=E7=BD=AE. ;; 2. =E7=94=A8=E4=BB=80=E4=B9=88=E7=A8=8B=E5=BA=8F=E5=8F=91=E9=80=81=E9=82= =AE=E4=BB=B6. (setq gnus-posting-styles '(("\(^INBOX\)\|\(\\[Gmail\\].*\)" ("X-Message-SMTP-Method" "sendmail")) (message-mail-p ("X-Message-SMTP-Method" "sendmail")) (".*" (signature "") (eval (setq mm-coding-system-priorities '(iso-8859-1 utf-8 gb2312 gbk utf-8 gb18030)))) (".*newsfan.*" (eval (setq mm-coding-system-priorities '(iso-8859-1 gb2312 gbk gb18030 utf-8)))) (".*cn99.*" (eval (setq mm-coding-system-priorities '(iso-8859-1 gb2312 gbk gb18030 utf-8)))))) ;; =E6=8C=87=E5=AE=9A=E9=99=84=E4=BB=B6=E6=96=87=E4=BB=B6=E5=90=8D=E5=92=8C= subject=E7=9A=84=E7=BC=96=E7=A0=81=E6=96=B9=E5=BC=8F (defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) (add-to-list 'rfc2047-charset-encoding-alist '(gbk . B)) (add-to-list 'rfc2047-charset-encoding-alist '(gb18030 . B)) ;; =E5=B8=B8=E8=A7=84=E8=AE=BE=E7=BD=AE (setq gnus-agent t) ;=E5=BC=80=E5=90=AFagent (setq read-mail-command 'gnus) ;=E4=BD=BF=E7=94=A8gnus= =E9=98=85=E8=AF=BB=E9=82=AE=E4=BB=B6 (setq mail-user-agent 'gnus-user-agent) ;=E4=BD=BF=E7=94=A8gnus= =E5=8F=91=E9=80=81=E9=82=AE=E4=BB=B6 (setq gnus-inhibit-startup-message t) ;=E5=85=B3=E9=97=AD=E5= =90=AF=E5=8A=A8=E6=97=B6=E7=9A=84=E7=94=BB=E9=9D=A2 (setq gnus-novice-user nil) ;=E5=85=B3=E9=97=AD=E6= =96=B0=E6=89=8B=E8=AE=BE=E7=BD=AE, =E4=B8=8D=E8=BF=9B=E8=A1=8C=E7=A1=AE=E8= =AE=A4 (setq gnus-expert-user t) ;=E4=B8=8D=E8=AF=A2=E9= =97=AE=E7=94=A8=E6=88=B7 (setq gnus-show-threads t) ;=E6=98=BE=E7=A4=BA=E9= =82=AE=E4=BB=B6=E7=BA=BF=E7=B4=A2 (setq gnus-interactive-exit t) ;=E9=80=80=E5=87=BA=E6= =97=B6=E8=BF=9B=E8=A1=8C=E4=BA=A4=E4=BA=92=E5=BC=8F=E8=AF=A2=E9=97=AE (setq gnus-use-dribble-file t) ;=E5=88=9B=E5=BB=BA=E6= =81=A2=E5=A4=8D=E6=96=87=E4=BB=B6 (setq gnus-always-read-dribble-file t) ;=E8=AF=BB=E5=8F=96=E6= =81=A2=E5=A4=8D=E6=96=87=E4=BB=B6 (setq gnus-asynchronous t) ;=E5=BC=82=E6=AD=A5=E6= =93=8D=E4=BD=9C (setq gnus-large-newsgroup 2000) ;=E8=AE=BE=E7=BD=AE=E5= =A4=A7=E5=AE=B9=E9=87=8F=E7=9A=84=E6=96=B0=E9=97=BB=E7=BB=84=E9=BB=98=E8=AE= =A4=E6=98=BE=E7=A4=BA=E7=9A=84=E5=A4=A7=E5=B0=8F (setq gnus-read-active-file 'some) (setq gnus-nov-is-evil nil) (setq gnus-large-ephemeral-newsgroup nil) ;=E5=92=8C=E4=B8=8A=E9= =9D=A2=E7=9A=84=E5=8F=98=E9=87=8F=E4=B8=80=E6=A0=B7, =E5=8F=AA=E4=B8=8D=E8= =BF=87=E5=AF=B9=E4=BA=8E=E7=9F=AD=E6=9A=82=E7=9A=84=E6=96=B0=E9=97=BB=E7=BB= =84 (setq gnus-summary-ignore-duplicates t) ;=E5=BF=BD=E7=95=A5=E5= =85=B7=E6=9C=89=E7=9B=B8=E5=90=8CID=E7=9A=84=E6=B6=88=E6=81=AF (setq gnus-treat-fill-long-lines t) ;=E5=A6=82=E6=9E=9C=E6= =9C=89=E5=BE=88=E9=95=BF=E7=9A=84=E8=A1=8C, =E4=B8=8D=E6=8F=90=E7=A4=BA (setq message-confirm-send t) ;=E9=98=B2=E6=AD=A2=E8= =AF=AF=E5=8F=91=E9=82=AE=E4=BB=B6, =E5=8F=91=E9=82=AE=E4=BB=B6=E5=89=8D=E9= =9C=80=E8=A6=81=E7=A1=AE=E8=AE=A4 (setq message-kill-buffer-on-exit t) ;=E8=AE=BE=E7=BD=AE=E5= =8F=91=E9=80=81=E9=82=AE=E4=BB=B6=E5=90=8E=E5=88=A0=E9=99=A4buffer (setq message-from-style 'angles) ;`From' =E5=A4=B4=E7=9A= =84=E6=98=BE=E7=A4=BA=E9=A3=8E=E6=A0=BC (setq message-syntax-checks '((sender . disabled))) ;=E8=AF=AD=E6=B3=95=E6= =A3=80=E6=9F=A5 (setq nnmail-expiry-wait 7) ;=E9=82=AE=E4=BB=B6=E8= =87=AA=E5=8A=A8=E5=88=A0=E9=99=A4=E7=9A=84=E6=9C=9F=E9=99=90 (=E5=8D=95=E4= =BD=8D: =E5=A4=A9) (setq nnmairix-allowfast-default t) ;=E5=8A=A0=E5=BF=AB=E8= =BF=9B=E5=85=A5=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E7=9A=84=E7=BB=84 (setq gnus-use-correct-string-widths t) ;=E4=BD=BF=E7=94=A8=E6= =AD=A3=E7=A1=AE=E7=9A=84=E5=AD=97=E4=BD=93=E5=AE=BD=E5=BA=A6 (setq gc-cons-threshold 3500000) ;=E5=8A=A0=E5=BF=ABgnus= =E7=9A=84=E9=80=9F=E5=BA=A6 (setq gnus-use-cross-reference t) ;=E4=BA=A4=E5=8F=89=E7= =B4=A2=E5=BC=95 (setq gnus-summary-display-while-building 50) ;=E5=9C=A8=E7=94=9F=E6= =88=90summary=E6=97=B6,=E6=AF=8F50=E5=B0=81=E6=98=BE=E7=A4=BA=E4=B8=80=E4= =B8=8B ;; =E8=BF=9B=E5=85=A5summer=E6=A8=A1=E5=BC=8F=E6=97=B6=EF=BC=8C=E7=A6=81=E6= =AD=A2=E8=87=AA=E5=8A=A8=E9=80=89=E6=8B=A9=E7=AC=AC=E4=B8=80=E4=B8=AAarticl= e, ;; =E8=BF=99=E6=A0=B7=E8=AE=BE=E7=BD=AE=E4=B8=BB=E8=A6=81=E6=98=AF=E5=9B=A0= =E4=B8=BA=E6=9C=89=E4=BA=9Barticle=E4=B8=8B=E8=BD=BD=E9=80=9F=E5=BA=A6=E6= =9E=81=E6=85=A2=EF=BC=8C ;; =E4=BC=9A=E9=99=8D=E4=BD=8E=E5=93=8D=E5=BA=94=E9=80=9F=E5=BA=A6 (setq gnus-auto-select-first nil) (setq gnus-auto-select-next nil)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ;; =E8=AE=BE=E7=BD=AEgnus=E5=90=AF=E5=8A=A8=E6=97=B6,=E7=BB=84=E7=BA=A7=E5= =88=AB=E5=A4=A7=E4=BA=8E3=E7=9A=84=E4=B8=8D=E8=87=AA=E5=8A=A8=E6=9B=B4=E6= =96=B0=E3=80=82 ;; =E5=BD=93=E4=BD=A0=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=AE=B8=E5=A4=9A=E9=80=9F= =E5=BA=A6=E6=85=A2=E7=9A=84=E7=BB=84=E6=97=B6=EF=BC=8C=E6=AF=94=E5=A6=82rss= ,imap=E7=AD=89=EF=BC=8C=E5=90=AF=E5=8A=A8=E9=80=9F=E5=BA=A6=E4=BC=9A=E7=9B= =B8=E5=BD=93=E6=85=A2=E3=80=82=E8=BF=99=E6=97=B6=E4=BD=A0 ;; =E5=8F=AF=E4=BB=A5=E6=8A=8A=E5=AE=83=E4=BB=AC=E7=9A=84=E7=BB=84=E7=BA=A7= =E5=88=AB=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=A4=A7=E4=BA=8E3=E7=9A=84=E5=80=BC= =EF=BC=8C=E8=BF=99=E6=A0=B7=E5=90=AF=E5=8A=A8=E6=97=B6=E5=B0=B1=E4=B8=8D=E8= =87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E4=BA=86=E3=80=82 ;; =E5=BD=93=E4=BD=A0=E9=9C=80=E8=A6=81=E6=9B=B4=E6=96=B0=E8=BF=99=E4=BA=9B= =E7=BB=84=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=BD=BF=E7=94=A8 "4-g" "5-g"= =E7=AD=89=E5=BF=AB=E6=8D=B7=E9=94=AE (setq gnus-activate-level 3)=20 ;; =E5=8F=8C=E7=AA=97=E5=8F=A3=E5=B8=83=E5=B1=80 (gnus-add-configuration '(article=20 (horizontal 1.0=20 (summary 0.50 point) (article 1.0)))) ;; =E4=B8=89=E7=AA=97=E5=8F=A3=E5=B8=83=E5=B1=80 ;; (gnus-add-configuration ;; '(article ;; (horizontal 1.0 ;; (vertical 25 ;; (group 1.0)) ;; (vertical 1.0 ;; (summary 0.25 point) ;; (article 1.0))))) ;; (gnus-add-configuration ;; '(summary ;; (horizontal 1.0 ;; (vertical 25 ;; (group 1.0)) ;; (vertical 1.0 ;; (summary 1.0 point))))) ;; =E6=98=BE=E7=A4=BA=E8=AE=BE=E7=BD=AE (setq mm-inline-large-images t) ;=E6=98=BE=E7=A4=BA= =E5=86=85=E7=BD=AE=E5=9B=BE=E7=89=87 (add-to-list 'mm-attachment-override-types "image/*") ;=E9=99=84=E4=BB=B6= =E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87 ;; =E6=A6=82=E8=A6=81=E6=98=BE=E7=A4=BA=E8=AE=BE=E7=BD=AE ;; =E8=AE=BE=E7=BD=AEsummer=E7=BC=93=E5=86=B2=E5=8C=BA=E7=9A=84=E6=98=BE=E7= =A4=BA=E6=A0=BC=E5=BC=8F (setq gnus-extra-headers '(To From)) (setq nnmail-extra-headers gnus-extra-headers) (setq gnus-summary-gather-subject-limit 'fuzzy) ;=E8=81=9A=E9=9B=86=E9=A2= =98=E7=9B=AE=E7=94=A8=E6=A8=A1=E7=B3=8A=E7=AE=97=E6=B3=95 ;; (setq gnus-summary-line-format (concat=20 ;; "%4P " ;; "%(" ;; "%U%R%z " ;; "%4&user-date; " ;; "%-12,12n " ;; "%B "=20 ;; "%I " ;; "%-50,50s " ;; "%)" ;; "\n")) ;; (setq gnus-summary-make-false-root 'dummy) ;; (setq gnus-summary-make-false-root-always nil) ;; (setq gnus-summary-dummy-line-format " |->%-62,62S\n") (setq gnus-summary-make-false-root 'adopt) (setq gnus-summary-line-format (concat=20 "%U%R |" "%ua" "%2{%ub%}" "%uc" "%B" "%I" "%2{%ud%}" "%ue" "\n")) (copy-face 'default 'eh-gnus-face-2) (set-face-foreground 'eh-gnus-face-2 "orange") (setq gnus-face-2 'eh-gnus-face-2) ;; =E6=98=BE=E7=A4=BA=E7=AE=AD=E5=A4=B4=E8=AE=BE=E7=BD=AE (defun gnus-user-format-function-a (header) (let ((date (mail-header-date header))) (if (zerop gnus-tmp-level) "-> " ""))) ;; =E6=98=BE=E7=A4=BA=E6=97=B6=E9=97=B4=E8=AE=BE=E7=BD=AE (defun gnus-user-format-function-b (header) (let ((date (mail-header-date header))) (if (zerop gnus-tmp-level) "" (concat " " (concat (gnus-user-date date) " "))))) ;; =E6=98=BE=E7=A4=BA=E4=B8=BB=E9=A2=98=E8=AE=BE=E7=BD=AE (defun gnus-user-format-function-c (header) (let ((date (mail-header-date header)) (subject (mail-header-subject header))) (if (zerop gnus-tmp-level) (concat subject " (" (gnus-user-date date)")") ""))) ;; =E6=8F=90=E5=8F=96From=E5=90=8D=E5=AD=97 (defun eh-mail-header-from-name (from) (cond ((string-match "<[^>]+> *$" from) (let ((beg (match-beginning 0))) (or (and (string-match "^\".+\"" from) (substring from 1 (1- (match-end 0)))) (substring from 0 beg)))) ((string-match "(.+)" from) (substring from (1+ (match-beginning 0)) (1- (match-end 0)))) (t from))) ;; =E6=98=BE=E7=A4=BA=E5=8F=91=E4=BB=B6=E4=BA=BA=E8=AE=BE=E7=BD=AE (defun gnus-user-format-function-d (header) (let ((from (mail-header-from header))) (if (zerop gnus-tmp-level) "" (eh-mail-header-from-name from)))) ;; =E6=98=BE=E7=A4=BA=E7=AE=AD=E5=A4=B4=E8=AE=BE=E7=BD=AE (defun gnus-user-format-function-e (header) (if (zerop gnus-tmp-level) "" "---->")) ;; =E8=AE=BE=E7=BD=AEuser-date=E5=8F=98=E9=87=8F=EF=BC=8C=E8=87=AA=E5=AE=9A= =E4=B9=89=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=E7=9A=84=E6=98=BE=E7=A4=BA=E6= =A0=BC=E5=BC=8F ;; (setq gnus-user-date-format-alist ;; '(((gnus-seconds-today) . "=E4=BB=8A=E5=A4=A9%d=E5=8F=B7") ;; ((+ (* 24 3600) (gnus-seconds-today)) . "=E6=98=A8=E5=A4=A9%d= =E5=8F=B7")=20 ;; ((+ (* 2 24 3600) (gnus-seconds-today)) . "=E5=89=8D=E5=A4=A9%d= =E5=8F=B7") ;; ((gnus-seconds-month) . "=E6=9C=AC=E6=9C=88%d=E5=8F=B7") ;; ((gnus-seconds-year) . "%m=E6=9C=88%d=E5=8F=B7") ;; (t . "%y-%m-%d"))) (setq gnus-user-date-format-alist '(((gnus-seconds-today) . "%H:%M") ((+ (* 24 3600) (gnus-seconds-today)) . "YD ") ((- (gnus-seconds-month) (* 72 3600)) . "%dth ") ((- (gnus-seconds-month) (* 48 3600)) . "%drd ") ((- (gnus-seconds-month) (* 24 3600)) . "%dnd ") ((gnus-seconds-month) . "%dst ") ((gnus-seconds-year) . "%m-%d") (t . "%Y "))) (setq gnus-thread-indent-level 0) ;; =E7=BA=BF=E7=A8=8B=E7=9A=84=E5=8F=AF=E8=A7=86=E5=8C=96=E5=A4=96=E8=A7=82= , `%B' (setq gnus-summary-same-subject "") (setq gnus-sum-thread-tree-indent " ") (setq gnus-sum-thread-tree-single-indent "") (setq gnus-sum-thread-tree-root "") (setq gnus-sum-thread-tree-false-root "") (setq gnus-sum-thread-tree-vertical "|") (setq gnus-sum-thread-tree-leaf-with-other "|----") (setq gnus-sum-thread-tree-single-leaf " `----") ;; =E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA (add-hook 'gnus-article-prepare-hook 'gnus-article-date-local) ;=E5=B0=86= =E9=82=AE=E4=BB=B6=E7=9A=84=E5=8F=91=E5=87=BA=E6=97=B6=E9=97=B4=E8=BD=AC=E6= =8D=A2=E4=B8=BA=E6=9C=AC=E5=9C=B0=E6=97=B6=E9=97=B4 (add-hook 'gnus-select-group-hook 'gnus-group-set-timestamp) ;=E8=B7=9F= =E8=B8=AA=E7=BB=84=E7=9A=84=E6=97=B6=E9=97=B4=E8=BD=B4 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) ;=E6=96=B0= =E9=97=BB=E7=BB=84=E5=88=86=E7=BB=84 (add-hook 'gnus-summary-mode-hook (lambda () (setq line-spacing 3) (local-set-key (kbd "") 'gnus-uu-mark-all) (local-set-key (kbd "") 'gnus-uu-unmark-thread) (local-set-key (kbd "") 'gnus-uu-mark-thread))) ;; visual (setq gnus-treat-emphasize t gnus-treat-buttonize t gnus-treat-buttonize-head 'head gnus-treat-unsplit-urls 'last gnus-treat-leading-whitespace 'head gnus-treat-highlight-citation t gnus-treat-highlight-signature t gnus-treat-date-lapsed 'head gnus-treat-strip-trailing-blank-lines t gnus-treat-strip-cr t gnus-treat-overstrike nil gnus-treat-display-x-face t gnus-treat-display-face t gnus-treat-display-smileys nil gnus-treat-x-pgp-sig 'head) ;; =E8=AE=BE=E7=BD=AE=E9=82=AE=E4=BB=B6=E6=8A=A5=E5=A4=B4=E6=98=BE=E7=A4=BA= =E7=9A=84=E4=BF=A1=E6=81=AF (setq gnus-visible-headers (mapconcat 'regexp-quote '("From:" "Newsgroups:" "Subject:" "Date:" "Organization:" "To:" "Cc:" "Followup-To" "Gnus-Warnings= :" "X-Sent:" "X-URL:" "User-Agent:" "X-Newsreader:" "X-Mailer:" "Reply-To:" "X-Spam:" "X-Spam-Status:" "X-No= w-Playing" "X-Attachments" "X-Diagnostic") "\\|")) ;; =E8=AE=BE=E7=BD=AE=E9=82=AE=E4=BB=B6=E6=97=A5=E6=9C=9F=E6=98=BE=E7=A4=BA= =E6=A0=BC=E5=BC=8F,=E4=BD=BF=E7=94=A8=E4=B8=A4=E8=A1=8C=E6=97=A5=E6=9C=9F= =EF=BC=8C=E4=B8=80=E8=A1=8C=E5=85=B7=E4=BD=93=E6=97=A5=E6=9C=9F=E6=97=B6=E9= =97=B4=EF=BC=8C=E5=8F=A6=E4=B8=80=E8=A1=8C=E6=98=BE=E7=A4=BAarticle ;; =E8=B7=9D=E7=8E=B0=E5=9C=A8=E5=A4=9A=E9=95=BF=E6=97=B6=E9=97=B4 (setq gnus-article-date-headers '(user-defined)) (setq gnus-article-time-format (lambda (time) (concat "X-Sent: " (format-time-string "%Y=E5=B9=B4%m=E6=9C=88%d=E6=97=A5 =E6= =98=9F=E6=9C=9F%u %R" time) "\n" "X-Lasped: " (article-lapsed-string time) ))) ;; =E7=94=A8 Supercite =E6=98=BE=E7=A4=BA=E5=A4=9A=E7=A7=8D=E5=A4=9A=E6=A0= =B7=E7=9A=84=E5=BC=95=E6=96=87=E5=BD=A2=E5=BC=8F (setq sc-attrib-selection-list nil sc-auto-fill-region-p nil sc-blank-lines-after-headers 1 sc-citation-delimiter-regexp "[>]+\\|\\(: \\)+" sc-cite-blank-lines-p nil sc-confirm-always-p nil sc-electric-references-p nil sc-fixup-whitespace-p t sc-nested-citation-p nil sc-preferred-header-style 4 sc-use-only-preference-p nil) ;; =E7=BA=BF=E7=A8=8B=E8=AE=BE=E7=BD=AE (setq gnus-use-trees t ;= =E8=81=94=E7=B3=BB=E8=80=81=E7=9A=84=E6=A0=87=E9=A2=98 gnus-tree-minimize-window nil ;= =E7=94=A8=E6=9C=80=E5=B0=8F=E7=AA=97=E5=8F=A3=E6=98=BE=E7=A4=BA ;; gnus-fetch-old-headers 'some = ;=E6=8A=93=E5=8F=96=E8=80=81=E7=9A=84=E6=A0=87=E9=A2=98=E4=BB=A5=E8=81=94= =E7=B3=BB=E7=BA=BF=E7=A8=8B,=E9=80=9F=E5=BA=A6=E6=9E=81=E6=85=A2 gnus-generate-tree-function 'gnus-generate-horizontal-tree ;= =E7=94=9F=E6=88=90=E6=B0=B4=E5=B9=B3=E6=A0=91 gnus-summary-thread-gathering-function 'gnus-gather-threads-by-subject ;= =E8=81=9A=E9=9B=86=E5=87=BD=E6=95=B0=E6=A0=B9=E6=8D=AE=E6=A0=87=E9=A2=98=E8= =81=9A=E9=9B=86 ) ;; =E6=8E=92=E5=BA=8F (setq gnus-thread-sort-functions '((not gnus-thread-sort-by-number) (not gnus-thread-sort-by-date))) ;; =E8=87=AA=E5=8A=A8=E8=B7=B3=E5=88=B0=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=B2=A1= =E6=9C=89=E9=98=85=E8=AF=BB=E7=9A=84=E7=BB=84 (add-hook 'gnus-switch-on-after-hook 'gnus-group-first-unread-group) ;gnus= =E5=88=87=E6=8D=A2=E6=97=B6 (add-hook 'gnus-summary-exit-hook 'gnus-group-first-unread-group) ;=E9= =80=80=E5=87=BASummary=E6=97=B6 ;; =E8=AE=BE=E7=BD=AEmessage hook (add-hook 'message-mode-hook 'turn-on-orgstruct) (add-hook 'message-mode-hook 'turn-on-orgstruct++) ;; =E6=AF=8F=E9=9A=9410=E5=88=86=E9=92=9F=E5=88=B7=E6=96=B0=E4=B8=80=E4=B8= =8B (add-hook 'gnus-startup-hook '(lambda () (progn (setq gnus-use-demon t) (gnus-demon-add-handler 'gnus-demon-scan-news 10 nil)))) ;; =E5=90=AF=E7=94=A8=E6=A1=8C=E9=9D=A2=E6=8F=90=E9=86=92=E5=8A=9F=E8=83=BD (add-hook 'gnus-after-getting-new-news-hook 'gnus-notifications) ;;;###autoload (add-hook 'gnus-before-startup-hook '(lambda () (require 'eh-gnus))) (provide 'eh-gnus) ;; Local Variables: ;; coding: utf-8-unix ;; End: ;;; eh-gnus.el ends here #+end_src > > Best, > > Jo.=20 > > 2013/5/15 Eric Schulte > >=20=20=20=20=20 > Uwe Brauer writes: >=20=20=20=20=20 > >>> "Eric" =3D=3D Eric Schulte writes: > > > > > Joseph Vidal-Rosset writes: > > >> > > >> - > > > > > A while back Org-mode switched its method of exporting latex > equations > > > to HTML. Equations used to be exported as png images, however > they are > > > now exported as markup which may then be processed on the fly > by > > > client-side javascript. Most mail readers do not allow > javascript in > > > html email, and I doubt that the required javascript headers > are > > > included in the mail html mime part. > > > > > I don't know if it is currently possible to do the javascript > > > pre-processing as part of the HTML export, but that would > probably be > > > the best solution in this case. > > > > Couldn't the old functionality (converting to png) be > reactivated, at > > least optionally?? For me this change are bad news, since the > feature > > (to export LaTeX math to something visible) is very important to > me and > > even if this approach may have disadvantages, it seems to me > more > > universal than the javascript business. > > >=20=20=20=20=20 >=20=20=20=20=20 > Indeed the old latex->png functionality is still available, I just > had > to update org-mime to work with the new exporter. Export of latex > to > attached png images should once again be working in the master > branch of > the git repo. >=20=20=20=20=20 > Best, >=20=20=20=20=20 > > > > > > Uwe Brauer >=20=20=20=20=20 >=20=20=20=20=20 > > > > >=20=20=20=20=20 > -- > Eric Schulte > http://cs.unm.edu/~eschulte --=20