Yasnippet and pabbrev work together at Emacs

I am trying to get yasnippet and pabbrev packages that work with emacs, but I can't get any love. How can I make them play beautifully together?

The essence of the problem is that pabbrev and yasnippet are tied to tab keys. Both packages seem to do this backup when a match is not found, but they do not backtrack properly.

I am currently using Emacs W32 (latest release of emacs 22). yasnippet byte compiled but pabbrev is not.

Edit: so far none of them are decrypted, so I still have to mark any solution as the correct answer. I hack tabkey2 to make it work.

+3
source share
2 answers

tabkey2.el. , , .

+2

hippie-expand .

, :

(require 'hippie-exp)

(setq hippie-expand-try-functions-list
      '(yas/hippie-try-expand
        try-expand-dabbrev
        try-expand-dabbrev-all-buffers
        try-expand-dabbrev-from-kill
        try-complete-file-name
        try-complete-lisp-symbol))

: hippie-expand, , pabbrev, pabbrev emacs.

+4

Source: https://habr.com/ru/post/1697696/


All Articles