emacs23

How do I change emacs default font size and font type?

被刻印的时光 ゝ 提交于 2019-11-27 05:07:51
问题 I am using emacs 23.3. I need to change the font size and font type, can anyone help me? 回答1: You can use the menu bar. Go to Options -> Set Default Font... . After you choose a font, don't forget to press Options -> Save Options —otherwise your new font will not be saved after you close Emacs. 回答2: You can also do the following in your .emacs file. Emacs 23.1 (set-frame-font "Inconsolata 12" nil t) Older versions of Emacs (set-default-font "Inconsolata 12" nil t) 回答3: To get an extended list

Binding M-<up> / M-<down> in Emacs 23.1.1

邮差的信 提交于 2019-11-26 20:27:03
I'm trying to put in a feature that I miss from Eclipse, where Alt +[ Up / Down ] transposes the lines up or down, but can not for the life of me figure out how to assign to these keys properly. I am using it in -nw mode (so just in a shell window), and typically run in a screen session. Using a global key binding, I can get it to work with letter combinations, like (kbd "M-m") , but every combination I have tried for the arrow keys just gives me a message that doesn't make sense, I always get: "ESC <up> is undefined" What I have tried: (global-set-key (kbd "M-<up>") 'transpose-line-up)