bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: modeline doesn't divulge buffer will go bye bye


From: Hallvard B Furuseth
Subject: Re: modeline doesn't divulge buffer will go bye bye
Date: 01 Jul 2002 12:28:39 +0200

Dan Jacobson writes:

> After using this ~20 years it dawns on me: The modeline of a buffer
> with an associated file and that with no associated file look the
> same.  Bad.

I have this in .emacs:

;; Minor mode alist
(or (assq 'buffer-auto-save-file-name minor-mode-alist)
    (setq minor-mode-alist (append minor-mode-alist
                                   '((buffer-auto-save-file-name
                                      (buffer-file-name " :" " :S")
                                      (buffer-file-name " :nS" " :nF")))
                                   '((buffer-backed-up "~")
                                     (case-fold-search "" "nC")
                                     (truncate-lines "$")))))

(variable true-item nil-item) displays true-item if variable is non-nil,
and nil-item (which can be omitted) if it is nil.  Item can be a string
or another such list.

-- 
Hallvard



reply via email to

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