unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: .emacs - minor mode behavior
@ 2007-02-14 21:48 A Soare
  0 siblings, 0 replies; 5+ messages in thread
From: A Soare @ 2007-02-14 21:48 UTC (permalink / raw)
  To: Emacs   Help  [help-gnu-emacs]

look also to the code of default-mode-line-format,mode-line-format to find out more about mode line.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* .emacs - minor mode behavior
@ 2007-02-13 21:54 J K
  2007-02-14  3:24 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: J K @ 2007-02-13 21:54 UTC (permalink / raw)
  To: help-gnu-emacs

I'm just learning Emacs and have recently started working on a .emacs
file for myself.  I was hoping someone could answer what I think is
probably a simple question:

During customization of the mode line, I was able to turn on column-
number-mode with the following line in .emacs:

(setq column-number-mode t)

I understand that this line is setting 'column-number-mode to t
(true).  I also understand that this variable is created along with
the column-number-mode function by the define-minor-mode macro in
simple.el.

I then proceeded to attempt to add the time to the mode line with the
line:

(setq display-time-mode t)

This doesn't work.  I have seen that you can instead call the function
with a positive argument like so:

(display-time-mode 1)

But I don't understand why the first method doesn't work.  I think the
problem is that I don't know how emacs goes from variables being set
to t/nil to actually drawing the screen, but I was hoping to avoid
digging that deep as I still am learning.  Could someone please help
me to understand?

Also - I've read quite a few posts in this group, and it seems like
most folks lean toward using customize as opposed to hand
editing .emacs.  Am I making things harder on myself?

Thanks for the information.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-15 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-14 21:48 .emacs - minor mode behavior A Soare
  -- strict thread matches above, loose matches on Subject: below --
2007-02-13 21:54 J K
2007-02-14  3:24 ` Kevin Rodgers
2007-02-14 17:04 ` Stefan Monnier
2007-02-15 13:13 ` Robert Thorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).