all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ernobe <ernobe@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: [Gnus] Summary buffer: simplicity itself
Date: Thu, 11 May 2017 22:26:41 -0600	[thread overview]
Message-ID: <87y3u266pq.fsf@002215fd0050.amnet.co.cr> (raw)


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


             reply	other threads:[~2017-05-12  4:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  4:26 ernobe [this message]
2017-05-12 10:26 ` [Gnus] Summary buffer: simplicity itself Emanuel Berg
2017-05-15 15:53 ` ernobe
2017-05-22  1:37   ` ernobe
2017-06-06 18:02     ` ernobe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3u266pq.fsf@002215fd0050.amnet.co.cr \
    --to=ernobe@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.