unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [Gnus] Summary buffer: simplicity itself
@ 2017-05-12  4:26 ernobe
  2017-05-12 10:26 ` Emanuel Berg
  2017-05-15 15:53 ` ernobe
  0 siblings, 2 replies; 5+ messages in thread
From: ernobe @ 2017-05-12  4:26 UTC (permalink / raw)
  To: help-gnu-emacs


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 "<f1>") 'switch-to-prev-buffer)
(global-set-key (kbd "<f2>") 'switch-to-next-buffer)
(global-set-key (kbd "<f3>") 'other-window)
(global-set-key (kbd "<f4>") 'query-replace)
(global-set-key (kbd "<f5>") 'set-mark-command)
(global-set-key (kbd "<f6>") 'yank)
(global-set-key (kbd "<f7>") 'copy-region-as-kill)
(global-set-key (kbd "<f8>") 'kill-region)
(global-set-key (kbd "<f9>") 'kill-this-buffer)
(global-set-key (kbd "<f10>") 'find-file)
(global-set-key (kbd "<f11>") 'write-file)
(global-set-key (kbd "<f12>") '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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-06 18:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12  4:26 [Gnus] Summary buffer: simplicity itself ernobe
2017-05-12 10:26 ` Emanuel Berg
2017-05-15 15:53 ` ernobe
2017-05-22  1:37   ` ernobe
2017-06-06 18:02     ` ernobe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).