all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need some help with column handling
@ 2010-06-17 14:12 Eric Lilja
  2010-06-17 15:23 ` Sivaram Neelakantan
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Lilja @ 2010-06-17 14:12 UTC (permalink / raw)
  To: help-gnu-emacs

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




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

end of thread, other threads:[~2010-06-17 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 14:12 Need some help with column handling Eric Lilja
2010-06-17 15:23 ` Sivaram Neelakantan
2010-06-17 15:40   ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.