;;; -*- lexical-binding: t -*- ;; ;; this file: ;; https://dataswamp.org/~incal/emacs-init/gnus/gnus-server.el (require 'close) (require 'gnus-srvr) (require 'mode-line) (require 'scroll) (require 'super) (setq gnus-server-line-format "%0{%8h%}: %w %37=%s\n") (push '(" *\\(.*\\): \\([-.[:alnum:]]*\\) " (1 'font-lock-comment-face) (2 'default) ) gnus-server-font-lock-keywords) (defun gnus-server-set-keys () (let ((kmap gnus-server-mode-map)) (disable-super-global-keys kmap) (set-close-key kmap) (keymap-set kmap "d" #'gnus-server-deny-server) (keymap-set kmap "o" #'gnus-server-open-server) (keymap-set kmap "k" #'next-line) (keymap-set kmap "TAB" #'next-line) (keymap-set kmap "i" #'previous-line) (define-key kmap [backtab] #'previous-line) )) (defun gnus-server-mode-hook-f () (lines) (gnus-server-set-keys) ) (add-hook 'gnus-server-mode-hook #'gnus-server-mode-hook-f) (provide 'gnus-server)