0

Is it possible to write some elisp code so that we can use numbers for Abbrev Mode abbreviations? E.g.,

m2 -> me too
h4 -> hope for
gr8 -> greate

1
  • On second thought, this might not be a good idea, so, it can be closed, if desired so. thx.
    – xpt
    Jun 21 '21 at 14:28
2

Yes, you can do this:

(define-abbrev global-abbrev-table "h4" "hope for")

if you really want an h4, you just "undo" (for me that is C-/, but you may have it bound to something else.) You can also limit the scope to a specific mode, e.g. org-mode-abbrev-table or so.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.