[Top][All Lists]

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

Re: [Gnus] Summary buffer: simplicity itself

From: Emanuel Berg
Subject: Re: [Gnus] Summary buffer: simplicity itself
Date: Fri, 12 May 2017 12:26:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

ernobe wrote:

> For those who would like to try out the Gnus
> newsreader ( here is part
> of my configuration file [ ... cut several
> pages of configs ]

I wonder if this really is a good speech to
groom people into Gnus...? :)

> On Linux it looks great in the console

You got a screenshot? Here is my Gnus
Group buffer [1] and more Gnus dumps and
source [2].

Here is some Elisp to take console dumps from

    (defun dump (file)
      (interactive "s Description: ")
      (message nil)
      (shell-command (format "sudo fbgrab ~/%s.png" file)))

(The third line is the most important.)

fbgrab(1) is probably in your repos, at least
if you use Debian or one of the derivatives...

> This will create separate buffers for the
> article and the summary. To navigate between
> them I use F1 and F2.

F1 and F2 work in the console according to
showkey(1) but they are nonresponsive in
a console Emacs without rewiring. Perhaps your
are in a terminal emulator in X with
'enacs --nw'? Actually it is much the same.
Anyhow the function kyes are not good.
Especially for routine tasks. Too far from
typing position which is asdf (left) and jkl;
(right). Minimal reach, no reset.

OK, so then, in X you can use gnome-screenshot
and many other tools. (You don't need Gnome to
use it.)

> (global-set-key (kbd "<f1>")
> 'switch-to-prev-buffer)

You can write that as:

    (global-set-key [f1] #'switch-to-prev-buffer)

> (defun my-kill-emacs () "save some buffers,
> then exit unconditionally" (interactive)
> (save-some-buffers nil t) (kill-emacs))

I have something like that as well [3]:

    (defun mute-kill-warnings ()
      (dolist (p (process-list))
        (set-process-query-on-exit-flag p nil) ))

    (defun kill-everything ()
      (mute-kill-warnings) )

    (defun emacs-quit-no-confirm ()
      (save-buffers-kill-terminal t) ) ; silently save ... kill
    (defalias 'quit       'emacs-quit-no-confirm)
    (defalias 'quit-emacs 'emacs-quit-no-confirm)
    (defalias 'emacs-quit 'emacs-quit-no-confirm)

    (define-key (current-global-map)
      [remap save-buffers-kill-terminal] #'emacs-quit-no-confirm)


underground experts united

reply via email to

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