From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Lilja Newsgroups: gmane.emacs.help Subject: Need some help with column handling Date: Thu, 17 Jun 2010 16:12:16 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276784271 20052 80.91.229.12 (17 Jun 2010 14:17:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Jun 2010 14:17:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 17 16:17:50 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OPFub-0002Ik-EV for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jun 2010 16:17:45 +0200 Original-Received: from localhost ([127.0.0.1]:56084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPFua-0008Dy-IU for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jun 2010 10:17:44 -0400 Original-Received: from [140.186.70.92] (port=50157 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPFtU-0007jZ-FM for help-gnu-emacs@gnu.org; Thu, 17 Jun 2010 10:16:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPFpW-000485-K9 for help-gnu-emacs@gnu.org; Thu, 17 Jun 2010 10:12:32 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48884) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPFpW-00047t-EI for help-gnu-emacs@gnu.org; Thu, 17 Jun 2010 10:12:30 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OPFpV-0007m3-8U for help-gnu-emacs@gnu.org; Thu, 17 Jun 2010 16:12:29 +0200 Original-Received: from lap-31.ida.liu.se ([130.236.182.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jun 2010 16:12:29 +0200 Original-Received: from mindcooler by lap-31.ida.liu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jun 2010 16:12:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lap-31.ida.liu.se User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73910 Archived-At: 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