[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnus] Summary buffer: simplicity itself

From: ernobe
Subject: [Gnus] Summary buffer: simplicity itself
Date: Thu, 11 May 2017 22:26:41 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

For those who would like to try out the Gnus newsreader
( here is part of my configuration file for the summary 
the window where the threaded topics appear:

 '(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.

 '(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-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:

        (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"
  (save-some-buffers nil t)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]