🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Aaron Akman Tue, 28 Jul 1992 14:09
different buffer styles
#71
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads