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.

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

One Response to How to insert the Euro symbol (€) in emacs

  1. Daniel C says:

    Good man thanks

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s