I want to add replacements to matching words to a list called nscrip
.
I already have a large number of lists that I use for dabbrev, written in the following form. Perhaps I can use these lists, or else have two lists (one for matching and one for replacement strings) if the latter would work better.
(defconst ptc-tablet-16
'( ("almost" "lmo") ("beautiful" "btf") ("big" "bg")
("bird" "b/") ("brother" "Bro") ("child" "ci")
("children" "cil") ("dear" "de") ("feel" "fl") ))
Without a list I am using the following expression
(add-to-list 'nscrip (s-replace-regexp "almost" "lmo" word))