[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Jump to begin of footnote
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX] Jump to begin of footnote |
Date: |
Mon, 28 Apr 2014 21:55:00 +0200 |
2014-04-28 21:42 GMT+02:00 Igor Sosa Mayor <address@hidden>:
> Mosè Giordano <address@hidden> writes:
>> there shouldn't be already key bindings for that, but you can bind
>> your favorite keys to these lambdas:
>
> thanks. This seems to work perfectly. Could it be maybe possible to jump
> not to the \ of \footnote, but exactly to the first character of the
> footnote?
>
> there is maybe a function to "jump x characters", since the numbers of
> character of \footnote{ is always the same...
Sure, there is the `forward-char' function, but to keep this lambda as
general as possible (and not tied just to the `footnote' macro), I'd
suggest to use
--8<---------------cut here---------------start------------->8---
(lambda ()
(interactive)
(goto-char (TeX-find-macro-start))
(search-forward "{" (TeX-find-macro-end) t))
--8<---------------cut here---------------end--------------->8---
Bye,
Mosè