auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Comment or uncomment only one line


From: Thorsten Grothe
Subject: Re: [AUCTeX] Comment or uncomment only one line
Date: Mon, 19 May 2014 22:23:51 +0200

Igor,

> I'm not aware of such a function, but you could do something like that:
> 
> --8<---------------cut here---------------start------------->8---
> (defun Tex-comment-line ()
>   (interactive)
>   (beginning-of-line)
>   (let ((beg (point)))
>       (end-of-line)
>       (TeX-comment-or-uncomment-region beg (point)))
> ) 
> --8<---------------cut here---------------end--------------->8---
> 
> and bind it to a key. 

thank you very much for the snippet, it works fine, exactly what I want to do!!!
Simple and effective :-)


Regards
Thorsten



reply via email to

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