Thorsten Grothe <[email protected]> writes:
> let's say I only want to comment out one line like *nosolutions*, when I hit
> C-c ; or C-c % Auctex comments out the whole paragraph or the whole region but
> I want to comment out/in only *one single line*, is this possible with a
> shortcut?
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.
--
:: Igor Sosa Mayor :: [email protected] ::
:: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ ::
:: jabberid: rogorido :: ::
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex