Skip to content

Instantly share code, notes, and snippets.

@perusio
Created March 27, 2017 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perusio/d6f7067087096664d0aecf09fde0a915 to your computer and use it in GitHub Desktop.
Save perusio/d6f7067087096664d0aecf09fde0a915 to your computer and use it in GitHub Desktop.
Making pabbrev-mode completions work when cdlatex-mode is active
;; When we are in cdlatex mode then
;; rebind the TAB key so that pabbrev
;; -mode completions still work.
(when (and (boundp 'cdlatex-mode)
(boundp 'pabbrev-mode)
pabbrev-mode
cdlatex-mode)
(local-set-key '[f12] 'pabbrev-expand-maybe))
@perusio
Copy link
Author

perusio commented Mar 27, 2017

This needs to be included in LaTeX-mode-hook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment