1

You can define an abbrev that uses the function you defined: (eval-after-load "perl-mode" (define-abbrev perl-mode-abbrev-table "vd" "" #'print-dumper)) Don't forget to turn on abbrev-mode as a minor mode in your perl buffers: (add-hook 'perl-mode-hook #'abbrev-mode) Alternatively, you can probably define conditional yasnippets using the # condition ...


Only top voted, non community-wiki answers of a minimum length are eligible