From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ernobe Newsgroups: gmane.emacs.help Subject: [Gnus] Summary buffer: simplicity itself Date: Thu, 11 May 2017 22:26:41 -0600 Organization: World Order of Baha'u'llah Message-ID: <87y3u266pq.fsf@002215fd0050.amnet.co.cr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494563442 3721 195.159.176.226 (12 May 2017 04:30:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 04:30:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 12 06:30:36 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d92Dr-0000nN-Q5 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 06:30:35 +0200 Original-Received: from localhost ([::1]:51270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d92Dx-0005NT-4I for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 00:30:41 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help,alt.atheism Original-Lines: 93 Original-Injection-Info: mx02.eternal-september.org; posting-host="e661af12e37221dcdab23019c3b5289a"; logging-data="8611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Iffv3um2IQwoimPUn/CxQ" Cancel-Lock: sha1:CGy03awhEwjbp5GaV/v2Fh3OmAI= sha1:7Kju6B6n3sbPvKpZb7M2MwUE+Ns= Original-Xref: usenet.stanford.edu gnu.emacs.help:219117 alt.atheism:7894633 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112993 Archived-At: For those who would like to try out the Gnus newsreader (http://www.gnus.org) here is part of my configuration file for the summary buffer, the window where the threaded topics appear: (custom-set-variables '(gnus-sum-thread-tree-false-root nil) '(gnus-sum-thread-tree-indent " ") '(gnus-sum-thread-tree-leaf-with-other " ") '(gnus-sum-thread-tree-root nil) '(gnus-sum-thread-tree-single-indent nil) '(gnus-sum-thread-tree-single-leaf " ") '(gnus-sum-thread-tree-vertical " |") '(gnus-summary-line-format "%[%U%R%2i %d%] %B %(%f%)%* ")) On Linux it looks great in the console, with the following settings. The default settings for the graphic interface are OK. (custom-set-faces '(default ((t (:inherit nil :stipple nil :background "black" :foreground "goldenrod1" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight semi-bold :height 113 :width normal :foundry "unknown" :family "FreeMono")))) '(gnus-summary-high-unread ((t (:foreground "green")))) '(gnus-summary-low-read ((t (:foreground "magenta")))) '(gnus-summary-normal-read ((t (:foreground "red")))) '(gnus-summary-selected ((t (:background "yellow")))) '(gnus-summary-normal-unread ((t (:foreground "white")))) '(mode-line ((t (:foreground "green")))) '(mode-line-inactive ((t (:foreground "white"))))) Here are some other settings to tweek the defaults. (You can add these to "custom-set-variables" above). '(gnus-always-force-window-configuration t) '(gnus-ancient-mark 32) '(gnus-article-mode-line-format "U%U %S" ) '(gnus-summary-mode-line-format "U%U %S" ) '(gnus-summary-thread-gathering-function (quote gnus-gather-threads-by-references)) '(gnus-thread-hide-subtree t) '(gnus-thread-sort-functions (quote gnus-thread-sort-by-most-recent-date)) '(gnus-treat-hide-citation t) '(gnus-unread-mark 42) The window layout: (gnus-add-configuration '(article (summary 1.0 point) (article 1.0))) (setq gnus-parameters '((".*" (display . all)))) This will create separate buffers for the article and the summary. To navigate between them I use F1 and F2. Pressing return twice in the summary will open a minibuffer with the article. All previous settings can go in a file that is called from emacs with the -l option. Keys F1 thru F12 in the main emacs configuration file, .emacs follows: (global-set-key (kbd "") 'switch-to-prev-buffer) (global-set-key (kbd "") 'switch-to-next-buffer) (global-set-key (kbd "") 'other-window) (global-set-key (kbd "") 'query-replace) (global-set-key (kbd "") 'set-mark-command) (global-set-key (kbd "") 'yank) (global-set-key (kbd "") 'copy-region-as-kill) (global-set-key (kbd "") 'kill-region) (global-set-key (kbd "") 'kill-this-buffer) (global-set-key (kbd "") 'find-file) (global-set-key (kbd "") 'write-file) (global-set-key (kbd "") 'my-kill-emacs) F3 will switch between the summary and the article if they are in the same window. F9 will kill buffers so you can switch directly between the summary and article buffers (when they are separate windows). F12 kills emacs immediately unless you've edited something in a buffer (it will ask to save it before exiting). It calls the my-kill-emacs function, also in .emacs: (defun my-kill-emacs () "save some buffers, then exit unconditionally" (interactive) (save-some-buffers nil t) (kill-emacs)) For getting news and posting, I use slrnpull. So I have Gnus set up as an offline newsreader. I've tried Gnus Agent, but haven't yet figured out how to make it strictly a news fetcher-poster, without having it connect to the net from Gnus. -- https://archive.org/services/purl/bahai