in reply to Perl 6 and Unicode Operators

While adding the way to avoid the Unicode characters is helpful, I was trying to point out that no-one has listed how to create those characters in vi or emacs. The Vim helpdocs are difficult at best on the topic, so docs/quickref/unicode should list the Compose-keys for both vi and emacs.

Additionally, it would be helpful to list how to enable your vim/emacs version for Unicode, given that the Vim helpdocs are difficult at best.


  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"

Replies are listed 'Best First'.
Re^2: Perl 6 and Unicode Operators
by duelafn (Parson) on Jun 01, 2005 at 17:43 UTC

    I have the following code in my .emacs file

    (set-input-method "TeX") (quail-define-rules ((append . t)) ("\\\\" ?\\) ("<<" ?«) (">>" ?») ("\\``" ?“) ("\\''" ?”)) (toggle-input-method)

    Then C-\ will switch between a TeX input method (\subset --> ⊂, ...), and standard input method. This is an emacs-only solution though. One can use the latin-ltx.el file that defines the TeX mode to set up SCIM (Linux only) which will allow you to use the TeX input method globally.

    Update: In emacs you can see a list of possible input methods by typing: M-x list-input-methods

    Good Day,
        Dean