librelist archives

« back to archive

emacs

emacs

From:
Jamie Orchard-Hays
Date:
2012-04-04 @ 17:45
Alright all you emacsen:

I know how to bind a function to a key in my init.el file, such as:

(global-set-key (kbd "s->") 'other-window)
(global-set-key (kbd "s-}") 'next-buffer)

However, I want to bind a key to insert some text. 

(global-set-key (kbd "s-=") <insert-a-string>)

As is not uncommon, I have looked all over and found nothing to show me 
how to solve this simple problem.

I want to insert a hash-rocket with spaces: " => "

Cheers,

Jamie