Emacs font sizing with Ctrl key and mouse scroll

前端 未结 5 1791
庸人自扰
庸人自扰 2020-12-31 06:17

notepad++ allow me to increase the font size when I hold the Ctrl Key and rotate the mouse middle scroll button to forward.

In the same way, the when I ho

5条回答
  •  一个人的身影
    2020-12-31 06:42

    Zoom Frame is what you want. I do exactly what you describe all the time. After loading zoom-frm.el, add some bindings such as these:

        (global-set-key [S-mouse-1]   'zoom-in)
        (global-set-key [C-S-mouse-1] 'zoom-out)
        (global-set-key (vector (list 'control mouse-wheel-down-event)) 'zoom-in)
        (global-set-key (vector (list 'control mouse-wheel-up-event))   'zoom-out)
    

    See also: http://www.emacswiki.org/emacs/SetFonts#ChangingFontSize

提交回复
热议问题