I'm using Emacs with PDE and cperl-mode. I really want prettify-symbols-mode to work with it. When just using perl-mode this happens:
Mod::thing->new( {c => 'sea'} );
becomes
Mod∷thing→new( {c ⇒ 'sea'} );
however when using cperl same expression becomes
Mod::thing→new( {c ⇒ 'sea'} );
in cperl-mode the ::
only becomes ∷
when it is separated by spaces on both sides.
I have tried adding to the cperl--pretty-symbols-alist and pretty-symbols-alist. and still only the ->
and =>
work.
I thought it might be how cperl defines characters as symbols or words, but the ->
and =>
work just fine without being surrounded by spaces.