mrry (Happy New Year)
 
Blog Some Emacs macros 14/Jun/2004

For Mark, who is currently languishing in the South-East, I present some of our favourite macros that go in our .emacs files, and help to make life that little bit more bearable. I present, for your delectation:

  • Installing the scroll-wheel:
    (when window-system
       (mwheel-install))
  • Mapping Go to Line to something sensible (Alt-Z, in this case):
    (global-set-key "\M-z" 'goto-line)
  • For the ultimate in handiness, though, you really need to get the name of the window set to the name of the current buffer. Behold:
    (defun title-set-title ()
       "Set title to current buffer's name"
       (let ((name (format "%s (emacs)" (buffer-name))))
       (modify-frame-parameters (selected-frame) 
          (list (cons `name name)))))
    
    (add-hook `post-command-hook
       (lambda ()
          (title-set-title)))

Unfortunately, it seems the pthreads-ninja macro is closed-source :oP.

Cheers,

Derek.

 
CommentsComments 

Cab said:
Magic D, fanks

Name

E-Mail

Url

Comment

Please enter the number 1538 in the box below:

 
CommentsTell a friend about this page

Your Name

Your E-Mail

Your friend's E-Mail

 
SideboardSideboard


< # Scottish Blogs ? >
Technorati Profile
Listed on BlogShares

Subscribe to the mrry RSS feed
More about RSS.
Trackback URL for this article:
http://www.mrry.co.uk/trackback/1786