home *** CD-ROM | disk | FTP | other *** search
- Excerpt of message (sent 30 April 93) by Lars Nyman:
-
- lars> Hmmm, I tried it but get some errors. First, when lemacs fires up
- lars> and .emacs is loaded I get: "Symbol's function definition is void:
- lars> unless". So, I changed "(unless ... ...)" to "(if (not ...) ...)".
-
- lars> That allows lemacs to come up ok. Then, when I enter 'M-X gnus' a
- lars> new screen comes up allright, but I get: "Autoloading failed to
- lars> define function real-gnus" in the new screen - and thus I failed to
- lars> enter into gnus mode...
-
- lars> Btw, there should be no other interaction with other stuff I have in
- lars> my original .emacs file, as I removed it and put just what you sent
- lars> me in my new .emacs file. Any clues ?
-
- Sorry, I was too quick off the mark. I've cleaned it all up so that it should
- work from anyone's environment, and put all you need into a separate file which
- you should byte-compile and load from your .emacs.
-
- --
- Regards, David
-
- 8< ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CUT HERE for file: mygnus.el
- ;; stuff for GNUS in a separate screen
- ;; David Hughes 30th April 1993
- (load "gnus" nil t)
-
- (setq gnus-nntp-server "rhubarb"
- gnus-user-full-name (user-full-name)
- gnus-large-newsgroup 100
- gnus-default-article-saver (function gnus-Subject-save-in-mail))
-
- (add-hook 'gnus-Article-mode-hook
- (function (lambda () (setq screen-icon-title-format "GNUS"))))
-
- (add-hook 'gnus-Group-mode-hook
- (function (lambda () (setq screen-icon-title-format "GNUS"))))
-
- (add-hook 'gnus-Subject-mode-hook
- (function (lambda () (setq screen-icon-title-format "GNUS"))))
-
- (defvar gnus-screen nil
- "Screen to use for running gnus")
-
- (or (fboundp 'real-gnus)
- (fset 'real-gnus (symbol-function 'gnus)))
-
- (defvar message-header-colour "brown"
- "Colour in which mail headers are displayed")
-
- (defun gnus (&optional confirm)
- "Read network news.
- onal argument CONFIRM is non-nil, ask NNTP server."
- (interactive "P")
- (or (and (screenp gnus-screen)
- (condition-case err (deiconify-screen gnus-screen) (error nil)))
- (setq gnus-screen (x-create-screen nil)))
- (select-screen gnus-screen)
- (real-gnus confirm)
- (gnus-Group-get-new-news)
- (let ((gnus-subject (get-buffer "*Subject*"))
- (gnus-article (get-buffer "*Article*")))
- (if (locate-file "highlight-headers" load-path ":.el")
- (progn
- (load "highlight-headers" nil t)
- (if (x-color-display-p)
- (set-face-foreground
- 'message-cited-text message-header-colour)
- (set-face-font 'message-header-contents (face-font 'bold))
- (set-face-foreground
- 'message-header-contents message-header-colour))))
- (select-window
- (or (and (bufferp gnus-subject)
- (eq (symbol-buffer-value 'major-mode gnus-subject) 'gnus-Subject-mode)
- (window-visible-p (get-buffer-window gnus-subject)))
- (and (bufferp gnus-article)
- (eq (symbol-buffer-value 'major-mode gnus-article) 'gnus-Article-mode)
- (window-visible-p (get-buffer-window gnus-article)))
- (selected-window)))
- (case major-mode
- (gnus-Subject-mode
- (gnus-Subject-show-article))
- (gnus-Article-mode
- (gnus-Article-show-subjects)))))
-
-