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

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

Need some help with column handling


From: Eric Lilja
Subject: Need some help with column handling
Date: Thu, 17 Jun 2010 16:12:16 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1

Hello, I just got back to emacs after a long absence. When I'm in latex-mode, I want to have the following settings:
Column number 72 should have a different color than the other columns.
Text should automatically wrap at the 76th column.
I tried this in my .emacs:
(defun my-latex-hook ()
  (message "Running my-latex-hook")
  (setq-default fill-column 76)
  (setq auto-fill-mode 1)
  ;; TODO: Highlight column 72!
)
(add-hook 'tex-mode-hook 'my-latex-hook)

But, I don't seem to get an automatic wrap at the 76th column and I don't know how to "highlight" the 72th column. The hook is executed, however.

How do I do what I want?

I'm using: GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-06-14 on 3249CTO
under Windows 7 Professional (64-bit)

Thanks!

- EL




reply via email to

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