How to add a tool-bar button in emacs?

后端 未结 2 484
迷失自我
迷失自我 2021-01-15 14:00

I try to add a button in the tool-bar but that doesn\'t works. how to do that, i check in Emacs wiki and i find nothing. I used emacs 24.3.1. The toolsbar are displayed but

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 14:23

    Hi i found a simple solution to add a toolbar button "spell" is the image in /usr/share/emacs/23.4/etc/images/

    (defun omar-hotel ()
     "another nonce menu function"
     (interactive)
     (message "hotel, motel, holiday inn"))
    
        (tool-bar-add-item "spell" 'omar-hotel
                   'omar-hotel
                   :help   "Run fonction omar-hotel")
    

提交回复
热议问题