* 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
* Re: Need some help with column handling
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
0 siblings, 1 reply; 3+ messages in thread
From: Sivaram Neelakantan @ 2010-06-17 15:23 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, Jun 17 2010,Eric Lilja wrote:
[snipped 13 lines]
> 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.
>
Does any of the options listed here help?
http://www.emacswiki.org/emacs/ColumnMarker
You may also want to check
http://www.emacswiki.org/emacs/ShowWhiteSpace
[snipped 12 lines]
sivaram
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Need some help with column handling
2010-06-17 15:23 ` Sivaram Neelakantan
@ 2010-06-17 15:40 ` Drew Adams
0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2010-06-17 15:40 UTC (permalink / raw)
To: 'Sivaram Neelakantan', help-gnu-emacs
> > I don't know how to "highlight" the 72th column.
>
> Does any of the options listed here help?
> http://www.emacswiki.org/emacs/ColumnMarker
>
> You may also want to check
> http://www.emacswiki.org/emacs/ShowWhiteSpace
See also:
http://www.emacswiki.org/emacs/EightyColumnRule
http://www.emacswiki.org/emacs/ModeLinePosition
http://www.emacswiki.org/emacs/FindLongLines
^ 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.