help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any easy way to disable mouse behavior that can change to other buff


From: martin rudalics
Subject: Re: Any easy way to disable mouse behavior that can change to other buffers?
Date: Fri, 14 Nov 2008 15:01:23 +0100
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

> I want to disable the ability of mouse clicking on modeline which can
> make buffer switching, and the buffer list menu popped up by Ctrl-<left
> mouse>.

You can try to add the 100% untested code below to your .emacs.

martin


(defun my-propertized-buffer-identification (fmt)
  "Return a list suitable for `mode-line-buffer-identification'."
  (list (propertize fmt
                    'face 'mode-line-buffer-id
                    'help-echo
                    (purecopy "Buffer name"))))

(setq mode-line-buffer-identification (my-propertized-buffer-identification 
"%12b"))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]