【发布时间】:2014-09-14 14:50:52
【问题描述】:
我正在尝试使用 helm 设置一个函数来按照以下建议导航投影仪文件:“http://blog.jenkster.com/2013/10/a-tip-for-navigating-clojure-files-in-emacs.html”。我试过了:
(defun helm-beamer-headlines ()
"Display headlines for the current Beamer file."
(interactive)
(helm-mode t)
(helm :sources '(((name . "Beamer Headlines")
(volatile)
(headline "^\\s\|^\\f")))))
只显示以 \f 和 \s 开头的行(对应于切片和框架命令),虽然 regexp 与 emacs regexp search 和 helm-occur 一起使用,但我没有与 M-x helm-beamer-headlines 匹配。
我尝试过的最小文件是:
\documentclass{beamer}
\begin{document}
\section{A}
\subsection{Aa}
\frame{\frametitle{}
\begin{enumerate}
\item one
\item two
\end{enumerate}
}
\subsection{Ab}
\frame{\frametitle{}
\begin{align*}
\alpha&=\beta
\end{align*}
}
\section{B}
\subsection{Ba}
\frame{\frametitle{}
\includegraphics[width=\textwidth]{abc.png}
}
\end{document}
【问题讨论】:
标签: regex emacs emacs-helm