🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #71

different buffer styles

#71
From: Aaron Akman
Date: Tue, 28 Jul 1992 14:09
27 lines
1454 bytes
Has anyone experimented with changing buffer styles for files of
different types?  I tried following the stuff in the FAQ.  When I used
set-font as-is it worked, but when I tried to make my own variant of
goto-style, it didn't do anything.  Here's what I did:

; my own custom styles
(setq browse-style (make-style))
(set-style-foreground browse-style "white")
(set-style-background browse-style "black")
(set-style-font browse-style "6x13")

(defun goto-style (newstyle)
  "Set current buffer to a given font NEWSTYLE."
  (interactive "sNew Style: ")
  (setq buffer-style newstyle)
  (redraw-display))

When I do M-x goto-style browse-style, nothing happens.  I look at the
buffer-style variable, and it is set to browse-style, but no visual
change takes place.  What am I doing wrong?  Also, does anyone have some
examples of changing styles they can show as a guide to doing fancier
things?

-- 

aaron@iscp.bellcore.com (Aaron Akman)
RRC 4B-325, x6262
Technical Details
Message-ID: <1992Jul28.140957.10045@porthos.cc.bellcore.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!bellcore!walter!porthos!iscp.Bellcore.COM!aaron

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!bellcore!walter!porthos!iscp.Bellcore.COM!aaron
From: aaron@iscp.Bellcore.COM (Aaron Akman)
Newsgroups: gnu.epoch.misc
Subject: different buffer styles
Message-ID: <1992Jul28.140957.10045@porthos.cc.bellcore.com>
Date: 28 Jul 92 14:09:57 GMT
Sender: netnews@porthos.cc.bellcore.com (USENET System Software)
Reply-To: aaron@iscp.Bellcore.COM (Aaron Akman)
Organization: Bell Communications Research (Bellcore)
Lines: 27