Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed command + doesn't work in LaTeX #86

Open
jun0 opened this issue Jun 4, 2021 · 1 comment
Open

Speed command + doesn't work in LaTeX #86

jun0 opened this issue Jun 4, 2021 · 1 comment

Comments

@jun0
Copy link

jun0 commented Jun 4, 2021

This is related to #63 but focused on a more specific inconsistency. When I enable speed commands and open up a LaTeX file, the speed commands only fire at the beginnings of lines of the form

% ** Heading

which is fine, but when I type +, this heading gets rewritten to

\subsectionHeading

It seems like outshine-mode sets outline-regexp to "% [*]\{1,8\} ", recognizing the former style, but the + speed command is implemented by outline-promote, which uses outline-heading-alist, which expects \chapter, \section, etc.

I couldn't track down where these variables were set, but would you say outline-regexp is in the wrong here, or outline-heading-alist? Which style does outshine-mode intend to support (if any)?

PS. Workaround for anyone else who sees this and wants to use the % * format like me: put

(setq-local outshine-speed-commands-user '(("+" . (outshine-change-level 1))))

inside your LaTeX-mode hook.

@alphapapa
Copy link
Owner

Please see #74.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants