emacs zoom in/out globally

前端 未结 5 1705
甜味超标
甜味超标 2021-02-05 07:32

I know that I can zoom in/out using C-x C-+, but this applies only to the current file. Once I open another one, the text goes back to the default value and it\'s really tiresom

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 08:10

    This piece of code modify the zoom in/out functionality to apply the commands to every buffer. That should achieve what you are trying to do.

    (defadvice text-scale-increase (around all-buffers (arg) activate)
      (dolist (buffer (buffer-list))
        (with-current-buffer buffer
          ad-do-it)))
    

提交回复
热议问题