tecosaur / LaTeX-auto-activating-snippets

Mirror of https://git.tecosaur.net/tec/LaTeX-auto-activating-snippets
GNU General Public License v3.0
100 stars 24 forks source link

add option to disable snippets for accents #36

Open dahtah opened 2 years ago

dahtah commented 2 years ago

laas-mode is great but the default behaviour that substitutes things like 'e is very disruptive in my experience, especially when writing in French. It'd be great if there was an option to disable it. In the meanwhile, a workaround is to redefine

(defun laas-latex-accent-cond ()
  nil )
ymarco commented 2 years ago

Whoops. The accents were mostly imported from cdlatex, and I didn't think of languages other than English.

You can set (setq laas-accent-snippets nil) before the package loads to disable them.

Would it be useful to change the accent prefix from ' to something else? I can make that a setting. Currently it's hard to change from user code (you can't just move the keymap subtree from ' to something else since aas makes sure that the (original) snippet key is present before expanding)

dahtah commented 2 years ago

Sure, letting the user modify the prefix key is an even better solution!