How to insert the Euro symbol (€) in emacs

In order to insert the Euro symbol (€) in emacs, you can use the Unicode character U+20AC by typing

C-x 8 RET #x20AC RET

You can put this in the macro “euro” by adding the following lines to your .emacs file:

(fset 'euro
   (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([24 56 return 35 120 50 48 65 67 return] 0 "%d")) arg)))

and restarting your emacs (server). The euro sign can then be inserted by calling the macro:

M-x euro

If you have any other symbol you know the Unicode value of, you can probably do something similar.

Advertisement
This entry was posted in Software and tagged , . Bookmark the permalink.

5 Responses to How to insert the Euro symbol (€) in emacs

  1. Daniel C says:

    Good man thanks

  2. dave f says:

    C-x 8 RET euro RET

    will enter the euro symbol

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s